本文整理汇总了PHP中def_module::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP def_module::__construct方法的具体用法?PHP def_module::__construct怎么用?PHP def_module::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类def_module
的用法示例。
在下文中一共展示了def_module::__construct方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
if (cmsController::getInstance()->getCurrentMode() == "admin") {
cmsController::getInstance()->getModule('users');
$configTabs = $this->getConfigTabs();
if ($configTabs) {
$configTabs->add("config");
$configTabs->add("content_control");
$configTabs->add("tickets");
}
$this->__loadLib("__admin.php");
$this->__implement("__content");
// custom admin methods
$this->__loadLib("__custom_adm.php");
$this->__implement("__content_custom_admin");
} else {
$this->__loadLib("__tickets.php");
$this->__implement("__tickets_content");
}
$this->__loadLib("__json.php");
$this->__implement("__json_content");
$this->__loadLib("__lib.php");
$this->__implement("__lib_content");
$this->__loadLib("__events.php");
$this->__implement("__content_events");
$this->__loadLib("__editor.php");
$this->__implement("__editor_content");
$this->__loadLib("__custom.php");
$this->__implement("__custom_content");
}
示例2: __construct
public function __construct()
{
parent::__construct();
if (cmsController::getInstance()->getCurrentMode() == "admin") {
cmsController::getInstance()->getModule('users');
$this->__loadLib("__admin.php");
$this->__implement("__dispatches");
$this->__loadLib("__messages.php");
$this->__implement("__messages_messages");
$this->__loadLib("__subscribers.php");
$this->__implement("__subscribers_subscribers");
$commonTabs = $this->getCommonTabs();
if ($commonTabs) {
$commonTabs->add('lists');
$commonTabs->add('subscribers');
$commonTabs->add('messages', array('releases'));
}
} else {
// кастомы
$this->__loadLib("__custom.php");
$this->__implement("__custom_dispatches");
}
$this->__loadLib("__releasees.php");
$this->__implement("__releasees_releasees");
$this->__loadLib("__subscribers_import.php");
$this->__implement("__subscribers_import_dispatches");
$regedit = regedit::getInstance();
$this->per_page = (int) $regedit->getVal("//modules/dispatches/per_page");
if (!$this->per_page) {
$this->per_page = 15;
}
}
示例3: __construct
public function __construct()
{
parent::__construct();
$cmsController = cmsController::getInstance();
if ($cmsController->getCurrentMode() == "admin") {
$commonTabs = $this->getCommonTabs();
if ($commonTabs) {
$commonTabs->add('lists');
$commonTabs->add('places');
}
$this->__loadLib("__banners.php");
$this->__implement("__banners_banners");
$this->__loadLib("__admin.php");
$this->__implement("__banners_admin");
$this->__loadLib("__places.php");
$this->__implement("__places_banners");
} else {
$this->__loadLib("__custom.php");
$this->__implement("__custom_banners");
}
$this->isStaticCache = file_exists("./cache.config") || file_exists("banners.config") ? true : false;
$this->per_page = 20;
$config = mainConfiguration::getInstance();
$this->disableUpdateOpt = (int) $config->get('modules', 'banners.disable-update-optimization');
}
示例4: __construct
public function __construct () {
parent::__construct ();
$commonTabs = $this->getCommonTabs();
if($commonTabs) {
$commonTabs->add('import');
$commonTabs->add('export');
}
if(cmsController::getInstance()->getCurrentMode() == "admin") {
$this->__loadLib("__admin.php");
$this->__implement("__exchange");
$this->__loadLib("__import.php");
$this->__implement("__exchange_import");
}
$this->__loadLib("__custom.php");
$this->__implement("__custom_exchange");
$this->__loadLib("__export.php");
$this->__implement("__exchange_export");
// 1C Auto integration
$this->__loadLib("__auto.php");
$this->__implement("__exchange_auto");
}
示例5: __construct
public function __construct() {
parent::__construct();
if(cmsController::getInstance()->getCurrentMode() == "admin") {
$configTabs = $this->getConfigTabs();
if ($configTabs) {
$configTabs->add("config");
$configTabs->add("rss_list");
$configTabs->add("subjects");
}
$this->__loadLib("__admin.php");
$this->__implement("__news");
$this->__loadLib("__subjects.php");
$this->__implement("__subjects_news");
$this->__loadLib("__custom_adm.php");
$this->__implement("__custom_adm_news");
} else {
$this->__loadLib("__custom.php");
$this->__implement("__custom_news");
$this->per_page = regedit::getInstance()->getVal("//modules/news/per_page");
}
$this->__loadLib("__rss_import.php");
$this->__implement("__rss_import_news");
}
示例6: __construct
public function __construct() {
parent::__construct();
if(cmsController::getInstance()->getCurrentMode() == "admin") {
$this->__loadLib("__admin.php");
$this->__implement("__events");
$configTabs = $this->getConfigTabs();
if ($configTabs) {
$configTabs->add("config");
}
$commonTabs = $this->getCommonTabs();
if($commonTabs) {
$commonTabs->add('last');
$commonTabs->add('feed');
}
}
$this->__loadLib("__custom.php");
$this->__implement("__custom_events");
$this->__loadLib("__events_handlers.php");
$this->__implement("__eventsHandlersEvents");
}
示例7: __construct
public function __construct()
{
parent::__construct();
// Если режим работы admin
if (cmsController::getInstance()->getCurrentMode() == "admin") {
// Добавление вкладок (config стандартная вкладка)
$configTabs = $this->getConfigTabs();
if ($configTabs) {
$configTabs->add("config");
}
// Подгрузить библиотеку __admin.php и класс
$this->__loadLib("__admin.php");
$this->__implement("__postsms");
}
}
示例8: __construct
public function __construct()
{
parent::__construct();
// Если режим работы admin
if (cmsController::getInstance()->getCurrentMode() == "admin") {
// Добавление вкладок (config стандартная вкладка)
$configTabs = $this->getConfigTabs();
if ($configTabs) {
$configTabs->add("config");
}
// Подгрузить библиотеку __admin.php и класс __modulelements
$this->__loadLib("__admin.php");
$this->__implement("__modulelements");
} else {
// Получить из реестра значение per_page
$this->per_page = regedit::getInstance()->getVal("//modules/modulelements/per_page");
}
}
示例9: __construct
public function __construct()
{
parent::__construct();
if (cmsController::getInstance()->getCurrentMode() == "admin") {
$this->__loadLib("__admin.php");
$this->__implement("__events");
$v7513817107edd8b1833da90a2411cb3e = $this->getConfigTabs();
if ($v7513817107edd8b1833da90a2411cb3e) {
$v7513817107edd8b1833da90a2411cb3e->add("config");
}
$v38d1e18b54816e157dda5426c36970e3 = $this->getCommonTabs();
if ($v38d1e18b54816e157dda5426c36970e3) {
$v38d1e18b54816e157dda5426c36970e3->add('last');
$v38d1e18b54816e157dda5426c36970e3->add('feed');
}
}
$this->__loadLib("__custom.php");
$this->__implement("__custom_events");
$this->__loadLib("__events_handlers.php");
$this->__implement("__eventsHandlersEvents");
}