1 | <?php |
||
2 | |||
3 | namespace Apps\Controller\Admin; |
||
4 | |||
5 | use Apps\ActiveRecord\CommentPost; |
||
6 | use Apps\Model\Admin\Comments\FormSettings; |
||
7 | use Extend\Core\Arch\AdminController; |
||
8 | use Ffcms\Core\App; |
||
9 | use Ffcms\Core\Exception\NotFoundException; |
||
10 | |||
11 | /** |
||
12 | * Class Comments. Admin controller for management user comments. |
||
13 | * This class provide general admin implementation of control for user comments and its settings. |
||
14 | * @package Apps\Controller\Admin |
||
15 | */ |
||
16 | class Comments extends AdminController |
||
17 | { |
||
18 | const VERSION = '1.0.1'; |
||
19 | const ITEM_PER_PAGE = 10; |
||
20 | |||
21 | const TYPE_COMMENT = 'comment'; |
||
22 | const TYPE_ANSWER = 'answer'; |
||
23 | |||
24 | public $type = 'widget'; |
||
25 | |||
26 | // heavy actions import |
||
27 | use Comments\ActionIndex { |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
28 | index as actionIndex; |
||
29 | } |
||
30 | |||
31 | use Comments\ActionEdit { |
||
32 | edit as actionEdit; |
||
33 | } |
||
34 | |||
35 | use Comments\ActionDelete { |
||
0 ignored issues
–
show
|
|||
36 | delete as actionDelete; |
||
37 | } |
||
38 | |||
39 | use Comments\ActionPublish { |
||
0 ignored issues
–
show
|
|||
40 | publish as actionPublish; |
||
41 | } |
||
42 | |||
43 | use Comments\ActionAnswerList { |
||
0 ignored issues
–
show
|
|||
44 | answerList as actionAnswerlist; |
||
45 | } |
||
46 | |||
47 | use Comments\ActionRead { |
||
48 | read as actionRead; |
||
49 | } |
||
50 | |||
51 | use Comments\ActionDisplay { |
||
52 | display as actionDisplay; |
||
53 | } |
||
54 | |||
55 | use Comments\ActionSettings { |
||
56 | settings as actionSettings; |
||
57 | } |
||
58 | } |
||
59 |