本文整理匯總了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);
}