gii\generators\controller\Generator rules()

rules() public method Returns the validation rules for attributes. Validation rules are used by validate() to check if attribute values are valid. Child classes may override this method to declare different validation rules. Each rule is an array with the following structure: [ ['attribute1', 'attribute2'], 'validator type', 'on' => ['scenario1', 'scenario2'], //...other parameters... ] where attribute list: required, specifies the attributes array to be validated, for s

widgets\ContentDecorator run()

run() public method Ends recording a clip. This method stops output buffering and saves the rendering result as a named clip in the controller. public void run ( )

caching\FileDependency generateDependencyData()

generateDependencyData() protected method Generates the data needed to determine if dependency has been changed. This method returns the file's last modification time. protected mixed generateDependencyData ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency return mixed The data needed to determine if dependency has been changed. throws yii\base\InvalidConfigException if $fileName is not set

base\Widget $id

$id public property ID of the widget. public string getId ( $autoGenerate = true )public void setId ( $value )

db\Command createTable()

createTable() public method Creates a SQL command for creating a new DB table. The columns in the new table should be specified as name-definition pairs (e.g. 'name' => 'string'), where name stands for a column name which will be properly quoted by the method, and definition stands for the column type which can contain an abstract DB type. The method yii\db\QueryBuilder::getColumnType() will be called to convert the abstract column types to physical ones. For example, string will be conv

web\Request getScriptFile()

getScriptFile() public method Returns the entry script file path. The default implementation will simply return $_SERVER['SCRIPT_FILENAME']. public string getScriptFile ( )return string The entry script file path throws yii\base\InvalidConfigException

gii\generators\model\Generator $generateRelationsFromCurrentSchema

$generateRelationsFromCurrentSchema public property public $generateRelationsFromCurrentSchema = true

authclient\ClientInterface getUserAttributes()

getUserAttributes() public abstract method public abstract array getUserAttributes ( )return array List of user attributes

web\Response $charset

$charset public property The charset of the text response. If not set, it will use the value of yii\web\Application::$charset. public string $charset = null

mongodb\gii\model\Generator generateRules()

generateRules() public method Generates validation rules for the specified collection. public array generateRules ( $attributes )$attributes array The list of attributes return array The generated validation rules