当前位置: 首页>>代码示例>>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;未经允许,请勿转载。