db\QueryInterface indexBy()

indexBy() public abstract method Sets the indexBy() property. public abstract $this indexBy ( $column )$column string|callable The name of the column by which the query results should be indexed by. This can also be a callable (e.g. anonymous function) that returns the index value based on the given row data. The signature of the callable should be: function ($row) { // return the index value corresponding to $row } return $this The query object itself

db\QueryInterface filterWhere()

filterWhere() public abstract method Sets the WHERE part of the query ignoring empty parameters. See also: andFilterWhere() orFilterWhere() public abstract $this filterWhere ( array $condition )$condition array The conditions that should be put in the WHERE part. Please refer to where() on how to specify this parameter. return $this The query object itself

db\QueryInterface where()

where() public abstract method Sets the WHERE part of the query. The $condition specified as an array can be in one of the following two formats: hash format: ['column1' => value1, 'column2' => value2, ...] operator format: [operator, operand1, operand2, ...] A condition in hash format represents the following SQL expression in general: column1=value1 AND column2=value2 AND .... In case when a value is an array, an IN expression will be generated. And if a value is null, IS NULL wil

db\QueryTrait $where

$where public property Query condition. This refers to the WHERE clause in a SQL statement. For example, ['age' => 31, 'team' => 1]. See also where() for valid syntax on specifying this value. public string|array $where = null

Views

Creating Views Rendering Views Layouts Using View Components View Events Rendering Static Pages Best Practices Views are part of the MVC architecture. They are code responsible for presenting data to end users. In a Web application, views are usually created in terms of view templates which are PHP script files containing mainly HTML code and presentational PHP code. They are managed by the view application component which provides commonly used methods to facilitate view composition and rende

i18n\MessageFormatter getErrorMessage()

getErrorMessage() public method Get the error text from the last operation public string getErrorMessage ( )return string Description of the last error.

data\BaseDataProvider getTotalCount()

getTotalCount() public method Returns the total number of data models. When $pagination is false, this returns the same value as $count. Otherwise, it will call prepareTotalCount() to get the count. public integer getTotalCount ( )return integer Total number of possible data models.

db\Schema $defaultSchema

$defaultSchema public property The default schema name used for the current session. public string $defaultSchema = null

db\Schema $transactionIsolationLevel

$transactionIsolationLevel public write-only property The transaction isolation level to use for this transaction. This can be one of yii\db\Transaction::READ_UNCOMMITTED, yii\db\Transaction::READ_COMMITTED, yii\db\Transaction::REPEATABLE_READ and yii\db\Transaction::SERIALIZABLE but also a string containing DBMS specific syntax to be used after SET TRANSACTION ISOLATION LEVEL. public void setTransactionIsolationLevel ( $level )

db\Schema createColumnSchema()

createColumnSchema() protected method protected yii\db\ColumnSchema createColumnSchema ( )throws yii\base\InvalidConfigException