function __construct($component = null)
 {
     parent::__construct($component);
     CModule::IncludeModule('iblock');
     CModule::IncludeModule('aqw.shop');
     CBitrixComponent::includeComponentClass('aqw:store.product');
 }
Example #2
0
 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();
 }
Example #3
0
 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;
 }
Example #4
0
 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");
     }
 }
Example #5
0
 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");
     }
 }
Example #6
0
 public function __construct($component = null)
 {
     parent::__construct($component);
     Localization\Loc::loadMessages(__FILE__);
 }
 function __construct($component = null)
 {
     parent::__construct($component);
     CModule::IncludeModule('iblock');
     CModule::IncludeModule('aqw.shop');
 }
Example #8
0
 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__);
 }
Example #9
0
 public function __construct($component = null)
 {
     parent::__construct($component);
     $this->selectorItems = array();
     $this->moduleIncluded = array();
 }
Example #10
0
 public function __construct($component = null)
 {
     parent::__construct($component);
     $this->componentId = $this->isAjaxRequest() ? randString(7) : $this->randString();
     $this->errorCollection = new ErrorCollection();
 }
Example #11
0
 public function __construct($component = null)
 {
     parent::__construct($component);
 }
Example #12
0
 /**
  * Инициализирует родной битриксовый класс и готовит полезные переменные
  * 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);
 }
Example #13
0
File: class.php Project: ASDAFF/mp
 public function __construct($component = null)
 {
     parent::__construct($component);
     $this->dateFormat = CSite::GetDateFormat("FULL", SITE_ID);
     Localization\Loc::loadMessages(__FILE__);
 }
Example #14
0
 /**
  * @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);
 }
Example #15
0
 public function __construct($component = null)
 {
     $this->bExcel = $_GET['excel'] == 'yes';
     parent::__construct($component);
 }