Abstract Class dektrium\rbac\controllers\ItemControllerAbstract

Inheritancedektrium\rbac\controllers\ItemControllerAbstract » yii\web\Controller
Subclassesdektrium\rbac\controllers\PermissionController, dektrium\rbac\controllers\RoleController

Property Details

$modelClass protected property
protected string $modelClass null
$type protected property
protected int $type null

Method Details

actionCreate() public method

Shows create form.

public string|\yii\web\Response actionCreate ( )
throws \yii\base\InvalidConfigException
actionDelete() public method

Deletes item.

public \yii\web\Response actionDelete ( $name )
$name string
throws \yii\web\NotFoundHttpException
actionIndex() public method

Lists all created items.

public string actionIndex ( )
actionUpdate() public method

Shows update form.

public string|\yii\web\Response actionUpdate ( $name )
$name string
throws \yii\web\NotFoundHttpException
throws \yii\base\InvalidConfigException
getItem() protected abstract method

protected abstract dektrium\rbac\models\Role|dektrium\rbac\models\Permission getItem ( $name )
$name string
init() public method

public void init ( )
throws \yii\base\InvalidConfigException
performAjaxValidation() protected method

Performs ajax validation.

protected void performAjaxValidation ( \yii\base\Model $model )
$model \yii\base\Model
throws \yii\base\ExitException