mongodb\QueryBuilder distinct()

distinct() public method Generates 'distinct' command. public array distinct ( $collectionName, $fieldName, $condition = [], $options = [] )$collectionName string Collection name. $fieldName string Target field name. $condition array Filter condition $options array List of options in format: optionName => optionValue. return array Command document.

Pagination

When there are too much data to be displayed on a single page, a common strategy is to display them in multiple pages and on each page only display a small portion of the data. This strategy is known as pagination. Yii uses a yii\data\Pagination object to represent the information about a pagination scheme. In particular, total count specifies the total number of data items. Note that this is usually much more than the number of data items needed to display on a single page. page size specifi

gii\generators\model\Generator getDescription()

getDescription() public method public string getDescription ( )return string The detailed description of the generator.

mongodb\QueryBuilder buildNotCondition()

buildNotCondition() public method Composes NOT condition. public array buildNotCondition ( $operator, $operands )$operator string The operator to use for connecting the given operands $operands array The Mongo conditions to connect. return array The generated Mongo condition. throws yii\base\InvalidParamException if wrong number of operands have been given.

db\ColumnSchemaBuilder __construct()

__construct() public method Create a column schema builder instance giving the type and value precision. public void __construct ( $type, $length = null, $db = null, $config = [] )$type string Type of the column. See $type. $length integer|string|array Length or precision of the column. See $length. $db yii\db\Connection The current database connection. See $db. $config array Name-value pairs that will be used to initialize the object properties

console\controllers\HelpController getModuleCommands()

getModuleCommands() protected method Returns available commands of a specified module. protected array getModuleCommands ( $module )$module yii\base\Module The module instance return array The available command names

widgets\Menu $activateParents

$activateParents public property Whether to activate parent menu items when one of the corresponding child menu items is active. The activated parent menu items will also have its CSS classes appended with $activeCssClass. public boolean $activateParents = false

base\Application $charset

$charset public property The charset currently used for the application. public string $charset = 'UTF-8'

console\controllers\MessageController tokensEqual()

tokensEqual() protected method (available since version 2.0.1) Finds out if two PHP tokens are equal protected boolean tokensEqual ( $a, $b )$a array|string $b array|string

web\HeaderCollection fromArray()

fromArray() public method (available since version 2.0.3) Populates the header collection from an array. public void fromArray ( array $array )$array array The headers to populate from