Total Complexity | 0 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class Comments extends AdminController |
||
13 | { |
||
14 | const VERSION = '1.0.1'; |
||
15 | const ITEM_PER_PAGE = 10; |
||
16 | |||
17 | const TYPE_COMMENT = 'comment'; |
||
18 | const TYPE_ANSWER = 'answer'; |
||
19 | |||
20 | public $type = 'widget'; |
||
21 | |||
22 | use Comments\Boot; |
||
|
|||
23 | |||
24 | // heavy actions import |
||
25 | use Comments\ActionIndex { |
||
26 | index as actionIndex; |
||
27 | } |
||
28 | |||
29 | use Comments\ActionEdit { |
||
30 | edit as actionEdit; |
||
31 | } |
||
32 | |||
33 | use Comments\ActionDelete { |
||
34 | delete as actionDelete; |
||
35 | } |
||
36 | |||
37 | use Comments\ActionPublish { |
||
38 | publish as actionPublish; |
||
39 | } |
||
40 | |||
41 | use Comments\ActionAnswerList { |
||
42 | answerList as actionAnswerlist; |
||
43 | } |
||
44 | |||
45 | use Comments\ActionRead { |
||
46 | read as actionRead; |
||
47 | } |
||
48 | |||
49 | use Comments\ActionDisplay { |
||
50 | display as actionDisplay; |
||
51 | } |
||
52 | |||
53 | use Comments\ActionSettings { |
||
54 | settings as actionSettings; |
||
55 | } |
||
57 |