1: <?php
2:
3: 4: 5: 6: 7: 8: 9: 10:
11:
12: namespace App\Lib\Statics;
13:
14: 15: 16:
17: class Cons {
18:
19: 20: 21:
22: const TABLE_MENU = 'base_menu',
23: TABLE_MODULE = 'base_module',
24: TABLE_PRESENTER = 'base_presenter',
25: TABLE_SOURCE = 'base',
26: TABLE_TABLE = 'table',
27: TABLE_FIELDS = 'fields',
28: TABLE_USERS = 'users',
29: TABLE_GROUPS = 'groups',
30: TABLE_ROLES = 'roles',
31: TABLE_PREFERENCES = 'preferences',
32: TABLE_INFO = 'tables',
33: TABLE_ACL = 'acl',
34: TABLE_PRIVILEGES = 'privileges',
35: TABLE_RESOURCES = 'resources',
36: TABLE_CONFIG = 'configuration',
37: TABLE_ELEMENTS = 'elements'
38: ;
39:
40: 41: 42:
43: const COLUMN_ID = 'id',
44: COLUMN_NAME = 'name',
45: COLUMN_PARENT = 'parent_id',
46: COLUMN_LINK = 'link',
47: COLUMN_STATE = 'state',
48: COLUMN_VISIBLE = 'visible',
49: COLUMN_LEFT = 'lft',
50: COLUMN_RIGHT = 'rgt',
51: COLUMN_DEPTH = 'depth',
52: COLUMN_PATH = 'path',
53: COLUMN_ACTION = 'action',
54: COLUMN_DIR = 'dir',
55: COLUMN_TARGET = 'target',
56: COLUMN_OBJECT = 'object',
57: COLUMN_TYPE = 'type',
58: COLUMN_KEY = 'key',
59: COLUMN_VALUE = 'value',
60: COLUMN_PASSWORD = 'password',
61: COLUMN_USERNAME = 'username',
62: COLUMN_FULLNAME = 'fullname',
63: COLUMN_EMAIL = 'email',
64: COLUMN_MENU = 'menu',
65: COLUMN_DESC = 'desc',
66: COLUMN_SOURCE = 'source',
67: COLUMN_SEQ = 'sequence',
68: COLUMN_FIELD = 'field',
69: COLUMN_FOOTER = 'footer',
70: COLUMN_FILTER = 'filter',
71: COLUMN_ROW = 'row',
72: COLUMN_TABLE = 'table',
73: COLUMN_LENGHT = 'lenght',
74: COLUMN_RELATION = 'relation',
75: COLUMN_REQUIRED = 'required',
76: COLUMN_READONLY = 'readonly',
77: COLUMN_DEFAULT = 'default',
78: COLUMN_CLASS = 'class',
79:
80: COLUMN_C_ID = 'create_uid',
81: COLUMN_W_ID = 'write_uid',
82: COLUMN_C_DATE = 'create_date',
83: COLUMN_W_DATE = 'write_date'
84: ;
85:
86: 87: 88:
89: const USER_LOGIN = 'login',
90: USER_NAME = 'fullname',
91: USER_EMAIL = 'email',
92: USER_HOME = 'homepage',
93: USER_SOURCE = 'source',
94: USER_DESC = 'desc',
95: USER_MENU = 'menu',
96: USER_DEFAULT = 'default',
97:
98: ROLE_ADMIN = 'Admin',
99: ROLE_USER = 'User'
100: ;
101:
102: 103: 104:
105: const READ = 'r',
106: CREATE = 'c',
107: WRITE = 'w',
108: DELETE = 'd';
109:
110: 111: 112:
113: const RES_TABLES = 'tables',
114: RES_FILES = 'files',
115: RES_MENU = 'menu'
116: ;
117: 118: 119:
120: const UNKNOWN = 'Neznámý',
121: VERIFY = 'verify',
122: MENU = 'menu',
123: TABLE_SEP = '_',
124: ROOT = 'root'
125:
126: ;
127:
128: }
129: