caching\Cache setValue()

setValue() protected abstract method Stores a value identified by a key in cache. This method should be implemented by child classes to store the data in specific cache storage. protected abstract boolean setValue ( $key, $value, $duration )$key string The key identifying the value to be cached $value mixed The value to be cached. Most often it's a string. If you have disabled $serializer, it could be something else. $duration integer The number of seconds in which the cached value w

web\UrlRule substitutePlaceholderNames()

substitutePlaceholderNames() protected method (available since version 2.0.7) Iterates over $placeholders and checks whether each placeholder exists as a key in $matches array. When found - replaces this placeholder key with a appropriate name of matching parameter. Used in parseRequest(), createUrl(). See also $placeholders. protected array substitutePlaceholderNames ( array $matches )$matches array Result of preg_match() call return array Input array with replaced placeholder keys

caching\DbCache init()

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

caching\FileCache 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.

console\Controller getPassedOptions()

getPassedOptions() public method Returns the names of valid options passed during execution. public array getPassedOptions ( )return array The names of the options passed during execution

console\controllers\HelpController getDefaultHelp()

getDefaultHelp() protected method Displays all available commands. protected void getDefaultHelp ( )

console\controllers\MessageController $format

$format public property Generated file format. Can be "php", "db" or "po". public string $format = 'php'

base\ActionFilter afterFilter()

afterFilter() public method public void afterFilter ( $event )$event yii\base\ActionEvent

web\Request $isSecureConnection

$isSecureConnection public read-only property If the request is sent via secure channel (https) public boolean getIsSecureConnection ( )

db\QueryBuilder $db

$db public property The database connection. public yii\db\Connection $db = null