console\Application getRequest()

getRequest() public method Returns the request component. public yii\console\Request getRequest ( )return yii\console\Request The request component.

sphinx\MatchExpression andMatch()

andMatch() public method Adds an additional MATCH condition to the existing one. The new condition and the existing one will be joined using the 'AND' (' ') operator. See also: match() orMatch() public $this andMatch ( $condition, $params = [] )$condition string|array|yii\db\Expression The new MATCH condition. Please refer to match() on how to specify this parameter. $params array The parameters (name => value) to be parsed into the query. return $this The expression object itse

sphinx\QueryBuilder batchInsert()

batchInsert() public method Generates a batch INSERT SQL statement. For example, $sql = $queryBuilder->batchInsert('idx_user', ['id', 'name', 'age'], [ [1, 'Tom', 30], [2, 'Jane', 20], [3, 'Linda', 25], ], $params); Note that the values in each row must match the corresponding column names. public string batchInsert ( $index, $columns, $rows, &$params )$index string The index that new rows will be inserted into. $columns array The column names $rows array The rows

base\Component __set()

__set() public method Sets the value of a component property. This method will check in the following order and act accordingly: a property defined by a setter: set the property value an event in the format of "on xyz": attach the handler to the event "xyz" a behavior in the format of "as xyz": attach the behavior named as "xyz" a property of a behavior: set the behavior property value Do not call this method directly as it is a PHP magic method that will be implicitly called when executing

i18n\GettextFile save()

save() public abstract method Saves messages to a file. public abstract void save ( $filePath, $messages )$filePath string File path $messages array Message translations. Array keys are source messages and array values are translated messages: source message => translated message. Note if the message has a context, the message ID must be prefixed with the context with chr(4) as the separator.

db\Command update()

update() public method Creates an UPDATE command. For example, $connection->createCommand()->update('user', ['status' => 1], 'age > 30')->execute(); The method will properly escape the column names and bind the values to be updated. Note that the created command is not executed until execute() is called. public $this update ( $table, $columns, $condition = '', $params = [] )$table string The table to be updated. $columns array The column data (name => value) to be up

web\Application getErrorHandler()

getErrorHandler() public method Returns the error handler component. public yii\web\ErrorHandler getErrorHandler ( )return yii\web\ErrorHandler The error handler application component.

db\Query select()

select() public method Sets the SELECT part of the query. public $this select ( $columns, $option = null )$columns string|array|yii\db\Expression The columns to be selected. Columns can be specified in either a string (e.g. "id, name") or an array (e.g. ['id', 'name']). Columns can be prefixed with table names (e.g. "user.id") and/or contain column aliases (e.g. "user.id AS user_id"). The method will automatically quote the column names unless a column contains some parenthesis (which

behaviors\AttributeTypecastBehavior $owner

$owner public property The owner of this behavior. public yii\base\Model|yii\db\BaseActiveRecord $owner = null

elasticsearch\ActiveFixture getData()

getData() protected method Returns the fixture data. The default implementation will try to return the fixture data by including the external file specified by $dataFile. The file should return an array of data rows (column name => column value), each corresponding to a row in the index. If the data file does not exist, an empty array will be returned. protected array getData ( )return array The data rows to be inserted into the database index.