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\Controller optionAliases()

optionAliases() public method (available since version 2.0.8) Returns option alias names. Child classes may override this method to specify alias options. See also \yii\console\options($actionID). public array optionAliases ( )return array The options alias names valid for the action where the keys is alias name for option and value is option name.

db\Query exists()

exists() public method Returns a value indicating whether the query result contains any row of data. public boolean exists ( $db = null )$db yii\db\Connection The database connection used to generate the SQL statement. If this parameter is not given, the db application component will be used. return boolean Whether the query result contains any row of data.

console\controllers\AssetController $bundles

$bundles public property List of asset bundles to be compressed. public array $bundles = []

console\controllers\AssetController $jsCompressor

$jsCompressor public property JavaScript file compressor. If a string, it is treated as shell command template, which should contain placeholders {from} - source file name - and {to} - output file name. Otherwise, it is treated as PHP callback, which should perform the compression. Default value relies on usage of "Closure Compiler" See also https://developers.google.com/closure/compiler/. public string|callable $jsCompressor = 'java -jar compiler.jar --js {from} --js_output_file {to}'

console\controllers\AssetController adjustCssUrl()

adjustCssUrl() protected method Adjusts CSS content allowing URL references pointing to the original resources. protected string adjustCssUrl ( $cssContent, $inputFilePath, $outputFilePath )$cssContent string Source CSS content. $inputFilePath string Input CSS file name. $outputFilePath string Output CSS file name. return string Adjusted CSS content.

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