Свойство | Type | Description | |
---|---|---|---|
$authManager | The auth manager component ID that this migration should work with. |
Méthode | Description | |
---|---|---|
down ( ) : boolean | This method contains the logic to be executed when removing this migration. | |
init ( ) | Initializes the migration. | |
safeDown ( ) : boolean | This method contains the logic to be executed when removing this migration. | |
safeUp ( ) : boolean | This method contains the logic to be executed when applying this migration. | |
up ( ) : boolean | This method contains the logic to be executed when applying this migration. |
Méthode | Description | |
---|---|---|
addChild ( |
Adds child. | |
assign ( string | |
Assigns a role to a user. | |
createPermission ( string $name, string $description = '', string | null $ruleName = null, mixed | null $data = null ) : |
Creates new permission. | |
createRole ( string $name, string $description = '', string | null $ruleName = null, mixed | null $data = null ) : |
Creates new role. | |
createRule ( string $ruleName, string | array $definition ) : |
Creates new rule. | |
findItem ( string $name ) : |
Finds either role or permission or throws an exception if it is not found. | |
findPermission ( string $name ) : |
Finds the permission or throws an exception if it is not found. | |
findRole ( string $name ) : |
Finds the role or throws an exception if it is not found. | |
removeItem ( string | |
Removes auth item. | |
updatePermission ( string | |
Updates permission. | |
updateRole ( string | |
Updates role. | |
updateRule ( string $ruleName, string $className ) : |
Updates rule. |
protected createPermission ( string $name, string $description = '', string | null $ruleName = null, mixed | null $data = null ) : |
||
$name | string | The name of the permission |
$description | string | The description of the permission |
$ruleName | string | null | The rule associated with the permission |
$data | mixed | null | The additional data associated with the permission |
Résultat |
protected createRole ( string $name, string $description = '', string | null $ruleName = null, mixed | null $data = null ) : |
||
$name | string | The name of the role |
$description | string | The description of the role |
$ruleName | string | null | The rule associated with the role |
$data | mixed | null | The additional data associated with the role |
Résultat |
protected findPermission ( string $name ) : |
||
$name | string | |
Résultat |
public init ( ) |
protected removeItem ( string | |
||
$item | string | |
Either item name or item instance to be removed. |
protected updateRule ( string $ruleName, string $className ) : |
||
$ruleName | string | |
$className | string | |
Résultat |