db\Query each()

each() public method Starts a batch query and retrieves data row by row. This method is similar to batch() except that in each iteration of the result, only one row of data is returned. For example, $query = (new Query)->from('user'); foreach ($query->each() as $row) { } public yii\db\BatchQueryResult each ( $batchSize = 100, $db = null )$batchSize integer The number of records to be fetched in each batch. $db yii\db\Connection The database connection. If not set, the "db" appli

redis\Cache getValue()

getValue() protected method Retrieves a value from cache with a specified key. This method should be implemented by child classes to retrieve the data from specific cache storage. protected mixed|false getValue ( $key )$key string A unique key identifying the cached value return mixed|false The value stored in cache, false if the value is not in the cache or expired. Most often value is a string. If you have disabled $serializer, it could be something else.

behaviors\AttributeBehavior $attributes

$attributes public property List of attributes that are to be automatically filled with the value specified via $value. The array keys are the ActiveRecord events upon which the attributes are to be updated, and the array values are the corresponding attribute(s) to be updated. You can use a string to represent a single attribute, or an array to represent a list of attributes. For example, [ ActiveRecord::EVENT_BEFORE_INSERT => ['attribute1', 'attribute2'], ActiveRecord::EVENT_BE

base\Model validate()

validate() public method Performs the data validation. This method executes the validation rules applicable to the current $scenario. The following criteria are used to determine whether a rule is currently applicable: the rule must be associated with the attributes relevant to the current scenario; the rules must be effective for the current scenario. This method will call beforeValidate() and afterValidate() before and after the actual validation, respectively. If beforeValidate() returns

web\UrlManager getScriptUrl()

getScriptUrl() public method Returns the entry script URL that is used by createUrl() to prepend to created URLs. It defaults to yii\web\Request::$scriptUrl. This is mainly used when $enablePrettyUrl is false or $showScriptName is true. public string getScriptUrl ( )return string The entry script URL that is used by createUrl() to prepend to created URLs. throws yii\base\InvalidConfigException if running in console application and $scriptUrl is not configured.

web\User checkRedirectAcceptable()

checkRedirectAcceptable() protected method (available since version 2.0.8) Checks if the Accept header contains a content type that allows redirection to the login page. The login page is assumed to serve text/html or application/xhtml+xml by default. You can change acceptable content types by modifying $acceptableRedirectTypes property. See also $acceptableRedirectTypes. protected boolean checkRedirectAcceptable ( )return boolean Whether this request may be redirected to the login page.

swiftmailer\Message $from

$from public property The sender public string getFrom ( )public $this setFrom ( $from )

db\ColumnSchemaBuilder buildUniqueString()

buildUniqueString() protected method Builds the unique constraint for the column. protected string buildUniqueString ( )return string Returns string 'UNIQUE' if $isUnique is true, otherwise it returns an empty string.

db\cubrid\QueryBuilder resetSequence()

resetSequence() public method Creates a SQL statement for resetting the sequence value of a table's primary key. The sequence will be reset such that the primary key of the next new row inserted will have the specified value or 1. public string resetSequence ( $tableName, $value = null )$tableName string The name of the table whose primary key sequence will be reset $value mixed The value for the primary key of the next new row inserted. If this is not set, the next new row's primary k

rbac\BaseManager getRoles()

getRoles() public method Returns all roles in the system. public yii\rbac\Role[] getRoles ( )return yii\rbac\Role[] All roles in the system. The array is indexed by the role names.