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

Content

Complexity

Total Complexity 0

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 31
dl 0
loc 60
c 0
b 0
f 0
wmc 0
1
<?php
2
3
namespace Apps\Controller\Admin;
4
5
use Extend\Core\Arch\AdminController;
6
7
/**
8
 * Class Content. Admin controller to manage & control contents
9
 * @package Apps\Controller\Admin
10
 */
11
class Content extends AdminController
12
{
13
    const VERSION = '1.0.1';
14
    const ITEM_PER_PAGE = 10;
15
16
    public $type = 'app';
17
18
    use Content\Boot;
0 ignored issues
show
introduced by zenn
The trait Apps\Controller\Admin\Content\Boot requires some properties which are not provided by Apps\Controller\Admin\Content: $created_at, $relevance, $id
Loading history...
19
20
    // import heavy actions
21
    use Content\ActionIndex {
0 ignored issues
show
Bug introduced by zenn
The trait Apps\Controller\Admin\Content\ActionIndex requires the property $query which is not provided by Apps\Controller\Admin\Content.
Loading history...
22
        index as actionIndex;
23
    }
24
25
    use Content\ActionUpdate {
0 ignored issues
show
introduced by zenn
The trait Apps\Controller\Admin\Content\ActionUpdate requires some properties which are not provided by Apps\Controller\Admin\Content: $query, $id
Loading history...
26
        update as actionUpdate;
27
    }
28
29
    use Content\ActionDelete {
30
        delete as actionDelete;
31
    }
32
33
    use Content\ActionRestore {
34
        restore as actionRestore;
35
    }
36
37
    use Content\ActionClear {
38
        clear as actionClear;
39
    }
40
41
    use Content\ActionCategoryList {
42
        contentCategoryList as actionCategories;
43
    }
44
45
    use Content\ActionCategoryDelete {
46
        categoryDelete as actionCategorydelete;
47
    }
48
49
    use Content\ActionCategoryUpdate {
0 ignored issues
show
introduced by zenn
The trait Apps\Controller\Admin\Content\ActionCategoryUpdate requires some properties which are not provided by Apps\Controller\Admin\Content: $query, $id
Loading history...
50
        categoryUpdate as actionCategoryupdate;
51
    }
52
53
    use Content\ActionGlobDelete {
0 ignored issues
show
Bug introduced by zenn
The trait Apps\Controller\Admin\Content\ActionGlobDelete requires the property $query which is not provided by Apps\Controller\Admin\Content.
Loading history...
54
        globDelete as actionGlobdelete;
55
    }
56
57
    use Content\ActionPublish {
0 ignored issues
show
Bug introduced by zenn
The trait Apps\Controller\Admin\Content\ActionPublish requires the property $query which is not provided by Apps\Controller\Admin\Content.
Loading history...
58
        publish as actionPublish;
59
    }
60
61
    use Content\ActionDisplayChange {
0 ignored issues
show
Bug introduced by zenn
The trait Apps\Controller\Admin\Content\ActionDisplayChange requires the property $query which is not provided by Apps\Controller\Admin\Content.
Loading history...
62
        display as actionDisplay;
63
    }
64
65
    use Content\ActionImportantChange {
0 ignored issues
show
Bug introduced by zenn
The trait Apps\Controller\Admin\Co...t\ActionImportantChange requires the property $query which is not provided by Apps\Controller\Admin\Content.
Loading history...
66
        important as actionImportant;
67
    }
68
69
    use Content\ActionSettings {
70
        settings as actionSettings;
71
    }
72
}
73