base\Event offAll()

offAll() public static method (available since version 2.0.10) Detaches all registered class-level event handlers. See also: on() off() public static void offAll ( )

mongodb\Database listCollections()

listCollections() public method (available since version 2.1.1) Returns the list of available collections in this database. public array listCollections ( $condition = [], $options = [] )$condition array Filter condition. $options array Options list. return array Collections information.

db\DataReader readObject()

readObject() public method Returns an object populated with the next row of data. public mixed readObject ( $className, $fields )$className string Class name of the object to be created and populated $fields array Elements of this array are passed to the constructor return mixed The populated object, false if no more row of data available

authclient\WeChat fetchAccessToken()

fetchAccessToken() public method Fetches access token from authorization code. public yii\authclient\OAuthToken fetchAccessToken ( $authCode, array $params = [] )$authCode string Authorization code, usually comes at $_GET['code']. $params array Additional request params. return yii\authclient\OAuthToken Access token.

authclient\OAuth1 composeAuthorizationHeader()

composeAuthorizationHeader() protected method Composes authorization header content. protected string composeAuthorizationHeader ( array $params, $realm = '' )$params array Request params. $realm string Authorization realm. return string Authorization header content.

widgets\ActiveField dropDownList()

dropDownList() public method Renders a drop-down list. The selection of the drop-down list is taken from the value of the model attribute. public $this dropDownList ( $items, $options = [] )$items array The option data items. The array keys are option values, and the array values are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too). For each sub-array, an option group will be generated whose label is the key associated with the sub-arr

mongodb\Connection getDatabase()

getDatabase() public method Returns the MongoDB database with the given name. public yii\mongodb\Database getDatabase ( $name = null, $refresh = false )$name string|null Database name, if null default one will be used. $refresh boolean Whether to reestablish the database connection even, if it is found in the cache. return yii\mongodb\Database Database instance.

db\oci\QueryBuilder dropCommentFromTable()

dropCommentFromTable() public method (available since version 2.0.8) Builds a SQL command for adding comment to table public string dropCommentFromTable ( $table )$table string The table whose column is to be commented. The table name will be properly quoted by the method. return string The SQL statement for adding comment on column

db\Migration addPrimaryKey()

addPrimaryKey() public method Builds and executes a SQL statement for creating a primary key. The method will properly quote the table and column names. public void 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.

mongodb\Query sum()

sum() public method Returns the sum of the specified column values. public integer sum ( $q, $db = null )$q string The column name. Make sure you properly quote column names in the expression. $db yii\mongodb\Connection The Mongo connection used to execute the query. If this parameter is not given, the mongodb application component will be used. return integer The sum of the specified column values