validators\ImageValidator clientValidateAttribute()

clientValidateAttribute() public method Returns the JavaScript needed for performing client-side validation. You may override this method to return the JavaScript validation code if the validator can support client-side validation. The following JavaScript variables are predefined and can be used in the validation code: attribute: an object describing the the attribute being validated. value: the value being validated. messages: an array used to hold the validation error messages for the

rest\CreateAction $scenario

$scenario public property The scenario to be assigned to the new model before it is validated and saved. public string $scenario = \yii\base\Model::SCENARIO_DEFAULT

mongodb\Collection group()

group() public method Performs aggregation using Mongo "group" command. public array group ( $keys, $initial, $reduce, $options = [] )$keys mixed Fields to group by. If an array or non-code object is passed, it will be the key used to group results. If instance of \MongoDB\BSON\Javascript passed, it will be treated as a function that returns the key to group by. $initial array Initial value of the aggregation counter object. $reduce \MongoDB\BSON\Javascript|string Function that take

db\ColumnSchema $comment

$comment public property Comment of this column. Not all DBMS support this. public string $comment = null

test\BaseActiveFixture getData()

getData() protected method Returns the fixture data. The default implementation will try to return the fixture data by including the external file specified by $dataFile. The file should return the data array that will be stored in $data after inserting into the database. protected array getData ( )return array The data to be put into the database throws yii\base\InvalidConfigException if the specified data file does not exist.

sphinx\Connection getLastInsertID()

getLastInsertID() public method This method is not supported by Sphinx. public string getLastInsertID ( $sequenceName = '' )$sequenceName string Name of the sequence object return string The row ID of the last row inserted, or the last value retrieved from the sequence object throws yii\base\NotSupportedException always.

validators\IpValidator validateAttribute()

validateAttribute() public method Validates a single attribute. Child classes must implement this method to provide the actual validation logic. public void validateAttribute ( $model, $attribute )$model yii\base\Model The data model to be validated $attribute string The name of the attribute to be validated.

db\Migration up()

up() public method This method contains the logic to be executed when applying this migration. Child classes may override this method to provide actual migration logic. public boolean up ( )return boolean Return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.

web\IdentityInterface getId()

getId() public abstract method Returns an ID that can uniquely identify a user identity. public abstract string|integer getId ( )return string|integer An ID that uniquely identifies a user identity.

rest\ActiveController checkAccess()

checkAccess() public method Checks the privilege of the current user. This method should be overridden to check whether the current user has the privilege to run the specified action against the specified data model. If the user does not have access, a yii\web\ForbiddenHttpException should be thrown. public void checkAccess ( $action, $model = null, $params = [] )$action string The ID of the action to be executed $model object The model to be accessed. If null, it means no specific mod