1: <?php defined('_JOOS_CORE') or exit();
2:
3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
16: class actionsAdminNews extends joosAdminController
17: {
18: protected static $submenu = array(
19: 'default' => array(
20: 'name' => 'Все новости',
21: 'model' => 'modelAdminNews',
22: 'fields' => array('id', 'title', 'created_at', 'state'),
23: 'active' => false
24: ),
25: 'news_types' => array(
26: 'name' => 'Типы новостей',
27: 'model' => 'modelAdminNewsTypes',
28: 'fields' => array('title'),
29: 'active' => false
30: ),
31: );
32:
33: public static function action_before()
34: {
35: parent::action_before();
36:
37: joosDocument::instance()
38: ->add_js_file( JPATH_SITE . '/app/components/news/media/js/admin.news.js' );
39:
40: }
41:
42: }
43: