當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CBitrixComponent::__construct方法代碼示例

本文整理匯總了PHP中CBitrixComponent::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP CBitrixComponent::__construct方法的具體用法?PHP CBitrixComponent::__construct怎麽用?PHP CBitrixComponent::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CBitrixComponent的用法示例。


在下文中一共展示了CBitrixComponent::__construct方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 function __construct($component = null)
 {
     parent::__construct($component);
     CModule::IncludeModule('iblock');
     CModule::IncludeModule('aqw.shop');
     CBitrixComponent::includeComponentClass('aqw:store.product');
 }
開發者ID:ASDAFF,項目名稱:bitrix_marketplace_module,代碼行數:7,代碼來源:class.php

示例2: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     \Bitrix\Main\Loader::includeModule("forum");
     $this->componentId = $this->isAjaxRequest() ? randString(7) : $this->randString();
     $this->errorCollection = new ErrorCollection();
 }
開發者ID:rasuldev,項目名稱:torino,代碼行數:7,代碼來源:class.php

示例3: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     $this->helper = new CCrmProductSectionCrumbsHelper();
     $this->componentId = $this->randString();
     $this->errors = array();
     $this->catalogId = 0;
     $this->sectionId = 0;
 }
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:9,代碼來源:class.php

示例4: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     $this->scope = self::STATUS_SCOPE_WEB;
     if (is_callable(array('\\Bitrix\\MobileApp\\Mobile', 'getApiVersion')) && \Bitrix\MobileApp\Mobile::getApiVersion() >= 1 && defined("BX_MOBILE") && BX_MOBILE === true) {
         $this->scope = self::STATUS_SCOPE_MOBILE;
     }
     if ($this->isWeb()) {
         $this->setTemplateName(".default");
     } else {
         $this->setTemplateName("mobile_app");
     }
 }
開發者ID:webgksupport,項目名稱:alpina,代碼行數:13,代碼來源:class.php

示例5: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     \Bitrix\Main\Loader::includeModule("forum");
     $this->componentId = $this->isAjaxRequest() ? randString(7) : $this->randString();
     $this->errorCollection = new ErrorCollection();
     $this->prepareMobileData = IsModuleInstalled("mobile");
     $this->scope = self::STATUS_SCOPE_WEB;
     if (is_callable(array('\\Bitrix\\MobileApp\\Mobile', 'getApiVersion')) && \Bitrix\MobileApp\Mobile::getApiVersion() >= 1 && defined("BX_MOBILE") && BX_MOBILE === true) {
         $this->scope = self::STATUS_SCOPE_MOBILE;
     }
     self::$index++;
     if ($this->isWeb()) {
         $this->setTemplateName(".default");
     } else {
         $this->setTemplateName("mobile_app");
     }
 }
開發者ID:Satariall,項目名稱:izurit,代碼行數:18,代碼來源:class.php

示例6: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     Localization\Loc::loadMessages(__FILE__);
 }
開發者ID:akniyev,項目名稱:itprom_dobrohost,代碼行數:5,代碼來源:class.php

示例7: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     CPageOption::SetOptionString("main", "nav_page_in_session", "N");
     $this->dateFormat = CSite::GetDateFormat("FULL", SITE_ID);
     Localization\Loc::loadMessages(__FILE__);
 }
開發者ID:ASDAFF,項目名稱:entask.ru,代碼行數:7,代碼來源:class.php

示例8: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     $this->selectorItems = array();
     $this->moduleIncluded = array();
 }
開發者ID:Satariall,項目名稱:izurit,代碼行數:6,代碼來源:class.php

示例9: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     $this->componentId = $this->isAjaxRequest() ? randString(7) : $this->randString();
     $this->errorCollection = new ErrorCollection();
 }
開發者ID:DarneoStudio,項目名稱:bitrix,代碼行數:6,代碼來源:basecomponent.php

示例10: __construct

 /**
  * Инициализирует родной битриксовый класс и готовит полезные переменные
  * BaseComponent constructor.
  * @param \CBitrixComponent|null $component
  */
 public function __construct($component = null)
 {
     parent::__construct($component);
     /** @var \CMain $APPLICATION */
     global $APPLICATION;
     $this->app = $APPLICATION;
     $this->reflection = new \ReflectionClass($this);
 }
開發者ID:digitalwand,項目名稱:mvc.base,代碼行數:13,代碼來源:class.php

示例11: __construct

 public function __construct($component = null)
 {
     parent::__construct($component);
     $this->dateFormat = CSite::GetDateFormat("FULL", SITE_ID);
     Localization\Loc::loadMessages(__FILE__);
 }
開發者ID:ASDAFF,項目名稱:mp,代碼行數:6,代碼來源:class.php

示例12: __construct

 /**
  * @param null $component
  */
 public function __construct($component = null)
 {
     parent::__construct($component);
     /** @var $security get the class object */
     $security = new Bitrix\Security\Filter\Request();
     /** @var $security Set the audit SQL ejection and XSS attack */
     $security->setAuditors(array('SQL' => new Bitrix\Security\Filter\Auditor\Sql(), 'XSS' => new Bitrix\Security\Filter\Auditor\Xss()));
     /** @var $arURI filtering incoming parameters. */
     $this->uri = $security->filter(array('get' => $_GET, 'request' => $_REQUEST, 'post' => $_POST), false);
 }
開發者ID:cjp2600,項目名稱:composite.shape,代碼行數:13,代碼來源:class.php

示例13: __construct

 public function __construct($component = null)
 {
     $this->bExcel = $_GET['excel'] == 'yes';
     parent::__construct($component);
 }
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:5,代碼來源:class.php


注:本文中的CBitrixComponent::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。