Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
200 / 200 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * Jingga |
4 | * |
5 | * PHP Version 8.1 |
6 | * |
7 | * @package Modules |
8 | * @copyright Dennis Eichhorn |
9 | * @license OMS License 2.0 |
10 | * @version 1.0.0 |
11 | * @link https://jingga.app |
12 | */ |
13 | declare(strict_types=1); |
14 | |
15 | use Modules\Accounting\Controller\BackendController; |
16 | use Modules\Accounting\Models\PermissionCategory; |
17 | use phpOMS\Account\PermissionType; |
18 | use phpOMS\Router\RouteVerb; |
19 | |
20 | return [ |
21 | '^.*/accounting/personal/entries.*$' => [ |
22 | [ |
23 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewPersonalEntries', |
24 | 'verb' => RouteVerb::GET, |
25 | 'permission' => [ |
26 | 'module' => BackendController::NAME, |
27 | 'type' => PermissionType::READ, |
28 | 'state' => PermissionCategory::PERSONAL, |
29 | ], |
30 | ], |
31 | ], |
32 | '^.*/accounting/impersonal/entries.*$' => [ |
33 | [ |
34 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewImpersonalEntries', |
35 | 'verb' => RouteVerb::GET, |
36 | 'permission' => [ |
37 | 'module' => BackendController::NAME, |
38 | 'type' => PermissionType::READ, |
39 | 'state' => PermissionCategory::IMPERSONAL, |
40 | ], |
41 | ], |
42 | ], |
43 | '^.*/accounting/entries.*$' => [ |
44 | [ |
45 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewEntries', |
46 | 'verb' => RouteVerb::GET, |
47 | 'permission' => [ |
48 | 'module' => BackendController::NAME, |
49 | 'type' => PermissionType::READ, |
50 | 'state' => PermissionCategory::ENTRY, |
51 | ], |
52 | ], |
53 | ], |
54 | '^.*/accounting/impersonal/journal/list.*$' => [ |
55 | [ |
56 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewJournalList', |
57 | 'verb' => RouteVerb::GET, |
58 | 'permission' => [ |
59 | 'module' => BackendController::NAME, |
60 | 'type' => PermissionType::READ, |
61 | 'state' => PermissionCategory::JOURNAL, |
62 | ], |
63 | ], |
64 | ], |
65 | '^.*/accounting/stack/list.*$' => [ |
66 | [ |
67 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackList', |
68 | 'verb' => RouteVerb::GET, |
69 | 'permission' => [ |
70 | 'module' => BackendController::NAME, |
71 | 'type' => PermissionType::READ, |
72 | 'state' => PermissionCategory::STACK, |
73 | ], |
74 | ], |
75 | ], |
76 | '^.*/accounting/stack/entries.*$' => [ |
77 | [ |
78 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackEntries', |
79 | 'verb' => RouteVerb::GET, |
80 | 'permission' => [ |
81 | 'module' => BackendController::NAME, |
82 | 'type' => PermissionType::READ, |
83 | 'state' => PermissionCategory::STACK, |
84 | ], |
85 | ], |
86 | ], |
87 | '^.*/accounting/stack/archive/list.*$' => [ |
88 | [ |
89 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackArchiveList', |
90 | 'verb' => RouteVerb::GET, |
91 | 'permission' => [ |
92 | 'module' => BackendController::NAME, |
93 | 'type' => PermissionType::READ, |
94 | 'state' => PermissionCategory::STACK, |
95 | ], |
96 | ], |
97 | ], |
98 | '^.*/accounting/stack/create.*$' => [ |
99 | [ |
100 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackCreate', |
101 | 'verb' => RouteVerb::GET, |
102 | 'permission' => [ |
103 | 'module' => BackendController::NAME, |
104 | 'type' => PermissionType::CREATE, |
105 | 'state' => PermissionCategory::STACK, |
106 | ], |
107 | ], |
108 | ], |
109 | '^.*/accounting/stack/predefined/list.*$' => [ |
110 | [ |
111 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackPredefinedList', |
112 | 'verb' => RouteVerb::GET, |
113 | 'permission' => [ |
114 | 'module' => BackendController::NAME, |
115 | 'type' => PermissionType::READ, |
116 | 'state' => PermissionCategory::STACK, |
117 | ], |
118 | ], |
119 | ], |
120 | '^.*/accounting/coa/list.*$' => [ |
121 | [ |
122 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewCOAList', |
123 | 'verb' => RouteVerb::GET, |
124 | 'permission' => [ |
125 | 'module' => BackendController::NAME, |
126 | 'type' => PermissionType::READ, |
127 | 'state' => PermissionCategory::GL, |
128 | ], |
129 | ], |
130 | ], |
131 | '^.*/accounting/coa/create.*$' => [ |
132 | [ |
133 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewCOACreate', |
134 | 'verb' => RouteVerb::GET, |
135 | 'permission' => [ |
136 | 'module' => BackendController::NAME, |
137 | 'type' => PermissionType::CREATE, |
138 | 'state' => PermissionCategory::GL, |
139 | ], |
140 | ], |
141 | ], |
142 | '^.*/accounting/gl/profile.*$' => [ |
143 | [ |
144 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewGLProfile', |
145 | 'verb' => RouteVerb::GET, |
146 | 'permission' => [ |
147 | 'module' => BackendController::NAME, |
148 | 'type' => PermissionType::READ, |
149 | 'state' => PermissionCategory::GL, |
150 | ], |
151 | ], |
152 | ], |
153 | '^.*/accounting/dun/print.*$' => [ |
154 | [ |
155 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', |
156 | 'verb' => RouteVerb::GET, |
157 | 'permission' => [ |
158 | 'module' => BackendController::NAME, |
159 | 'type' => PermissionType::READ, |
160 | 'state' => PermissionCategory::COST_CENTER, |
161 | ], |
162 | ], |
163 | ], |
164 | '^.*/accounting/statement/print.*$' => [ |
165 | [ |
166 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', |
167 | 'verb' => RouteVerb::GET, |
168 | 'permission' => [ |
169 | 'module' => BackendController::NAME, |
170 | 'type' => PermissionType::READ, |
171 | 'state' => PermissionCategory::ACCOUNT, |
172 | ], |
173 | ], |
174 | ], |
175 | '^.*/accounting/balances/print.*$' => [ |
176 | [ |
177 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', |
178 | 'verb' => RouteVerb::GET, |
179 | 'permission' => [ |
180 | 'module' => BackendController::NAME, |
181 | 'type' => PermissionType::READ, |
182 | 'state' => PermissionCategory::ACCOUNT, |
183 | ], |
184 | ], |
185 | ], |
186 | '^.*/accounting/accountform/print.*$' => [ |
187 | [ |
188 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', |
189 | 'verb' => RouteVerb::GET, |
190 | 'permission' => [ |
191 | 'module' => BackendController::NAME, |
192 | 'type' => PermissionType::READ, |
193 | 'state' => PermissionCategory::ACCOUNT, |
194 | ], |
195 | ], |
196 | ], |
197 | |
198 | '^.*/accounting/costcenter/list.*$' => [ |
199 | [ |
200 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterList', |
201 | 'verb' => RouteVerb::GET, |
202 | 'permission' => [ |
203 | 'module' => BackendController::NAME, |
204 | 'type' => PermissionType::READ, |
205 | 'state' => PermissionCategory::COST_CENTER, |
206 | ], |
207 | ], |
208 | ], |
209 | '^.*/accounting/costobject/list.*$' => [ |
210 | [ |
211 | 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostObjectList', |
212 | 'verb' => RouteVerb::GET, |
213 | 'permission' => [ |
214 | 'module' => BackendController::NAME, |
215 | 'type' => PermissionType::READ, |
216 | 'state' => PermissionCategory::COST_OBJECT, |
217 | ], |
218 | ], |
219 | ], |
220 | ]; |