Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class PostingController extends AbstractController |
||
9 | { |
||
10 | public static function __setupNavigation() |
||
11 | { |
||
12 | return [ |
||
13 | [ |
||
14 | 'type' => 'group', |
||
15 | 'parent' => 'root', |
||
16 | 'id' => 'posting', |
||
17 | 'title' => 'Posting', |
||
18 | 'icon' => 'hs-admin-comment', |
||
19 | ], |
||
20 | [ |
||
21 | 'type' => 'link', |
||
22 | 'parent' => 'posting', |
||
23 | 'id' => 'bbcode', |
||
24 | 'title' => 'BBCode', |
||
25 | 'href' => 'posting-bbcode', |
||
26 | 'view' => 'PostingController::bbCode', |
||
27 | ], |
||
28 | ]; |
||
29 | } |
||
30 | |||
31 | public static function __callNumber() |
||
32 | { |
||
33 | return 20; |
||
34 | } |
||
35 | |||
36 | public function bbCode($navigation, Forum $forum) |
||
43 | ] |
||
44 | ); |
||
45 | } |
||
47 |