rbac\PhpManager getRolesByUser()

getRolesByUser() public method Returns the roles that are assigned to the user via assign(). Note that child roles that are not assigned directly to the user will not be returned. public yii\rbac\Role[] getRolesByUser ( $userId )$userId string|integer The user ID (see yii\web\User::$id) return yii\rbac\Role[] All roles directly assigned to the user. The array is indexed by the role names.

console\Controller getHelp()

getHelp() public method Returns help information for this controller. You may override this method to return customized help. The default implementation returns help information retrieved from the PHPDoc comment. public string getHelp ( )

mongodb\Migration save()

save() public method Update the existing database data, otherwise insert this data public \MongoDB\BSON\ObjectID save ( $collection, $data, $options = [] )$collection array|string Collection name. $data array|object Data to be updated/inserted. $options array List of options in format: optionName => optionValue. return \MongoDB\BSON\ObjectID Updated/new record id instance.

validators\IpValidator validateAttribute()

validateAttribute() public method Validates a single attribute. Child classes must implement this method to provide the actual validation logic. public void validateAttribute ( $model, $attribute )$model yii\base\Model The data model to be validated $attribute string The name of the attribute to be validated.

gii\generators\form\Generator rules()

rules() public method Returns the validation rules for attributes. Validation rules are used by validate() to check if attribute values are valid. Child classes may override this method to declare different validation rules. Each rule is an array with the following structure: [ ['attribute1', 'attribute2'], 'validator type', 'on' => ['scenario1', 'scenario2'], //...other parameters... ] where attribute list: required, specifies the attributes array to be validated, for s

caching\ArrayCache getValue()

getValue() protected method Retrieves a value from cache with a specified key. This method should be implemented by child classes to retrieve the data from specific cache storage. protected mixed|false getValue ( $key )$key string A unique key identifying the cached value return mixed|false The value stored in cache, false if the value is not in the cache or expired. Most often value is a string. If you have disabled $serializer, it could be something else.

widgets\InputWidget hasModel()

hasModel() protected method protected boolean hasModel ( )return boolean Whether this widget is associated with a data model.

elasticsearch\DebugAction run()

run() public method public void run ( $logId, $tag )$logId $tag

sphinx\Query search()

search() public method Executes the query and returns the complete search result including e.g. hits, facets. public array search ( $db = null )$db yii\sphinx\Connection The Sphinx connection used to generate the SQL statement. return array The query results.

grid\DataColumn $enableSorting

$enableSorting public property Whether to allow sorting by this column. If true and $attribute is found in the sort definition of yii\grid\GridView::$dataProvider, then the header cell of this column will contain a link that may trigger the sorting when being clicked. public boolean $enableSorting = true