helpers\BaseFileHelper localize()

localize() public static method Returns the localized version of a specified file. The searching is based on the specified language code. In particular, a file with the same name will be looked for under the subdirectory whose name is the same as the language code. For example, given the file "path/to/view.php" and language code "zh-CN", the localized file will be looked for as "path/to/zh-CN/view.php". If the file is not found, it will try a fallback with just a language code that is "zh"

elasticsearch\ActiveRecord getDb()

getDb() public static method Returns the database connection used by this AR class. By default, the "elasticsearch" application component is used as the database connection. You may override this method if you want to use a different database connection. public static yii\elasticsearch\Connection getDb ( )return yii\elasticsearch\Connection The database connection used by this AR class.

caching\Dependency $reusable

$reusable public property Whether this dependency is reusable or not. True value means that dependent data for this cache dependency will be generated only once per request. This allows you to use the same cache dependency for multiple separate cache calls while generating the same page without an overhead of re-evaluating dependency data each time. Defaults to false. public boolean $reusable = false

rbac\DbManager getDirectPermissionsByUser()

getDirectPermissionsByUser() protected method (available since version 2.0.7) Returns all permissions that are directly assigned to user. protected yii\rbac\Permission[] getDirectPermissionsByUser ( $userId )$userId string|integer The user ID (see yii\web\User::$id) return yii\rbac\Permission[] All direct permissions that the user has. The array is indexed by the permission names.

authclient\OpenId setTrustRoot()

setTrustRoot() public method public void setTrustRoot ( $value )$value string Client trust root (realm).

helpers\BaseConsole ansiToHtml()

ansiToHtml() public static method Converts an ANSI formatted string to HTML Note: xTerm 256 bit colors are currently not supported. public static string ansiToHtml ( $string, $styleMap = [] )$string string The string to convert. $styleMap array An optional mapping of ANSI control codes such as FG_COLOR or BOLD to a set of css style definitions. The CSS style definitions are represented as an array where the array keys correspond to the css style attribute names and the values are the c

mongodb\file\ActiveRecord getFileContent()

getFileContent() public method Returns the associated file content. public null|string getFileContent ( )return null|string File content. throws yii\base\InvalidParamException on invalid file attribute value.

caching\Cache addValues()

addValues() protected method Adds multiple key-value pairs to cache. The default implementation calls addValue() multiple times add values one by one. If the underlying cache storage supports multi-add, this method should be overridden to exploit that feature. protected array addValues ( $data, $duration )$data array Array where key corresponds to cache key while value is the value stored. $duration integer The number of seconds in which the cached values will expire. 0 means never exp

rbac\DbManager populateItem()

populateItem() protected method Populates an auth item with the data fetched from database protected yii\rbac\Item populateItem ( $row )$row array The data from the auth item table return yii\rbac\Item The populated auth item instance (either Role or Permission)

console\controllers\AssetController adjustDependency()

adjustDependency() protected method Adjust dependencies between asset bundles in the way source bundles begin to depend on output ones. protected yii\web\AssetBundle[] adjustDependency ( $targets, $bundles )$targets yii\web\AssetBundle[] Output asset bundles. $bundles yii\web\AssetBundle[] Source asset bundles. return yii\web\AssetBundle[] Output asset bundles.