di\ServiceLocator get()

get() public method Returns the component instance with the specified ID. See also: has() set() public object|null get ( $id, $throwException = true )$id string Component ID (e.g. db). $throwException boolean Whether to throw an exception if $id is not registered with the locator before. return object|null The component of the specified ID. If $throwException is false and $id is not registered before, null will be returned. throws yii\base\InvalidConfigException if $id refers to

web\MultipartFormDataParser getUploadFileMaxSize()

getUploadFileMaxSize() public method public integer getUploadFileMaxSize ( )return integer Upload file max size in bytes.

db\mssql\QueryBuilder alterColumn()

alterColumn() public method Builds a SQL statement for changing the definition of a column. public string alterColumn ( $table, $column, $type )$table string The table whose column is to be changed. The table name will be properly quoted by the method. $column string The name of the column to be changed. The name will be properly quoted by the method. $type string The new column type. The getColumnType() method will be invoked to convert abstract column type (if any) into the physica

web\ErrorHandler $errorView

$errorView public property The path of the view file for rendering exceptions without call stack information. public string $errorView = '@yii/views/errorHandler/error.php'

mongodb\Session $sessionCollection

$sessionCollection public property The name of the MongoDB collection that stores the session data. Please refer to yii\mongodb\Connection::getCollection() on how to specify this parameter. This collection is better to be pre-created with fields 'id' and 'expire' indexed. public string|array $sessionCollection = 'session'

sphinx\QueryBuilder batchInsert()

batchInsert() public method Generates a batch INSERT SQL statement. For example, $sql = $queryBuilder->batchInsert('idx_user', ['id', 'name', 'age'], [ [1, 'Tom', 30], [2, 'Jane', 20], [3, 'Linda', 25], ], $params); Note that the values in each row must match the corresponding column names. public string batchInsert ( $index, $columns, $rows, &$params )$index string The index that new rows will be inserted into. $columns array The column names $rows array The rows

sphinx\Schema $db

$db public property The Sphinx connection public yii\sphinx\Connection $db = null

redis\ActiveQuery count()

count() public method Returns the number of records. public integer count ( $q = '*', $db = null )$q string The COUNT expression. This parameter is ignored by this implementation. $db yii\redis\Connection The database connection used to execute the query. If this parameter is not given, the db application component will be used. return integer Number of records

mongodb\rbac\MongoDbManager revoke()

revoke() public method Revokes a role from a user. public boolean revoke ( $role, $userId )$role yii\rbac\Role $userId string|integer The user ID (see yii\web\User::$id) return boolean Whether the revoking is successful

web\Session registerSessionHandler()

registerSessionHandler() protected method Registers session handler. protected void registerSessionHandler ( )throws yii\base\InvalidConfigException