db\QueryBuilder createTable()

createTable() public method Builds a SQL statement for creating a new DB table. The columns in the new table should be specified as name-definition pairs (e.g. 'name' => 'string'), where name stands for a column name which will be properly quoted by the method, and definition stands for the column type which can contain an abstract DB type. The getColumnType() method will be invoked to convert any abstract type into a physical one. If a column is specified with definition only (e.g. 'PRI

db\Migration createTable()

createTable() public method Builds and executes a SQL statement for creating a new DB table. The columns in the new table should be specified as name-definition pairs (e.g. 'name' => 'string'), where name stands for a column name which will be properly quoted by the method, and definition stands for the column type which can contain an abstract DB type. The yii\db\QueryBuilder::getColumnType() method will be invoked to convert any abstract type into a physical one. If a column is specifi

db\mssql\Schema rollBackSavepoint()

rollBackSavepoint() public method Rolls back to a previously created savepoint. public void rollBackSavepoint ( $name )$name string The savepoint name

db\ColumnSchemaBuilder $isUnsigned

$isUnsigned protected property (available since version 2.0.7) Whether the column values should be unsigned. If this is true, an UNSIGNED keyword will be added. protected boolean $isUnsigned = false

console\controllers\MigrateController generateMigrationSourceCode()

generateMigrationSourceCode() protected method (available since version 2.0.8) Generates new migration source PHP code. Child class may override this method, adding extra logic or variation to the process. protected string generateMigrationSourceCode ( $params )$params array Generation parameters, usually following parameters are present: name: string migration base name className: string migration class name return string Generated PHP code.

db\Query from()

from() public method Sets the FROM part of the query. public $this from ( $tables )$tables string|array The table(s) to be selected from. This can be either a string (e.g. 'user') or an array (e.g. ['user', 'profile']) specifying one or several table names. Table names can contain schema prefixes (e.g. 'public.user') and/or table aliases (e.g. 'user u'). The method will automatically quote the table names unless it contains some parenthesis (which means the table is given as a sub-quer

web\UploadedFile reset()

reset() public static method Cleans up the loaded UploadedFile instances. This method is mainly used by test scripts to set up a fixture. public static void reset ( )

web\Session setId()

setId() public method Sets the session ID. This is a wrapper for PHP session_id(). public void setId ( $value )$value string The session ID for the current session

gii\generators\model\Generator generateQueryClassName()

generateQueryClassName() protected method Generates a query class name from the specified model class name. protected string generateQueryClassName ( $modelClassName )$modelClassName string Model class name return string Generated class name

data\ActiveDataProvider $db

$db public property The DB connection object or the application component ID of the DB connection. If not set, the default DB connection will be used. Starting from version 2.0.2, this can also be a configuration array for creating the object. public yii\db\Connection|array|string $db = null