PHP Класс dektrium\rbac\controllers\RuleController

Автор: Dmitry Erofeev ([email protected])
Наследование: extends yii\web\Controller
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$authManager The auth manager component ID.

Открытые методы

Метод Описание
actionCreate ( ) : array | string Shows page where new rule can be added.
actionDelete ( string $name ) : string Removes rule.
actionIndex ( ) : string Shows list of created rules.
actionSearch ( string | null $q = null ) : array Searches for rules.
actionUpdate ( string $name ) : array | string | Response Updates existing auth rule.
behaviors ( ) : array
init ( ) This method will set [[authManager]] to be the 'authManager' application component, if it is null.

Приватные методы

Метод Описание
findRule ( string $name ) : mixed | null | Rule
getModel ( string $scenario ) : dektrium\rbac\models\Rule
getSearchModel ( ) : RuleSearch

Описание методов

actionCreate() публичный Метод

Shows page where new rule can be added.
public actionCreate ( ) : array | string
Результат array | string

actionDelete() публичный Метод

Removes rule.
public actionDelete ( string $name ) : string
$name string
Результат string

actionIndex() публичный Метод

Shows list of created rules.
public actionIndex ( ) : string
Результат string

actionSearch() публичный Метод

Searches for rules.
public actionSearch ( string | null $q = null ) : array
$q string | null
Результат array

actionUpdate() публичный Метод

Updates existing auth rule.
public actionUpdate ( string $name ) : array | string | Response
$name string
Результат array | string | yii\web\Response

behaviors() публичный Метод

public behaviors ( ) : array
Результат array

init() публичный Метод

This method will set [[authManager]] to be the 'authManager' application component, if it is null.
public init ( )

Описание свойств

$authManager публичное свойство

The auth manager component ID.
public $authManager