static function initialize($config = array()) { foreach ($config as $key => $value) { self::${$key} = $value; } CMS::add_component('AdminVars', Core::make(self::$admin_mapper)); }
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'); }
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()); }
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'); }
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'); }