当前位置: 首页>>代码示例>>PHP>>正文


PHP def_module::__construct方法代码示例

本文整理汇总了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");
 }
开发者ID:tomoonshine,项目名称:postsms,代码行数:31,代码来源:class+из+content.php

示例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;
     }
 }
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:32,代码来源:class.php

示例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');
 }
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:25,代码来源:class.php

示例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");
		}
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:27,代码来源:class.php

示例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");
	}
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:30,代码来源:class.php

示例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");
		}
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:26,代码来源:class.php

示例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");
     }
 }
开发者ID:tomoonshine,项目名称:postsms,代码行数:15,代码来源:class.php

示例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");
     }
 }
开发者ID:tomoonshine,项目名称:postsms,代码行数:18,代码来源:class.php

示例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");
 }
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:21,代码来源:class.php


注:本文中的def_module::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。