Abstract Class dektrium\rbac\controllers\ItemControllerAbstract
Inheritance | dektrium\rbac\controllers\ItemControllerAbstract » yii\web\Controller |
---|---|
Subclasses | dektrium\rbac\controllers\PermissionController, dektrium\rbac\controllers\RoleController |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$modelClass | string | dektrium\rbac\controllers\ItemControllerAbstract | |
$type | int | dektrium\rbac\controllers\ItemControllerAbstract |
Public Methods
Method | Description | Defined By |
---|---|---|
actionCreate() | Shows create form. | dektrium\rbac\controllers\ItemControllerAbstract |
actionDelete() | Deletes item. | dektrium\rbac\controllers\ItemControllerAbstract |
actionIndex() | Lists all created items. | dektrium\rbac\controllers\ItemControllerAbstract |
actionUpdate() | Shows update form. | dektrium\rbac\controllers\ItemControllerAbstract |
init() | dektrium\rbac\controllers\ItemControllerAbstract |
Protected Methods
Method | Description | Defined By |
---|---|---|
getItem() | dektrium\rbac\controllers\ItemControllerAbstract | |
performAjaxValidation() | Performs ajax validation. | dektrium\rbac\controllers\ItemControllerAbstract |
Property Details
Method Details
Shows create form.
public string|\yii\web\Response actionCreate ( ) | ||
throws | \yii\base\InvalidConfigException |
---|
Deletes item.
public \yii\web\Response actionDelete ( $name ) | ||
$name | string | |
throws | \yii\web\NotFoundHttpException |
---|
Lists all created items.
public string actionIndex ( ) |
Shows update form.
public string|\yii\web\Response actionUpdate ( $name ) | ||
$name | string | |
throws | \yii\web\NotFoundHttpException | |
---|---|---|
throws | \yii\base\InvalidConfigException |
protected abstract dektrium\rbac\models\Role|dektrium\rbac\models\Permission getItem ( $name ) | ||
$name | string |
public void init ( ) | ||
throws | \yii\base\InvalidConfigException |
---|
Performs ajax validation.
protected void performAjaxValidation ( \yii\base\Model $model ) | ||
$model | \yii\base\Model | |
throws | \yii\base\ExitException |
---|