本文整理汇总了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');
}