示例#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');
 }