redis\ActiveQuery count()

count() public method Returns the number of records. public integer count ( $q = '*', $db = null )$q string The COUNT expression. This parameter is ignored by this implementation. $db yii\redis\Connection The database connection used to execute the query. If this parameter is not given, the db application component will be used. return integer Number of records

redis\ActiveQuery column()

column() public method Executes the query and returns the first column of the result. public array column ( $column, $db = null )$column string Name of the column to select $db yii\redis\Connection The database connection used to execute the query. If this parameter is not given, the db application component will be used. return array The first column of the query result. An empty array is returned if the query results in nothing.

redis\ActiveQuery average()

average() public method Returns the average of the specified column values. public integer average ( $column, $db = null )$column string The column name or expression. Make sure you properly quote column names in the expression. $db yii\redis\Connection The database connection used to execute the query. If this parameter is not given, the db application component will be used. return integer The average of the specified column values.

redis\ActiveQuery all()

all() public method Executes the query and returns all results as an array. public array|yii\redis\ActiveRecord[] all ( $db = null )$db yii\redis\Connection The database connection used to execute the query. If this parameter is not given, the db application component will be used. return array|yii\redis\ActiveRecord[] The query results. If the query results in nothing, an empty array will be returned.

rbac\Rule execute()

execute() public abstract method Executes the rule. public abstract boolean execute ( $user, $item, $params )$user string|integer The user ID. This should be either an integer or a string representing the unique identifier of a user. See yii\web\User::$id. $item yii\rbac\Item The role or permission that this rule is associated with $params array Parameters passed to yii\rbac\CheckAccessInterface::checkAccess(). return boolean A value indicating whether the rule permits the auth i

rbac\Rule $updatedAt

$updatedAt public property UNIX timestamp representing the rule updating time public integer $updatedAt = null

rbac\Rule $name

$name public property Name of the rule public string $name = null

rbac\Rule $createdAt

$createdAt public property UNIX timestamp representing the rule creation time public integer $createdAt = null

rbac\Role $type

$type public property The type of the item. This should be either TYPE_ROLE or TYPE_PERMISSION. The type of the item. This should be either TYPE_ROLE or TYPE_PERMISSION. public integer $type = self::TYPE_ROLE

rbac\PhpManager updateRule()

updateRule() public method Updates a rule to the RBAC system. public boolean updateRule ( $name, $rule )$name string The name of the rule being updated $rule yii\rbac\Rule The updated rule return boolean Whether the rule is successfully updated throws Exception if data validation or saving fails (such as the name of the rule is not unique)