當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。