本文整理汇总了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');
}
示例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();
}
示例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;
}
示例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");
}
}
示例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");
}
}
示例6: __construct
public function __construct($component = null)
{
parent::__construct($component);
Localization\Loc::loadMessages(__FILE__);
}
示例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__);
}
示例8: __construct
public function __construct($component = null)
{
parent::__construct($component);
$this->selectorItems = array();
$this->moduleIncluded = array();
}
示例9: __construct
public function __construct($component = null)
{
parent::__construct($component);
$this->componentId = $this->isAjaxRequest() ? randString(7) : $this->randString();
$this->errorCollection = new ErrorCollection();
}
示例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);
}
示例11: __construct
public function __construct($component = null)
{
parent::__construct($component);
$this->dateFormat = CSite::GetDateFormat("FULL", SITE_ID);
Localization\Loc::loadMessages(__FILE__);
}
示例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);
}
示例13: __construct
public function __construct($component = null)
{
$this->bExcel = $_GET['excel'] == 'yes';
parent::__construct($component);
}