web\CookieCollection has()

has() public method Returns whether there is a cookie with the specified name. Note that if a cookie is marked for deletion from browser, this method will return false. See also remove(). public boolean has ( $name )$name string The cookie name return boolean Whether the named cookie exists

mongodb\Cache init()

init() public method Initializes the Cache component. This method will initialize the $db property to make sure it refers to a valid MongoDB connection. public void init ( )throws yii\base\InvalidConfigException if $db is invalid.

mutex\MysqlMutex init()

init() public method Initializes MySQL specific mutex component implementation. public void init ( )throws yii\base\InvalidConfigException if $db is not MySQL connection.

base\ActionFilter getActionId()

getActionId() protected method (available since version 2.0.7) Returns an action ID by converting yii\base\Action::$uniqueId into an ID relative to the module protected string getActionId ( $action )$action yii\base\Action

web\SessionIterator key()

key() public method Returns the key of the current array element. This method is required by the interface Iterator. public mixed key ( )return mixed The key of the current array element

Working with Client Scripts

Note: This section is under development. Registering scripts With the yii\web\View object you can register scripts. There are two dedicated methods for it: registerJs() for inline scripts and registerJsFile() for external scripts. Inline scripts are useful for configuration and dynamically generated code. The method for adding these can be used as follows: $this->registerJs("var options = ".json_encode($options).";", View::POS_END, 'my-options'); The first argument is the actual JS code

db\Schema $tableSchemas

$tableSchemas public read-only property The metadata for all tables in the database. Each array element is an instance of yii\db\TableSchema or its child class. public yii\db\TableSchema[] getTableSchemas ( $schema = '', $refresh = false )

debug\TimelineAsset $css

$css public property public $css = ['timeline.css']

authclient\widgets\AuthChoiceStyleAsset $sourcePath

$sourcePath public property public $sourcePath = '@yii/authclient/assets'

web\UrlManager addRules()

addRules() public method Adds additional URL rules. This method will call buildRules() to parse the given rule declarations and then append or insert them to the existing $rules. Note that if $enablePrettyUrl is false, this method will do nothing. public void addRules ( $rules, $append = true )$rules array The new rules to be added. Each array element represents a single rule declaration. Please refer to $rules for the acceptable rule format. $append boolean Whether to add the new rule