PHP Class dektrium\rbac\controllers\RuleController

Author: Dmitry Erofeev ([email protected])
Inheritance: extends yii\web\Controller
Datei anzeigen Open project: dektrium/yii2-rbac

Public Properties

Property Type Description
$authManager The auth manager component ID.

Public Methods

Method Description
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.

Private Methods

Method Description
findRule ( string $name ) : mixed | null | Rule
getModel ( string $scenario ) : dektrium\rbac\models\Rule
getSearchModel ( ) : RuleSearch

Method Details

actionCreate() public method

Shows page where new rule can be added.
public actionCreate ( ) : array | string
return array | string

actionDelete() public method

Removes rule.
public actionDelete ( string $name ) : string
$name string
return string

actionIndex() public method

Shows list of created rules.
public actionIndex ( ) : string
return string

actionSearch() public method

Searches for rules.
public actionSearch ( string | null $q = null ) : array
$q string | null
return array

actionUpdate() public method

Updates existing auth rule.
public actionUpdate ( string $name ) : array | string | Response
$name string
return array | string | yii\web\Response

behaviors() public method

public behaviors ( ) : array
return array

init() public method

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

Property Details

$authManager public_oe property

The auth manager component ID.
public $authManager