예제 #1
0
파일: Vars2.php 프로젝트: techart/tao
 static function initialize($config = array())
 {
     foreach ($config as $key => $value) {
         self::${$key} = $value;
     }
     CMS::add_component('AdminVars', Core::make(self::$admin_mapper));
 }
예제 #2
0
파일: Factory.php 프로젝트: techart/tao
 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');
 }
예제 #3
0
파일: FSPages.php 프로젝트: techart/tao
 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());
 }
예제 #4
0
파일: Stockroom.php 프로젝트: techart/tao
 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');
 }
예제 #5
0
파일: AdminVars.php 프로젝트: techart/tao
 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');
 }