CategoryModule::getAuthItems PHP 메소드

getAuthItems() 공개 메소드

public getAuthItems ( ) : array
리턴 array
    public function getAuthItems()
    {
        return [['name' => 'Category.CategoryManager', 'description' => Yii::t('CategoryModule.category', 'Manage categories'), 'type' => AuthItem::TYPE_TASK, 'items' => [['type' => AuthItem::TYPE_OPERATION, 'name' => 'Category.CategoryBackend.Create', 'description' => Yii::t('CategoryModule.category', 'Creating category')], ['type' => AuthItem::TYPE_OPERATION, 'name' => 'Category.CategoryBackend.Delete', 'description' => Yii::t('CategoryModule.category', 'Removing category')], ['type' => AuthItem::TYPE_OPERATION, 'name' => 'Category.CategoryBackend.Index', 'description' => Yii::t('CategoryModule.category', 'List of categories')], ['type' => AuthItem::TYPE_OPERATION, 'name' => 'Category.CategoryBackend.Update', 'description' => Yii::t('CategoryModule.category', 'Editing categories')], ['type' => AuthItem::TYPE_OPERATION, 'name' => 'Category.CategoryBackend.View', 'description' => Yii::t('CategoryModule.category', 'Viewing categories')]]]];
    }