gii\generators\model\Generator validateTableName()

validateTableName() public method Validates the $tableName attribute. public void validateTableName ( )

mongodb\validators\MongoIdValidator validateValue()

validateValue() protected method Validates a value. A validator class can implement this method to support data validation out of the context of a data model. protected array|null validateValue ( $value )$value mixed The data value to be validated. return array|null The error message and the parameters to be inserted into the error message. Null should be returned if the data is valid. throws yii\base\NotSupportedException if the validator does not supporting data validation withou

db\Schema getColumnPhpType()

getColumnPhpType() protected method Extracts the PHP type from abstract DB type. protected string getColumnPhpType ( $column )$column yii\db\ColumnSchema The column schema information return string PHP type name

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.