elasticsearch\ActiveRecord primaryKey()

primaryKey() public static method This method defines the attribute that uniquely identifies a record. The primaryKey for elasticsearch documents is the _id field by default. This field is not part of the ActiveRecord attributes so you should never add _id to the list of attributes. You may override this method to define the primary key name when you have defined path mapping for the _id field so that it is part of the _source and thus part of the attributes. Note that elasticsearch only su

base\ErrorHandler handleFallbackExceptionMessage()

handleFallbackExceptionMessage() protected method (available since version 2.0.11) Handles exception thrown during exception processing in handleException(). protected void handleFallbackExceptionMessage ( $exception, $previousException )$exception Exception|\Throwable Exception that was thrown during main exception processing. $previousException Exception Main exception processed in handleException().

db\Migration getDb()

getDb() protected method (available since version 2.0.6) protected void getDb ( )

bootstrap\Nav $route

$route public property The route used to determine if a menu item is active or not. If not set, it will use the route of the current request. See also: $params isItemActive() public string $route = null

sphinx\QueryBuilder buildLimit()

buildLimit() public method public string buildLimit ( $limit, $offset )$limit integer $offset integer return string The LIMIT and OFFSET clauses built from \yii\sphinx\query.

db\SchemaBuilderTrait smallInteger()

smallInteger() public method (available since version 2.0.6) Creates a smallint column. public yii\db\ColumnSchemaBuilder smallInteger ( $length = null )$length integer Column size or precision definition. This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

filters\HttpCache $etagSeed

$etagSeed public property A PHP callback that generates the ETag seed string. The callback's signature should be: function ($action, $params) where $action is the yii\base\Action object that this filter is currently handling; $params takes the value of $params. The callback should return a string serving as the seed for generating an ETag. public callable $etagSeed = null

i18n\Formatter asDecimal()

asDecimal() public method Formats the value as a decimal number. Property $decimalSeparator will be used to represent the decimal point. The value is rounded automatically to the defined decimal digits. See also: $decimalSeparator $thousandSeparator public string asDecimal ( $value, $decimals = null, $options = [], $textOptions = [] )$value mixed The value to be formatted. $decimals integer The number of digits after the decimal point. If not given the number of digits is determined fr

db\sqlite\Schema findColumns()

findColumns() protected method Collects the table column metadata. protected boolean findColumns ( $table )$table yii\db\TableSchema The table metadata return boolean Whether the table exists in the database

base\Object hasProperty()

hasProperty() public method Returns a value indicating whether a property is defined. A property is defined if: the class has a getter or setter method associated with the specified name (in this case, property name is case-insensitive); the class has a member variable with the specified name (when $checkVars is true); See also: canGetProperty() canSetProperty() public boolean hasProperty ( $name, $checkVars = true )$name string The property name $checkVars boolean Whether to treat mem