1 | <?php |
||
2 | |||
3 | namespace Apps\Controller\Front; |
||
4 | |||
5 | use Extend\Core\Arch\FrontAppController; |
||
6 | |||
7 | /** |
||
8 | * Class Content. Controller of content app - content and categories. |
||
9 | * @package Apps\Controller\Front |
||
10 | */ |
||
11 | class Content extends FrontAppController |
||
12 | { |
||
13 | const TAG_PER_PAGE = 50; |
||
14 | |||
15 | const EVENT_CONTENT_READ = 'content.read'; |
||
16 | const EVENT_RSS_READ = 'content.rss.read'; |
||
17 | const EVENT_CONTENT_LIST = 'content.list'; |
||
18 | const EVENT_TAG_LIST = 'content.tags'; |
||
19 | |||
20 | // implement boot load features |
||
21 | use Content\Boot; |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
22 | |||
23 | use Content\ActionList { |
||
24 | listing as actionList; |
||
25 | } |
||
26 | |||
27 | use Content\ActionRead { |
||
0 ignored issues
–
show
|
|||
28 | read as actionRead; |
||
29 | } |
||
30 | |||
31 | use Content\ActionUpdate { |
||
0 ignored issues
–
show
|
|||
32 | update as actionUpdate; |
||
33 | } |
||
34 | |||
35 | use Content\ActionTag { |
||
36 | tag as actionTag; |
||
37 | } |
||
38 | |||
39 | use Content\ActionRss { |
||
0 ignored issues
–
show
|
|||
40 | rss as actionRss; |
||
41 | } |
||
42 | |||
43 | use Content\ActionMy { |
||
44 | my as actionMy; |
||
45 | } |
||
46 | |||
47 | use Content\ActionComments { |
||
48 | comments as actionComments; |
||
49 | } |
||
50 | |||
51 | use Content\ScheduledActions { |
||
0 ignored issues
–
show
|
|||
52 | sitemap as buildSitemapSchedule; |
||
53 | } |
||
54 | } |
||
55 |