本文整理匯總了PHP中CMS::add_component方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMS::add_component方法的具體用法?PHP CMS::add_component怎麽用?PHP CMS::add_component使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CMS
的用法示例。
在下文中一共展示了CMS::add_component方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initialize
static function initialize($config = array())
{
foreach ($config as $key => $value) {
self::${$key} = $value;
}
CMS::add_component('AdminVars', Core::make(self::$admin_mapper));
}
示例2: initialize
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: initialize
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: initialize
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: initialize
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');
}