Код: Выделить всё
<?php
return array (
'post_create' =>
array (
'type' => 0,
'description' => 'создание записи',
'bizRule' => NULL,
'data' => NULL,
),
'post_read' =>
array (
'type' => 0,
'description' => 'просмотр записи',
'bizRule' => NULL,
'data' => NULL,
),
'post_update' =>
array (
'type' => 0,
'description' => 'редактирование записи',
'bizRule' => NULL,
'data' => NULL,
),
'post_delete' =>
array (
'type' => 0,
'description' => 'удаление записи',
'bizRule' => NULL,
'data' => NULL,
),
'comment_create' =>
array (
'type' => 0,
'description' => 'создание комментария',
'bizRule' => NULL,
'data' => NULL,
),
'comment_read' =>
array (
'type' => 0,
'description' => 'просмотр комментария',
'bizRule' => NULL,
'data' => NULL,
),
'comment_update' =>
array (
'type' => 0,
'description' => 'редактирование запикомментарияси',
'bizRule' => NULL,
'data' => NULL,
),
'comment_delete' =>
array (
'type' => 0,
'description' => 'удаление комментария',
'bizRule' => NULL,
'data' => NULL,
),
'user_create' =>
array (
'type' => 0,
'description' => 'создание пользователя',
'bizRule' => NULL,
'data' => NULL,
),
'user_read' =>
array (
'type' => 0,
'description' => 'просмотр пользователя',
'bizRule' => NULL,
'data' => NULL,
),
'user_update' =>
array (
'type' => 0,
'description' => 'редактирование пользователя',
'bizRule' => NULL,
'data' => NULL,
),
'user_delete' =>
array (
'type' => 0,
'description' => 'удаление пользователя',
'bizRule' => NULL,
'data' => NULL,
),
'category_create' =>
array (
'type' => 0,
'description' => 'создание категории',
'bizRule' => NULL,
'data' => NULL,
),
'category_read' =>
array (
'type' => 0,
'description' => 'просмотр категории',
'bizRule' => NULL,
'data' => NULL,
),
'category_update' =>
array (
'type' => 0,
'description' => 'редактирование категории',
'bizRule' => NULL,
'data' => NULL,
),
'category_delete' =>
array (
'type' => 0,
'description' => 'удаление категории',
'bizRule' => NULL,
'data' => NULL,
),
'reader' =>
array (
'type' => 2,
'description' => '',
'bizRule' => NULL,
'data' => NULL,
'children' =>
array (
0 => 'post_read',
1 => 'comment_create',
2 => 'comment_read',
),
),
'moderator' =>
array (
'type' => 2,
'description' => '',
'bizRule' => NULL,
'data' => NULL,
'children' =>
array (
0 => 'reader',
1 => 'post_create',
2 => 'post_update',
3 => 'comment_update',
),
),
'administrator' =>
array (
'type' => 2,
'description' => '',
'bizRule' => NULL,
'data' => NULL,
'children' =>
array (
0 => 'moderator',
1 => 'post_delete',
2 => 'comment_delete',
3 => 'user_create',
4 => 'user_read',
5 => 'user_update',
6 => 'user_delete',
7 => 'category_create',
8 => 'category_read',
9 => 'category_update',
10 => 'category_delete',
),
),
);