36 lines
602 B
PHP
Executable File
36 lines
602 B
PHP
Executable File
<?php
|
|
|
|
namespace mdm\admin\controllers;
|
|
|
|
use mdm\admin\components\ItemController;
|
|
use yii\rbac\Item;
|
|
|
|
/**
|
|
* PermissionController implements the CRUD actions for AuthItem model.
|
|
*
|
|
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
|
|
* @since 1.0
|
|
*/
|
|
class PermissionController extends ItemController
|
|
{
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function labels()
|
|
{
|
|
return[
|
|
'Item' => 'Permission',
|
|
'Items' => 'Permissions',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function getType()
|
|
{
|
|
return Item::TYPE_PERMISSION;
|
|
}
|
|
}
|