redis\ActiveQuery executeScript()

executeScript() protected method Executes a script created by yii\redis\LuaScriptBuilder protected array|boolean|null|string executeScript ( $db, $type, $columnName = null )$db yii\redis\Connection|null The database connection used to execute the query. If this parameter is not given, the db application component will be used. $type string The type of the script to generate $columnName string throws yii\base\NotSupportedException

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.

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.

rbac\Rule $updatedAt

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

rbac\Rule $createdAt

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

rbac\Rule $name

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

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\PhpManager updateItem()

updateItem() protected method Updates an auth item in the RBAC system. protected boolean updateItem ( $name, $item )$name string The name of the item being updated $item yii\rbac\Item The updated item return boolean Whether the auth item is successfully updated throws Exception if data validation or saving fails (such as the name of the role or permission is not unique)

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)