| Total Complexity | 0 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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; |
||
|
|
|||
| 22 | |||
| 23 | use Content\ActionList { |
||
| 24 | listing as actionList; |
||
| 25 | } |
||
| 26 | |||
| 27 | use Content\ActionRead { |
||
| 28 | read as actionRead; |
||
| 29 | } |
||
| 30 | |||
| 31 | use Content\ActionUpdate { |
||
| 32 | update as actionUpdate; |
||
| 33 | } |
||
| 34 | |||
| 35 | use Content\ActionTag { |
||
| 36 | tag as actionTag; |
||
| 37 | } |
||
| 38 | |||
| 39 | use Content\ActionRss { |
||
| 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 { |
||
| 52 | sitemap as buildSitemapSchedule; |
||
| 53 | } |
||
| 55 |