Esempio n. 1
0
 static function initialize($config = array())
 {
     foreach ($config as $key => $value) {
         self::${$key} = $value;
     }
     CMS::add_component('AdminVars', Core::make(self::$admin_mapper));
 }
Esempio n. 2
0
 static function initialize($config = array())
 {
     foreach ($config as $key => $value) {
         self::${$key} = $value;
     }
     CMS::add_component(self::$name, new CMS_Factory_Mapper());
     CMS_Admin::menu(self::$admin_menu_title, CMS::admin_path('factory'), 'puzzle.png');
 }
Esempio n. 3
0
 static function initialize($config = array())
 {
     if (self::$disabled) {
         return;
     }
     foreach ($config as $key => $value) {
         self::${$key} = $value;
     }
     CMS::add_component('CMSFSPages', new CMS_FSPages_Router());
 }
Esempio n. 4
0
 static function initialize($config = array())
 {
     foreach ($config as $key => $value) {
         self::${$key} = $value;
     }
     if (self::$disabled) {
         return;
     }
     CMS::add_component(self::$name, new CMS_Stockroom_Router());
     CMS_Admin::menu(self::$admin_menu_title, CMS::admin_path('stockroom'), 'bookshelf.png');
 }
Esempio n. 5
0
 static function initialize($config = array())
 {
     self::options($config);
     CMS::add_component(self::$options['component']['name'], Core::make(self::$options['component']['mapper']));
     CMS_Admin::menu('lang:_vars:title', CMS::admin_path('vars'), 'hammer-screwdriver.png');
 }