gii\generators\model\Generator attributeLabels()

attributeLabels() public method Returns the attribute labels. Attribute labels are mainly used for display purpose. For example, given an attribute firstName, we can declare a label First Name which is more user-friendly and can be displayed to end users. By default an attribute label is generated using generateAttributeLabel(). This method allows you to explicitly specify attribute labels. Note, in order to inherit labels defined in the parent class, a child class needs to merge the parent

db\sqlite\Schema loadTableSchema()

loadTableSchema() protected method Loads the metadata for the specified table. protected yii\db\TableSchema loadTableSchema ( $name )$name string Table name return yii\db\TableSchema Driver dependent table metadata. Null if the table does not exist.

i18n\Formatter format()

format() public method Formats the value based on the given format type. This method will call one of the "as" methods available in this class to do the formatting. For type "xyz", the method "asXyz" will be used. For example, if the format is "html", then asHtml() will be used. Format names are case insensitive. public string format ( $value, $format )$value mixed The value to be formatted. $format string|array The format of the value, e.g., "html", "text". To specify additional par

db\BaseActiveRecord getOldPrimaryKey()

getOldPrimaryKey() public method Returns the old primary key value(s). This refers to the primary key value that is populated into the record after executing a find method (e.g. find(), findOne()). The value remains unchanged even if the primary key attribute is manually assigned with a different value. public mixed getOldPrimaryKey ( $asArray = false )$asArray boolean Whether to return the primary key value as an array. If true, the return value will be an array with column name as key

web\AssetBundle $jsOptions

$jsOptions public property The options that will be passed to yii\web\View::registerJsFile() when registering the JS files in this bundle. public array $jsOptions = []

mail\MailEvent $message

$message public property The mail message being send. public yii\mail\MessageInterface $message = null

elasticsearch\ActiveRecord updateAll()

updateAll() public static method Updates all records whos primary keys are given. For example, to change the status to be 1 for all customers whose status is 2: Customer::updateAll(['status' => 1], ['status' => 2]); See also [[yii\elasticsearch\ActiveRecord::primaryKeysByCondition()]]. public static integer updateAll ( $attributes, $condition = [] )$attributes array Attribute values (name-value pairs) to be saved into the table $condition array The conditions that will be passed

web\IdentityInterface findIdentity()

findIdentity() public abstract static method Finds an identity by the given ID. public abstract static yii\web\IdentityInterface findIdentity ( $id )$id string|integer The ID to be looked for return yii\web\IdentityInterface The identity object that matches the given ID. Null should be returned if such an identity cannot be found or the identity is not in an active state (disabled, deleted, etc.)

validators\CompareValidator $operator

$operator public property The operator for comparison. The following operators are supported: ==: check if two values are equal. The comparison is done is non-strict mode. ===: check if two values are equal. The comparison is done is strict mode. !=: check if two values are NOT equal. The comparison is done is non-strict mode. !==: check if two values are NOT equal. The comparison is done is strict mode. >: check if value being validated is greater than the value being compared with

gii\console\GenerateController actions()

actions() public method Declares external actions for the controller. This method is meant to be overwritten to declare external actions for the controller. It should return an array, with array keys being action IDs, and array values the corresponding action class names or action configuration arrays. For example, return [ 'action1' => 'app\components\Action1', 'action2' => [ 'class' => 'app\components\Action2', 'property1' => 'value1', 'property