db\ActiveRecord insert()

insert() public method Inserts a row into the associated database table using the attribute values of this record. 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; inse

i18n\Formatter asInteger()

asInteger() public method Formats the value as an integer number by removing any decimal digits without rounding. public string asInteger ( $value, $options = [], $textOptions = [] )$value mixed The value to be formatted. $options array Optional configuration for the number formatter. This parameter will be merged with $numberFormatterOptions. $textOptions array Optional configuration for the number formatter. This parameter will be merged with $numberFormatterTextOptions. return st

grid\ActionColumn $buttons

$buttons public property Button rendering callbacks. The array keys are the button names (without curly brackets), and the values are the corresponding button rendering callbacks. The callbacks should use the following signature: function ($url, $model, $key) { // return the button HTML code } where $url is the URL that the column creates for the button, $model is the model object being rendered for the current row, and $key is the key of the model in the data provider array. You can a

widgets\ListView $itemView

$itemView public property The name of the view for rendering each data item, or a callback (e.g. an anonymous function) for rendering each data item. If it specifies a view name, the following variables will be available in the view: $model: mixed, the data model $key: mixed, the key value associated with the data item $index: integer, the zero-based index of the data item in the items array returned by $dataProvider. $widget: ListView, this widget instance Note that the view name is re

web\Request validateCsrfToken()

validateCsrfToken() public method Performs the CSRF validation. This method will validate the user-provided CSRF token by comparing it with the one stored in cookie or session. This method is mainly called in yii\web\Controller::beforeAction(). Note that the method will NOT perform CSRF validation if $enableCsrfValidation is false or the HTTP method is among GET, HEAD or OPTIONS. public boolean validateCsrfToken ( $token = null )$token string The user-provided CSRF token to be validated.

console\controllers\AssetController actionTemplate()

actionTemplate() public method Creates template of configuration file for actionCompress(). public integer actionTemplate ( $configFile )$configFile string Output file name. return integer CLI exit code throws yii\console\Exception on failure.

mongodb\Command getReadPreference()

getReadPreference() public method Returns read preference for this command. public \MongoDB\Driver\ReadPreference getReadPreference ( )return \MongoDB\Driver\ReadPreference Read preference.

db\oci\Schema findColumns()

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

caching\DbCache getValue()

getValue() protected method Retrieves a value from cache with a specified key. This is the implementation of the method declared in the parent class. protected string|false getValue ( $key )$key string A unique key identifying the cached value return string|false The value stored in cache, false if the value is not in the cache or expired.

helpers\BaseHtml resetButton()

resetButton() public static method Generates a reset button tag. public static string resetButton ( $content = 'Reset', $options = [] )$content string The content enclosed within the button tag. It will NOT be HTML-encoded. Therefore you can pass in HTML code such as an image tag. If this is is coming from end users, you should consider encode() it to prevent XSS attacks. $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the result