Test Failed
Push — master ( e3c39f...fe570d )
by Mihail
07:20
created

Apps/Controller/Admin/Comments.php (5 issues)

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;
0 ignored issues
show
The trait Apps\Controller\Admin\Comments\Boot requires some properties which are not provided by Apps\Controller\Admin\Comments: $comment_id, $id, $relevance, $message, $created_at
Loading history...
23
24
    // heavy actions import
25
    use Comments\ActionIndex {
0 ignored issues
show
The trait Apps\Controller\Admin\Comments\ActionIndex requires the property $query which is not provided by Apps\Controller\Admin\Comments.
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
The trait Apps\Controller\Admin\Comments\ActionDelete requires the property $query which is not provided by Apps\Controller\Admin\Comments.
Loading history...
34
        delete as actionDelete;
35
    }
36
37
    use Comments\ActionPublish {
0 ignored issues
show
The trait Apps\Controller\Admin\Comments\ActionPublish requires the property $query which is not provided by Apps\Controller\Admin\Comments.
Loading history...
38
        publish as actionPublish;
39
    }
40
41
    use Comments\ActionAnswerList {
0 ignored issues
show
The trait Apps\Controller\Admin\Comments\ActionAnswerList requires the property $query which is not provided by Apps\Controller\Admin\Comments.
Loading history...
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