mongodb\ActiveQuery one()

one() public method Executes query and returns a single row of result. public yii\mongodb\ActiveRecord|array|null one ( $db = null )$db yii\mongodb\Connection The Mongo connection used to execute the query. If null, the Mongo connection returned by $modelClass will be used. return yii\mongodb\ActiveRecord|array|null A single row of query result. Depending on the setting of asArray(), the query result may be either an array or an ActiveRecord object. Null will be returned if the query

validators\CompareValidator $message

$message public property The user-defined error message. It may contain the following placeholders which will be replaced accordingly by the validator: {attribute}: the label of the attribute being validated {value}: the value of the attribute being validated {compareValue}: the value or the attribute label to be compared with {compareAttribute}: the label of the attribute to be compared with {compareValueOrAttribute}: the value or the attribute label to be compared with public string

i18n\MissingTranslationEvent $category

$category public property The category that the message belongs to public string $category = null

widgets\BaseListView $summaryOptions

$summaryOptions public property The HTML attributes for the summary of the list view. The "tag" element specifies the tag name of the summary element and defaults to "div". See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $summaryOptions = ['class' => 'summary']

base\Module setViewPath()

setViewPath() public method Sets the directory that contains the view files. public void setViewPath ( $path )$path string The root directory of view files. throws yii\base\InvalidParamException if the directory is invalid.

sphinx\IndexSchema $type

$type public property Type of the index. public string $type = null

Database Access Objects

Creating DB Connections Executing SQL Queries Quoting Table and Column Names Performing Transactions Replication and Read-Write Splitting Working with Database Schema Built on top of PDO, Yii DAO (Database Access Objects) provides an object-oriented API for accessing relational databases. It is the foundation for other more advanced database access methods, including query builder and active record. When using Yii DAO, you mainly need to deal with plain SQLs and PHP arrays. As a result, it is

db\DataReader bindColumn()

bindColumn() public method Binds a column to a PHP variable. When rows of data are being fetched, the corresponding column value will be set in the variable. Note, the fetch mode must include PDO::FETCH_BOUND. See also http://www.php.net/manual/en/function.PDOStatement-bindColumn.php. public void bindColumn ( $column, &$value, $dataType = null )$column integer|string Number of the column (1-indexed) or name of the column in the result set. If using the column name, be aware that th

db\BaseActiveRecord EVENT_BEFORE_INSERT

EVENT_BEFORE_INSERT event of type yii\base\ModelEvent An event that is triggered before inserting a record. You may set yii\base\ModelEvent::$isValid to be false to stop the insertion.

validators\ValidationAsset $sourcePath

$sourcePath public property public $sourcePath = '@yii/assets'