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')]]]];
    }