web\Request parseAcceptHeader()

parseAcceptHeader() public method Parses the given Accept (or Accept-Language) header. This method will return the acceptable values with their quality scores and the corresponding parameters as specified in the given Accept header. The array keys of the return value are the acceptable values, while the array values consisting of the corresponding quality scores and parameters. The acceptable values with the highest quality scores will be returned first. For example, $header = 'text/plain;

i18n\Formatter asRaw()

asRaw() public method Formats the value as is without any formatting. This method simply returns back the parameter without any format. The only exception is a null value which will be formatted using $nullDisplay. public string asRaw ( $value )$value mixed The value to be formatted. return string The formatted result.

web\Request $url

$url public property The currently requested relative URL. Note that the URI returned is URL-encoded. public string getUrl ( )public void setUrl ( $value )

base\Controller render()

render() public method Renders a view and applies layout if available. The view to be rendered can be specified in one of the following formats: path alias (e.g. "@app/views/site/index"); absolute path within application (e.g. "//site/index"): the view name starts with double slashes. The actual view file will be looked for under the view path of the application. absolute path within module (e.g. "/site/index"): the view name starts with a single slash. The actual view file will be looked f

db\Connection useMaster()

useMaster() public method Executes the provided callback by using the master connection. This method is provided so that you can temporarily force using the master connection to perform DB operations even if they are read queries. For example, $result = $db->useMaster(function ($db) { return $db->createCommand('SELECT * FROM user LIMIT 1')->queryOne(); }); public mixed useMaster ( callable $callback )$callback callable A PHP callable to be executed by this method. Its signa

db\mssql\QueryBuilder dropCommentFromTable()

dropCommentFromTable() public method (available since version 2.0.8) Builds a SQL command for adding comment to table public string dropCommentFromTable ( $table )$table string The table whose column is to be commented. The table name will be properly quoted by the method. return string The SQL statement for adding comment on column

bootstrap\Nav isItemActive()

isItemActive() protected method Checks whether a menu item is active. This is done by checking if $route and $params match that specified in the url option of the menu item. When the url option of a menu item is specified in terms of an array, its first element is treated as the route for the item and the rest of the elements are the associated parameters. Only when its route and parameters match $route and $params, respectively, will a menu item be considered active. protected boolean is

gii\generators\crud\Generator getControllerID()

getControllerID() public method public string getControllerID ( )return string The controller ID (without the module ID prefix)

db\pgsql\QueryBuilder $conditionBuilders

$conditionBuilders protected property Map of query condition to builder methods. These methods are used by buildCondition() to build SQL conditions from array syntax. protected array $conditionBuilders = ['NOT' => 'buildNotCondition', 'AND' => 'buildAndCondition', 'OR' => 'buildAndCondition', 'BETWEEN' => 'buildBetweenCondition', 'NOT BETWEEN' => 'buildBetweenCondition', 'IN' => 'buildInCondition', 'NOT IN' => 'buildInCondition', 'LIKE' => 'buildLikeCondition', 'ILI

helpers\BaseArrayHelper keyExists()

keyExists() public static method Checks if the given array contains the specified key. This method enhances the array_key_exists() function by supporting case-insensitive key comparison. public static boolean keyExists ( $key, $array, $caseSensitive = true )$key string The key to check $array array The array with keys to check $caseSensitive boolean Whether the key comparison should be case-sensitive return boolean Whether the array contains the specified key