web\CookieCollection fromArray()

fromArray() public method (available since version 2.0.3) Populates the cookie collection from an array. public void fromArray ( array $array )$array array The cookies to populate from

mongodb\rbac\MongoDbManager $cache

$cache public property The cache used to improve RBAC performance. This can be one of the following: an application component ID (e.g. cache) a configuration array a yii\caching\Cache object When this is not set, it means caching is not enabled. Note that by enabling RBAC cache, all auth items, rules and auth item parent-child relationships will be cached and loaded into memory. This will improve the performance of RBAC permission check. However, it does require extra memory and as a result

mongodb\QueryBuilder buildSelectFields()

buildSelectFields() public method Normalizes fields list for the MongoDB select composition. public array buildSelectFields ( $fields )$fields array|string Raw fields. return array Normalized select fields.

sphinx\Command prepare()

prepare() public method Prepares the SQL statement to be executed. For complex SQL statement that is to be executed multiple times, this may improve performance. For SQL statement with binding parameters, this method is invoked automatically. public void prepare ( $forRead = null )$forRead boolean Whether this method is called for a read query. If null, it means the SQL statement should be used to determine whether it is for read or write. throws yii\db\Exception if there is any DB err

db\QueryBuilder addPrimaryKey()

addPrimaryKey() public method Builds a SQL statement for adding a primary key constraint to an existing table. public string addPrimaryKey ( $name, $table, $columns )$name string The name of the primary key constraint. $table string The table that the primary key constraint will be added to. $columns string|array Comma separated string or array of columns that the primary key will consist of. return string The SQL statement for adding a primary key constraint to an existing table

validators\ImageValidator init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

mutex\DbMutex init()

init() public method Initializes generic database table based mutex implementation. public void init ( )throws yii\base\InvalidConfigException if $db is invalid.

db\Connection $transaction

$transaction public read-only property The currently active transaction. Null if no active transaction. public yii\db\Transaction getTransaction ( )

widgets\Menu $lastItemCssClass

$lastItemCssClass public property The CSS class that will be assigned to the last item in the main menu or each submenu. Defaults to null, meaning no such CSS class will be assigned. public string $lastItemCssClass = null

base\Security generateRandomKey()

generateRandomKey() public method Generates specified number of random bytes. Note that output may not be ASCII. See also generateRandomString() if you need a string. public string generateRandomKey ( $length = 32 )$length integer The number of bytes to generate return string The generated random bytes throws yii\base\InvalidParamException if wrong length is specified throws yii\base\Exception on failure.