db\BaseActiveRecord refresh()

refresh() public method Repopulates this active record with the latest data. If the refresh is successful, an EVENT_AFTER_REFRESH event will be triggered. This event is available since version 2.0.8. public boolean refresh ( )return boolean Whether the row still exists in the database. If true, the latest data will be populated to this active record. Otherwise, this record will remain unchanged.

i18n\Formatter asNtext()

asNtext() public method Formats the value as an HTML-encoded plain text with newlines converted into breaks. public string asNtext ( $value )$value string The value to be formatted. return string The formatted result.

rest\Controller serializeData()

serializeData() protected method Serializes the specified data. The default implementation will create a serializer based on the configuration given by $serializer. It then uses the serializer to serialize the given data. protected mixed serializeData ( $data )$data mixed The data to be serialized return mixed The serialized data.

db\Connection $enableSavepoint

$enableSavepoint public property Whether to enable savepoint. Note that if the underlying DBMS does not support savepoint, setting this property to be true will have no effect. public boolean $enableSavepoint = true

elasticsearch\Command deleteMapping()

deleteMapping() public method See also http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html. public mixed deleteMapping ( $index, $type )$index $type

elasticsearch\Query all()

all() public method Executes the query and returns all results as an array. public array all ( $db = null )$db yii\elasticsearch\Connection The database connection used to execute the query. If this parameter is not given, the elasticsearch application component will be used. return array The query results. If the query results in nothing, an empty array will be returned.

captcha\CaptchaAction validate()

validate() public method Validates the input to see if it matches the generated code. public boolean validate ( $input, $caseSensitive )$input string User input $caseSensitive boolean Whether the comparison should be case-sensitive return boolean Whether the input is valid

caching\Cache get()

get() public method Retrieves a value from cache with a specified key. public mixed get ( $key )$key mixed A key identifying the cached value. This can be a simple string or a complex data structure consisting of factors representing the key. return mixed The value stored in cache, false if the value is not in the cache, expired, or the dependency associated with the cached data has changed.

db\SchemaBuilderTrait dateTime()

dateTime() public method (available since version 2.0.6) Creates a datetime column. public yii\db\ColumnSchemaBuilder dateTime ( $precision = null )$precision integer Column value precision. First parameter passed to the column type, e.g. DATETIME(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\Schema quoteSimpleTableName()

quoteSimpleTableName() public method Quotes a simple table name for use in a query. A simple table name should contain the table name only without any schema prefix. If the table name is already quoted, this method will do nothing. public string quoteSimpleTableName ( $name )$name string Table name return string The properly quoted table name