1 | <?php |
||
2 | |||
3 | namespace Apps\Controller\Admin; |
||
4 | |||
5 | use Extend\Core\Arch\AdminController; |
||
6 | |||
7 | /** |
||
8 | * Class Comments. Admin controller for management user comments. |
||
9 | * This class provide general admin implementation of control for user comments and its settings. |
||
10 | * @package Apps\Controller\Admin |
||
11 | */ |
||
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 { |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
26 | index as actionIndex; |
||
27 | } |
||
28 | |||
29 | use Comments\ActionEdit { |
||
30 | edit as actionEdit; |
||
31 | } |
||
32 | |||
33 | use Comments\ActionDelete { |
||
0 ignored issues
–
show
|
|||
34 | delete as actionDelete; |
||
35 | } |
||
36 | |||
37 | use Comments\ActionPublish { |
||
0 ignored issues
–
show
|
|||
38 | publish as actionPublish; |
||
39 | } |
||
40 | |||
41 | use Comments\ActionAnswerList { |
||
0 ignored issues
–
show
|
|||
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 | } |
||
56 | } |
||
57 |