db\SchemaBuilderTrait time()

time() public method (available since version 2.0.6) Creates a time column. public yii\db\ColumnSchemaBuilder time ( $precision = null )$precision integer Column value precision. First parameter passed to the column type, e.g. TIME(precision). This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

db\Connection $tablePrefix

$tablePrefix public property The common prefix or suffix for table names. If a table name is given as {{%TableName}}, then the percentage character % will be replaced with this property value. For example, {{%post}} becomes {{tbl_post}}. public string $tablePrefix = ''

helpers\BaseFileHelper getExtensionsByMimeType()

getExtensionsByMimeType() public static method Determines the extensions by given MIME type. This method will use a local map between extension names and MIME types. public static array getExtensionsByMimeType ( $mimeType, $magicFile = null )$mimeType string File MIME type. $magicFile string The path (or alias) of the file that contains all available MIME type information. If this is not set, the file specified by $mimeMagicFile will be used. return array The extensions corresponding

mongodb\file\StreamWrapper stream_stat()

stream_stat() public method Retrieve information about a file resource. This method is called in response to stat(). See also \yii\mongodb\file\stat(). public array stream_stat ( )return array File statistic information.

mongodb\Collection createIndex()

createIndex() public method Creates an index on the collection and the specified fields. public boolean createIndex ( $columns, $options = [] )$columns array|string Column name or list of column names. If array is given, each element in the array has as key the field name, and as value either 1 for ascending sort, or -1 for descending sort. You can specify field using native numeric key with the field name as a value, in this case ascending sort will be used. For example: [ 'name',

mongodb\rbac\MongoDbManager getRules()

getRules() public method Returns all rules available in the system. public yii\rbac\Rule[] getRules ( )return yii\rbac\Rule[] The rules indexed by the rule names

data\Sort createSortParam()

createSortParam() public method Creates the sort variable for the specified attribute. The newly created sort variable can be used to create a URL that will lead to sorting by the specified attribute. public string createSortParam ( $attribute )$attribute string The attribute name return string The value of the sort variable throws yii\base\InvalidConfigException if the specified attribute is not defined in $attributes

mongodb\Query buildCursor()

buildCursor() public method Builds the Mongo cursor for this query. public \MongoDB\Driver\Cursor buildCursor ( $db = null )$db yii\mongodb\Connection The database connection used to execute the query. return \MongoDB\Driver\Cursor Mongo cursor instance.

validators\EmailValidator clientValidateAttribute()

clientValidateAttribute() public method Returns the JavaScript needed for performing client-side validation. You may override this method to return the JavaScript validation code if the validator can support client-side validation. The following JavaScript variables are predefined and can be used in the validation code: attribute: an object describing the the attribute being validated. value: the value being validated. messages: an array used to hold the validation error messages for the

widgets\ActiveField textInput()

textInput() public method Renders a text input. This method will generate the name and value tag attributes automatically for the model attribute unless they are explicitly specified in $options. public $this textInput ( $options = [] )$options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using yii\helpers\Html::encode(). The following special options are recognized: maxlength: integer|