db\BaseActiveRecord update()

update() public method Saves the changes to this active record into the associated database table. This method performs the following steps in order: call beforeValidate() when $runValidation is true. If beforeValidate() returns false, the rest of the steps will be skipped; call afterValidate() when $runValidation is true. If validation failed, the rest of the steps will be skipped; call beforeSave(). If beforeSave() returns false, the rest of the steps will be skipped; save the record into

sphinx\Query match()

match() public method Sets the fulltext query text. This text will be composed into MATCH operator inside the WHERE clause. Note: this value will be processed by yii\sphinx\Connection::escapeMatchValue(), if you need to compose complex match condition use yii\db\Expression: $query = new Query(); $query->from('my_index') ->match(new Expression(':match', ['match' => '@(content) ' . Yii::$app->sphinx->escapeMatchValue($matchValue)])) ->all(); public $this match ( $

helpers\BaseHtml csrfMetaTags()

csrfMetaTags() public static method Generates the meta tags containing CSRF token information. See also yii\web\Request::$enableCsrfValidation. public static string csrfMetaTags ( )return string The generated meta tags

data\BaseDataProvider setKeys()

setKeys() public method Sets the key values associated with the data models. public void setKeys ( $keys )$keys array The list of key values corresponding to $models.

db\Query createCommand()

createCommand() public method Creates a DB command that can be used to execute this query. public yii\db\Command createCommand ( $db = null )$db yii\db\Connection The database connection used to generate the SQL statement. If this parameter is not given, the db application component will be used. return yii\db\Command The created DB command instance.

sphinx\Query facets()

facets() public method Sets FACET part of the query. public $this facets ( $facets )$facets array Facet specifications. return $this The query object itself

db\MigrationInterface up()

up() public abstract method This method contains the logic to be executed when applying this migration. public abstract boolean up ( )return boolean Return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.

helpers\BaseConsole startProgress()

startProgress() public static method Starts display of a progress bar on screen. This bar will be updated by updateProgress() and my be ended by endProgress(). The following example shows a simple usage of a progress bar: Console::startProgress(0, 1000); for ($n = 1; $n <= 1000; $n++) { usleep(1000); Console::updateProgress($n, 1000); } Console::endProgress(); Git clone like progress (showing only status information): `php Console::startProgress(0, 1000, 'Counting objects: ', fa

web\GroupUrlRule parseRequest()

parseRequest() public method Parses the given request and returns the corresponding route and parameters. public array|boolean parseRequest ( $manager, $request )$manager yii\web\UrlManager The URL manager $request yii\web\Request The request component return array|boolean The parsing result. The route and the parameters are returned as an array. If false, it means this rule cannot be used to parse this path info.

mongodb\Command listDatabases()

listDatabases() public method Returns the list of available databases. public array listDatabases ( $condition = [], $options = [] )$condition array Filter condition. $options array Options list. return array Database information