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

base\DynamicModel __unset()

__unset() public method Sets a component property to be null. This method will check in the following order and act accordingly: a property defined by a setter: set the property value to be null a property of a behavior: set the property value to be null Do not call this method directly as it is a PHP magic method that will be implicitly called when executing unset($component->property). public void __unset ( $name )$name string The property name throws yii\base\InvalidCallException

mongodb\Connection registerFileStreamWrapper()

registerFileStreamWrapper() public method Registers GridFS stream wrapper for the $fileStreamProtocol protocol. public string registerFileStreamWrapper ( $force = false )$force boolean Whether to enforce registration even wrapper has been already registered. return string Registered stream protocol name.

gii\console\GenerateController actions()

actions() public method Declares external actions for the controller. This method is meant to be overwritten to declare external actions for the controller. It should return an array, with array keys being action IDs, and array values the corresponding action class names or action configuration arrays. For example, return [ 'action1' => 'app\components\Action1', 'action2' => [ 'class' => 'app\components\Action2', 'property1' => 'value1', 'property

mongodb\ActiveRecord updateAll()

updateAll() public static method Updates all documents in the collection using the provided attribute values and conditions. For example, to change the status to be 1 for all customers whose status is 2: Customer::updateAll(['status' => 1], ['status' => 2]); public static integer updateAll ( $attributes, $condition = [], $options = [] )$attributes array Attribute values (name-value pairs) to be saved into the collection $condition array Description of the objects to update. Plea

web\CookieCollection fromArray()

fromArray() public method (available since version 2.0.3) Populates the cookie collection from an array. public void fromArray ( array $array )$array array The cookies to populate from

filters\ContentNegotiator $languageParam

$languageParam public property The name of the GET parameter that specifies the application language. Note that if the specified language does not match any of $languages, the first language in $languages will be used. If the parameter value is empty or if this property is null, the application language will be determined based on the Accept-Language HTTP header only. See also $languages. public string $languageParam = '_lang'

db\QueryBuilder $conditionBuilders

$conditionBuilders protected property Map of query condition to builder methods. These methods are used by buildCondition() to build SQL conditions from array syntax. protected array $conditionBuilders = ['NOT' => 'buildNotCondition', 'AND' => 'buildAndCondition', 'OR' => 'buildAndCondition', 'BETWEEN' => 'buildBetweenCondition', 'NOT BETWEEN' => 'buildBetweenCondition', 'IN' => 'buildInCondition', 'NOT IN' => 'buildInCondition', 'LIKE' => 'buildLikeCondition', 'NOT

grid\GridView $options

$options public property The HTML attributes for the container tag of the grid view. The "tag" element specifies the tag name of the container element and defaults to "div". See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $options = ['class' => 'grid-view']

web\AssetBundle publish()

publish() public method Publishes the asset bundle if its source code is not under Web-accessible directory. It will also try to convert non-CSS or JS files (e.g. LESS, Sass) into the corresponding CSS or JS files using asset converter. public void publish ( $am )$am yii\web\AssetManager The asset manager to perform the asset publishing