twig\ViewRenderer $functions

$functions public property Custom functions. Keys of the array are names to call in template, values are names of functions or static methods of some class. Example: ['rot13' => 'str_rot13', 'a' => '\yii\helpers\Html::a']. In the template you can use it like this: {{ rot13('test') }} or {{ a('Login', 'site/login') | raw }}. public array $functions = []

helpers\BaseConsole streamSupportsAnsiColors()

streamSupportsAnsiColors() public static method Returns true if the stream supports colorization. ANSI colors are disabled if not supported by the stream. windows without ansicon not tty consoles public static boolean streamSupportsAnsiColors ( $stream )$stream mixed return boolean True if the stream supports ANSI colors, otherwise false.

db\ActiveQueryTrait asArray()

asArray() public method Sets the asArray() property. public $this asArray ( $value = true )$value boolean Whether to return the query results in terms of arrays instead of Active Records. return $this The query object itself

base\Application bootstrap()

bootstrap() protected method Initializes extensions and executes bootstrap components. This method is called by init() after the application has been fully configured. If you override this method, make sure you also call the parent implementation. protected void bootstrap ( )

base\Module setModule()

setModule() public method Adds a sub-module to this module. public void setModule ( $id, $module )$id string Module ID. $module yii\base\Module|array|null The sub-module to be added to this module. This can be one of the following: a yii\base\Module object a configuration array: when getModule() is called initially, the array will be used to instantiate the sub-module null: the named sub-module will be removed from this module

captcha\CaptchaAction generateVerifyCode()

generateVerifyCode() protected method Generates a new verification code. protected string generateVerifyCode ( )return string The generated verification code

db\ActiveQueryInterface one()

one() public abstract method Executes query and returns a single row of result. public abstract yii\db\ActiveRecordInterface|array|null one ( $db = null )$db yii\db\Connection The DB connection used to create the DB command. If null, the DB connection returned by \yii\db\modelClass will be used. return yii\db\ActiveRecordInterface|array|null A single row of query result. Depending on the setting of asArray(), the query result may be either an array or an ActiveRecord object. null wil

console\controllers\MigrateController beforeAction()

beforeAction() public method This method is invoked right before an action is to be executed (after all possible filters.) It checks the existence of the $migrationPath. public boolean beforeAction ( $action )$action yii\base\Action The action to be executed. return boolean Whether the action should continue to be executed.

sphinx\ActiveRecord updateInternal()

updateInternal() protected method See also \yii\sphinx\CActiveRecord::update(). protected void updateInternal ( $attributes = null )$attributes throws yii\db\StaleObjectException

caching\FileCache gc()

gc() public method Removes expired cache files. public void gc ( $force = false, $expiredOnly = true )$force boolean Whether to enforce the garbage collection regardless of $gcProbability. Defaults to false, meaning the actual deletion happens with the probability as specified by $gcProbability. $expiredOnly boolean Whether to removed expired cache files only. If false, all cache files under $cachePath will be removed.