db\QueryInterface addOrderBy()

addOrderBy() public abstract method Adds additional ORDER BY columns to the query. See also orderBy(). public abstract $this addOrderBy ( $columns )$columns string|array The columns (and the directions) to be ordered by. Columns can be specified in either a string (e.g. "id ASC, name DESC") or an array (e.g. ['id' => SORT_ASC, 'name' => SORT_DESC]). The method will automatically quote the column names unless a column contains some parenthesis (which means the column contains a DB

mongodb\QueryBuilder buildCondition()

buildCondition() public method Parses the condition specification and generates the corresponding Mongo condition. public array buildCondition ( $condition )$condition array The condition specification. Please refer to yii\mongodb\Query::where() on how to specify a condition. return array The generated Mongo condition throws yii\base\InvalidParamException if the condition is in bad format

base\Widget widget()

widget() public static method Creates a widget instance and runs it. The widget rendering result is returned by this method. public static string widget ( $config = [] )$config array Name-value pairs that will be used to initialize the object properties return string The rendering result of the widget. throws Exception

web\MultiFieldSession extractData()

extractData() protected method Extracts session data from storage field set. protected string extractData ( $fields )$fields array Storage fields. return string Session data.

db\oci\Schema $exceptionMap

$exceptionMap public property Map of DB errors and corresponding exceptions If left part is found in DB error message exception class from the right part is used. public array $exceptionMap = ['ORA-00001: unique constraint' => 'yii\db\IntegrityException']

authclient\BaseOAuth refreshAccessToken()

refreshAccessToken() public abstract method Gets new auth token to replace expired one. public abstract yii\authclient\OAuthToken refreshAccessToken ( yii\authclient\OAuthToken $token )$token yii\authclient\OAuthToken Expired auth token. return yii\authclient\OAuthToken New auth token.

db\mssql\QueryBuilder renameColumn()

renameColumn() public method Builds a SQL statement for renaming a column. public string renameColumn ( $table, $oldName, $newName )$table string The table whose column is to be renamed. The name will be properly quoted by the method. $oldName string The old name of the column. The name will be properly quoted by the method. $newName string The new name of the column. The name will be properly quoted by the method. return string The SQL statement for renaming a DB column.

mongodb\Connection getQueryBuilder()

getQueryBuilder() public method (available since version 2.1) Returns the query builder for the this MongoDB connection. public yii\mongodb\QueryBuilder getQueryBuilder ( )return yii\mongodb\QueryBuilder The query builder for the this MongoDB connection.

rbac\ManagerInterface getPermissionsByUser()

getPermissionsByUser() public abstract method Returns all permissions that the user has. public abstract yii\rbac\Permission[] getPermissionsByUser ( $userId )$userId string|integer The user ID (see yii\web\User::$id) return yii\rbac\Permission[] All permissions that the user has. The array is indexed by the permission names.

filters\AccessRule matchController()

matchController() protected method protected boolean matchController ( $controller )$controller yii\base\Controller The controller return boolean Whether the rule applies to the controller