本文整理匯總了PHP中CBitrixComponent::executeComponent方法的典型用法代碼示例。如果您正苦於以下問題:PHP CBitrixComponent::executeComponent方法的具體用法?PHP CBitrixComponent::executeComponent怎麽用?PHP CBitrixComponent::executeComponent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CBitrixComponent
的用法示例。
在下文中一共展示了CBitrixComponent::executeComponent方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: executeComponent
public function executeComponent()
{
$this->IBLOCK_ID = $this->arParams["IBLOCK_ID"];
$this->SECTION_ID = $this->arParams["SECTION_ID"];
$this->FILTER_NAME = $this->arParams["FILTER_NAME"];
$this->SAFE_FILTER_NAME = htmlspecialcharsbx($this->FILTER_NAME);
if (self::$catalogIncluded === null)
self::$catalogIncluded = Loader::includeModule('catalog');
if (self::$catalogIncluded)
{
$arCatalog = CCatalogSKU::GetInfoByProductIBlock($this->IBLOCK_ID);
if (!empty($arCatalog))
{
$this->SKU_IBLOCK_ID = $arCatalog["IBLOCK_ID"];
$this->SKU_PROPERTY_ID = $arCatalog["SKU_PROPERTY_ID"];
}
}
/*DEMO CODE for "pure" class.php component
$this->arResult["FFF"] = "ggg";
$this->includeComponentTemplate();
return $this->ELEMENT_ID;
*/
return parent::executeComponent();
}
示例2: executeComponent
public function executeComponent()
{
parent::setFramemode(false);
$this->userId = $this->arParams["USER_ID"];
$this->fUserId = $this->arParams["FUSER_ID"];
$this->weightKoef = $this->arParams["WEIGHT_KOEF"];
$this->weightUnit = $this->arParams["WEIGHT_UNIT"];
$this->columns = $this->arParams["COLUMNS_LIST"];
$this->offersProps = $this->arParams["OFFERS_PROPS"];
$this->quantityFloat = $this->arParams["QUANTITY_FLOAT"];
$this->countDiscount4AllQuantity = $this->arParams["COUNT_DISCOUNT_4_ALL_QUANTITY"];
$this->priceVatShowValue = $this->arParams["PRICE_VAT_SHOW_VALUE"];
$this->hideCoupon = $this->arParams["HIDE_COUPON"];
$this->usePrepayment = $this->arParams["USE_PREPAYMENT"];
$this->pathToOrder = $this->arParams["PATH_TO_ORDER"];
return parent::executeComponent();
}
示例3: executeComponent
public function executeComponent()
{
$this->IBLOCK_ID = $this->arParams["IBLOCK_ID"];
$this->SECTION_ID = $this->arParams["SECTION_ID"];
$this->FILTER_NAME = $this->arParams["FILTER_NAME"];
if (CModule::IncludeModule("catalog")) {
$arCatalog = CCatalog::GetSkuInfoByProductID($this->IBLOCK_ID);
if (is_array($arCatalog)) {
$this->SKU_IBLOCK_ID = $arCatalog["IBLOCK_ID"];
$this->SKU_PROPERTY_ID = $arCatalog["SKU_PROPERTY_ID"];
}
}
/*DEMO CODE for "pure" class.php component
$this->arResult["FFF"] = "ggg";
$this->includeComponentTemplate();
return $this->ELEMENT_ID;
*/
return parent::executeComponent();
}
示例4: executeComponent
public function executeComponent()
{
$this->IBLOCK_ID = $this->arParams["IBLOCK_ID"];
$this->SECTION_ID = $this->arParams["SECTION_ID"];
$this->FILTER_NAME = $this->arParams["FILTER_NAME"];
$this->SAFE_FILTER_NAME = htmlspecialcharsbx($this->FILTER_NAME);
if (self::$catalogIncluded === null)
self::$catalogIncluded = Loader::includeModule('catalog');
if (self::$catalogIncluded)
{
$arCatalog = CCatalogSKU::GetInfoByProductIBlock($this->IBLOCK_ID);
if (!empty($arCatalog))
{
$this->SKU_IBLOCK_ID = $arCatalog["IBLOCK_ID"];
$this->SKU_PROPERTY_ID = $arCatalog["SKU_PROPERTY_ID"];
}
}
$this->facet = new \Bitrix\Iblock\PropertyIndex\Facet($this->IBLOCK_ID);
return parent::executeComponent();
}
示例5: executeComponent
public function executeComponent()
{
$this->IBLOCK_ID = $this->arParams["IBLOCK_ID"];
$this->SECTION_ID = $this->arParams["SECTION_ID"];
$this->FILTER_NAME = $this->arParams["FILTER_NAME"];
$this->SAFE_FILTER_NAME = htmlspecialcharsbx($this->FILTER_NAME);
if ($this->arParams["CONVERT_CURRENCY"] && $this->arParams["CURRENCY_ID"] != "" && Loader::includeModule('currency')) {
$currencyList = \Bitrix\Currency\CurrencyTable::getList(array('select' => array('CURRENCY'), 'filter' => array('=CURRENCY' => $this->arParams['CURRENCY_ID'])));
if ($currency = $currencyList->fetch()) {
$this->convertCurrencyId = $currency['CURRENCY'];
}
}
if (self::$iblockIncluded === null) {
self::$iblockIncluded = Loader::includeModule('iblock');
}
if (!self::$iblockIncluded) {
return '';
}
if (self::$catalogIncluded === null) {
self::$catalogIncluded = Loader::includeModule('catalog');
}
if (self::$catalogIncluded) {
$arCatalog = CCatalogSKU::GetInfoByProductIBlock($this->IBLOCK_ID);
if (!empty($arCatalog)) {
$this->SKU_IBLOCK_ID = $arCatalog["IBLOCK_ID"];
$this->SKU_PROPERTY_ID = $arCatalog["SKU_PROPERTY_ID"];
}
}
$this->facet = new \Bitrix\Iblock\PropertyIndex\Facet($this->IBLOCK_ID);
return parent::executeComponent();
}