1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Base
Граф наследования:Base:
CBitrixComponent

Открытые члены

 __construct ($component=null)
 getAction ()
 isCacheDisabled ()
 isExtendedMode ()
 isEnableCompatible ()
 onPrepareComponentParams ($params)
 isMergeProductWhenAddedBasket ()
 getTemplateEmptyPreview ()
 executeComponent ()
 applyTemplateModifications ()
Открытые члены унаследованные от CBitrixComponent
 onIncludeComponentLang ()
 getName ()
 getRelativePath ()
 getPath ()
 getTemplateName ()
 setTemplateName ($templateName)
 setSiteTemplateId ($siteTemplateId)
 getSiteTemplateId ()
 setSiteId ($siteId)
 getSiteId ()
 setLanguageId ($languageId)
 getLanguageId ()
 getSignedParameters ()
 getTemplatePage ()
 getTemplate ()
 getParent ()
 getTemplateCachedData ()
 setTemplateCachedData ($templateCachedData)
 initComponent ($componentName, $componentTemplate=false)
 __prepareComponentParams (&$arParams)
 includeComponentLang ($relativePath="", $lang=false)
 includeComponentTemplate ($templatePage="", $customTemplatePath="")
 initComponentTemplate ($templatePage="", $siteTemplate=false, $customTemplatePath="")
 showComponentTemplate ()
 addIncludeAreaIcon ($arIcon)
 addIncludeAreaIcons ($arIcons)
 getIncludeAreaIcons ()
 getCacheID ($additionalCacheID=false)
 startResultCache ($cacheTime=false, $additionalCacheID=false, $cachePath=false)
 endResultCache ()
 abortResultCache ()
 clearResultCache ($additionalCacheID=false, $cachePath=false)
 getCachePath ()
 setResultCacheKeys ($arResultCacheKeys)
 getEditAreaId ($entryId)
 addEditAction ($entryId, $editLink, $editTitle=false, $arParams=array())
 addDeleteAction ($entryId, $deleteLink, $deleteTitle=false, $arParams=array())
 setTemplateEpilog ($arEpilogInfo)
 __showError ($errorMessage, $errorCode="")
 addChildCSS ($cssPath)
 addChildJS ($jsPath)
 addChildEpilog ($epilogFile)
 addChildFrame ($frame)
 addEditButton ($arButton)
 addViewTarget ($target, $content, $pos)
 randString ($length=6)
 setFrameMode ($mode)
 getFrameMode ()
 getRealFrameMode ()
 getDefaultFrameMode ()

Открытые статические члены

static getSettingsScript ($componentPath, $settingsName)
static getProductsMap (array $originalIds=array())
static sendJsonAnswer (array $result=[])
static checkEnlargedData (&$item, $propertyCode)
Открытые статические члены унаследованные от CBitrixComponent
static includeComponentClass ($componentName)
static clearComponentCache ($componentName, $siteId="")

Поля данных

const ACTION_BUY = 'BUY'
const ACTION_ADD_TO_BASKET = 'ADD2BASKET'
const ACTION_SUBSCRIBE = 'SUBSCRIBE_PRODUCT'
const ACTION_ADD_TO_COMPARE = 'ADD_TO_COMPARE_LIST'
const ACTION_DELETE_FROM_COMPARE = 'DELETE_FROM_COMPARE_LIST'
const ERROR_TEXT = 1
const ERROR_404 = 2
const PARAM_TITLE_MASK = '/^[A-Za-z_][A-Za-z01-9_]*$/'
const SORT_ORDER_MASK = '/^(asc|desc|nulls)(,asc|,desc|,nulls)?$/i'
Поля данных унаследованные от CBitrixComponent
 $__name = ""
 $__path = ""
 $__templatePage = ""
 $__template = null
 $arParams = array()
 $arResult = array()
 $arResultCacheKeys = false
 $__parent = null

Защищенные члены

 setAction ($action)
 hasErrors ()
 setCacheUsage ($state)
 setExtendedMode ($state)
 setCompatibleMode ($state)
 setSeparateLoading ($state)
 isSeparateLoading ()
 checkModules ()
 initCatalogDiscountCache ()
 clearCatalogDiscountCache ()
 initCurrencyConvert ()
 offerIblockExist ($iblockId)
 initCatalogInfo ()
 getProductInfo ($productId)
 initPrices ()
 initVats ()
 initIblockPropertyFeatures ()
 initElementList ()
 getIblockElements ($elementIterator)
 sortElementList ()
 makeElementLinks ()
 getProductIds ()
 getBigDataProductIds ()
 getBestSellersRecommendation ($ids)
 getMostViewedRecommendation ($ids)
 getRandomRecommendation ($ids)
 filterByParams ($ids, $filterIds=array(), $useSectionFilter=true)
 getSectionIdByCode ($sectionCode='', int $iblockId=0)
 getSectionIdByElement ($elementId, $elementCode='', int $iblockId=0)
 filterIdBySection ($elementIds, $iblockId, $sectionId, $limit, $depth=0)
 getRecommendationLimit ($ids)
 getBigDataServiceRequestParams ($type='')
 getBestSellersProductIds ()
 getBestSellersFilter ()
 getDeferredProductIds ()
 getProductIdMap ($productIds)
 getProductsSeparatedByIblock ()
 getDefaultMeasure ()
 getElementList ($iblockId, $products)
 getSeparateList (array $params)
 getFullIterator (array $params)
 initQueryFields ()
 getSelect ()
 getFilter ()
 getSort ()
 prepareElementQueryFields ()
 prepareQueryFields (array $select, array $filter, array $order)
 initPricesQuery ()
 getProductSelect ($iblockId, array $selectFields)
 getProductFields ($iblockId)
 convertSelect (array $select)
 convertFilter (array $filter)
 convertOrder (array $order)
 getIblockSelectFields ($iblockId)
 parseCondition ($condition, $params)
 parseConditionLevel ($condition, $params)
 parseConditionName (array $condition)
 parseConditionOperator ($condition)
 parseConditionValue ($condition, $name)
 parsePropertyCondition (array &$result, array $condition, $params)
 processElement (array &$element)
 modifyElementCommonData (array &$element)
 setElementPanelButtons (&$element)
 modifyDisplayProperties ($iblock, &$iblockElements)
 getPropertyList ($iblock, $propertyCodes)
 clearItems ()
 loadMeasureRatios (array $itemIds)
 getEmptyRatio ()
 initItemsMeasure (array &$items)
 getMeasureIds (array $items)
 loadMeasures (array $measureIds)
 loadPrices (array $itemIds)
 calculateItemPrices (array &$items)
 transferItems (array &$items)
 searchItemSelectedRatioId ($id)
 compactItemRatios ($id)
 getQuantityRangeHash (array $range)
 getFullQuantityRange ()
 searchItemSelectedQuantityRangeHash ($id)
 initUrlTemplates ()
 modifyElementPrices (&$element)
 processProducts ()
 processOffers ()
 getIblockOffers ($iblockId)
 getOffersFilter ($iblockId)
 getOffersSort ()
 modifyOffers ($offers)
 chooseOffer ($offers, $iblockId)
 initResultCache ()
 getCacheKeys ()
 processResultData ()
 checkIblock ()
 prepareData ()
 filterPureOffers ()
 makeOutputResult ()
 processLinkAction ()
 checkProductSection ($productId, $sectionId=0, $sectionCode='')
 checkProductIblock (array $product)
 addProductToBasket ($productId, $action)
 getRewriteFields ($action)
 deferredLoadAction ()
 bigDataLoadAction ()
 initBigDataLastUsage ()
 initialLoadAction ()
 loadData ()
 getAdditionalCacheId ()
 getComponentCachePath ()
 sliceItemsForSlider (&$items)
 getTemplateCurrencies ()
 prepareAction ()
 doAction ()
 prepareTemplateParams ()
 getTemplateDefaultParams ()
 checkTemplateTheme ()
 editTemplateData ()
 editTemplateProductSlider (&$item, $iblock, $limit=0, $addDetailToSlider=true, $default=array())
 editTemplateOfferSlider (&$item, $iblock, $limit=0, $addDetailToSlider=true, $default=array())
 editTemplateCatalogInfo (&$item)
 getTemplatePropCell ($code, $offer, &$matrixFields, $skuPropList)
 getOffersIblockId ($iblockId)
 loadDisplayPropertyCodes ($iblockId)
 loadBasketPropertyCodes ($iblockId)
 loadOfferTreePropertyCodes ($iblockId)
 isNeedCheckQuantity (array $product)
 getUserGroups ()
 getUserGroupsCacheId ()
 initCompatibleFields (array $items)
 fillCompatibleRawPriceFields ($id, array $prices)
 getCompatibleFieldValue ($id, $field)
 checkQuantityRange (array $row)
 getEmptyPriceMatrix ()
 getCompatibleProductFields ()
Защищенные члены унаследованные от CBitrixComponent
 listKeysSignedParameters ()
 __includeComponent ()

Защищенные данные

 $errorCollection
 $separateLoading = false
 $selectFields = array()
 $filterFields = array()
 $sortFields = array()
 $productIds = array()
 $productIdMap = array()
 $iblockProducts = array()
 $elements = array()
 $elementLinks = array()
 $productWithOffers = array()
 $productWithPrices = array()
 $globalFilter = array()
 $navParams = false
 $useCatalog = false
 $isIblockCatalog = false
 $useDiscountCache = false
 $compatibleMode = false
 $oldData = array()
 $prices = array()
 $calculatePrices = array()
 $measures = array()
 $ratios = array()
 $quantityRanges = array()
 $storage = array()
 $recommendationIdToProduct = array()
Защищенные данные унаследованные от CBitrixComponent
 $request
 $signedParameters

Подробное описание

См. определение в файле base.php строка 20

Конструктор(ы)

◆ __construct()

__construct ( $component = null)

Base constructor.

Аргументы
\CBitrixComponent | null$componentComponent object if exists.

Переопределяет метод предка CBitrixComponent.

См. определение в файле base.php строка 83

Методы

◆ addProductToBasket()

addProductToBasket ( $productId,
$action )
protected

@global \CMain $APPLICATION

См. определение в файле base.php строка 4436

◆ applyTemplateModifications()

applyTemplateModifications ( )

Returns prepared all component parameters after verify template parameters .

Возвращает
array

См. определение в файле base.php строка 4922

◆ bigDataLoadAction()

bigDataLoadAction ( )
protected

This method executes when "bigDataLoad" action is chosen.

См. определение в файле base.php строка 4666

◆ calculateItemPrices()

calculateItemPrices ( array & $items)
protected

См. определение в файле base.php строка 2847

◆ checkEnlargedData()

checkEnlargedData ( & $item,
$propertyCode )
static

Check item properties for enlarge images.

Аргументы
array$itemElement description.
string$propertyCodeImage property code.
Возвращает
void

См. определение в файле base.php строка 5045

◆ checkIblock()

checkIblock ( )
protected

Check for correct iblocks.

См. определение в файле base.php строка 4185

◆ checkModules()

checkModules ( )
protected

Check necessary modules for component.

Возвращает
bool

См. определение в файле base.php строка 540

◆ checkProductIblock()

checkProductIblock ( array $product)
protected

См. определение в файле base.php строка 4431

◆ checkProductSection()

checkProductSection ( $productId,
$sectionId = 0,
$sectionCode = '' )
protected

См. определение в файле base.php строка 4369

◆ checkQuantityRange()

checkQuantityRange ( array $row)
protected

Check quantity range for emulate CATALOG_SHOP_QUANTITY_* filter. Strict use only for catalog.element, .section, .top, etc in compatible mode.

Аргументы
array$rowPrice row from database.
Возвращает
bool

См. определение в файле base.php строка 5421

◆ checkTemplateTheme()

checkTemplateTheme ( )
protected

См. определение в файле base.php строка 4992

◆ chooseOffer()

chooseOffer ( $offers,
$iblockId )
abstractprotected

◆ clearCatalogDiscountCache()

clearCatalogDiscountCache ( )
protected

Clear discount cache.

Возвращает
void

См. определение в файле base.php строка 582

◆ clearItems()

clearItems ( )
protected

Clear products data.

Возвращает
void

См. определение в файле base.php строка 2541

◆ compactItemRatios()

compactItemRatios ( $id)
protected

См. определение в файле base.php строка 3485

◆ convertFilter()

convertFilter ( array $filter)
protected

Convert old product filter keys to new.

Аргументы
array$filter
Возвращает
array

См. определение в файле base.php строка 2059

◆ convertOrder()

convertOrder ( array $order)
protected

Convert old product order keys to new.

Аргументы
array$order
Возвращает
array

См. определение в файле base.php строка 2072

◆ convertSelect()

convertSelect ( array $select)
protected

Convert old product selected fields to new.

Аргументы
array$select
Возвращает
array

См. определение в файле base.php строка 2046

◆ deferredLoadAction()

deferredLoadAction ( )
protected

This method executes when "deferredLoad" action chosen. Override getDeferredProductIds method to return needed product ids array.

См. определение в файле base.php строка 4649

◆ doAction()

doAction ( )
protected

Action executor.

См. определение в файле base.php строка 4883

◆ editTemplateCatalogInfo()

editTemplateCatalogInfo ( & $item)
protected

См. определение в файле base.php строка 5102

◆ editTemplateData()

editTemplateData ( )
protected

См. определение в файле base.php строка 5033

◆ editTemplateOfferSlider()

editTemplateOfferSlider ( & $item,
$iblock,
$limit = 0,
$addDetailToSlider = true,
$default = array() )
protected

См. определение в файле base.php строка 5083

◆ editTemplateProductSlider()

editTemplateProductSlider ( & $item,
$iblock,
$limit = 0,
$addDetailToSlider = true,
$default = array() )
protected

См. определение в файле base.php строка 5063

◆ executeComponent()

executeComponent ( )
Возвращает
int|false

Переопределяет метод предка CBitrixComponent.

См. определение в файле base.php строка 4896

◆ fillCompatibleRawPriceFields()

fillCompatibleRawPriceFields ( $id,
array $prices )
protected

Fill deprecated raw price data from database. Strict use only for catalog.element, .section, .top, etc in compatible mode.

Аргументы
int$idItem id.
array$pricesPrice rows from database.
Возвращает
void

См. определение в файле base.php строка 5375

◆ filterByParams()

filterByParams ( $ids,
$filterIds = array(),
$useSectionFilter = true )
protected

Filter correct product ids.

Аргументы
array$idsItems ids.
array$filterIdsFiltered ids.
bool$useSectionFilterCheck filter by section.
Возвращает
array

См. определение в файле base.php строка 1122

◆ filterIdBySection()

filterIdBySection ( $elementIds,
$iblockId,
$sectionId,
$limit,
$depth = 0 )
protected

См. определение в файле base.php строка 1274

◆ filterPureOffers()

filterPureOffers ( )
protected

См. определение в файле base.php строка 4229

◆ getAction()

getAction ( )

Return current action.

Возвращает
string

См. определение в файле base.php строка 94

◆ getAdditionalCacheId()

getAdditionalCacheId ( )
abstractprotected

Return component cache identifier.

Возвращает
mixed

◆ getBestSellersFilter()

getBestSellersFilter ( )
protected

См. определение в файле base.php строка 1547

◆ getBestSellersProductIds()

getBestSellersProductIds ( )
protected

Return best seller product ids.

Возвращает
array

См. определение в файле base.php строка 1525

◆ getBestSellersRecommendation()

getBestSellersRecommendation ( $ids)
protected

Return recommended best seller products ids.

Аргументы
array$idsProducts id.
Возвращает
array

См. определение в файле base.php строка 992

◆ getBigDataProductIds()

getBigDataProductIds ( )
protected

Return array of iblock element ids to show for "bigDataLoad" action.

Возвращает
array

См. определение в файле base.php строка 928

◆ getBigDataServiceRequestParams()

getBigDataServiceRequestParams ( $type = '')
protected

См. определение в файле base.php строка 1425

◆ getCacheKeys()

getCacheKeys ( )
protected

См. определение в файле base.php строка 4147

◆ getCompatibleFieldValue()

getCompatibleFieldValue ( $id,
$field )
protected

Return deprecated field value for item. Strict use only for catalog.element, .section, .top, etc in compatible mode.

Аргументы
int$idItem id.
string$fieldField name.
Возвращает
null|mixed

См. определение в файле base.php строка 5407

◆ getCompatibleProductFields()

getCompatibleProductFields ( )
protected

Returns old product keys.

Возвращает
array

См. определение в файле base.php строка 5475

◆ getComponentCachePath()

getComponentCachePath ( )
abstractprotected

Return component cache path.

Возвращает
mixed

◆ getDefaultMeasure()

getDefaultMeasure ( )
protected

Return default measure.

Возвращает
array|null

См. определение в файле base.php строка 1715

◆ getDeferredProductIds()

getDeferredProductIds ( )
protected

Return array of iblock element ids to show for "initialLoad" action.

Возвращает
array

См. определение в файле base.php строка 1625

◆ getElementList()

getElementList ( $iblockId,
$products )
protected

Return \CIBlockResult iterator for current iblock ID.

Аргументы
int$iblockId
array | int$products
Возвращает
\CIBlockResult|int

См. определение в файле base.php строка 1734

◆ getEmptyPriceMatrix()

getEmptyPriceMatrix ( )
protected

Returns old price result format for product with price ranges. Do not use this method.

Возвращает
array

См. определение в файле base.php строка 5434

◆ getEmptyRatio()

getEmptyRatio ( )
protected

Return default empty ratio (unexist in database).

Возвращает
array

См. определение в файле base.php строка 2607

◆ getFilter()

getFilter ( )
protected

Return filter fields to execute.

Возвращает
array

См. определение в файле base.php строка 1896

◆ getFullIterator()

getFullIterator ( array $params)
protected
Аргументы
array$params
Возвращает
\CIBlockResult

См. определение в файле base.php строка 1833

◆ getFullQuantityRange()

getFullQuantityRange ( )
protected

См. определение в файле base.php строка 3501

◆ getIblockElements()

getIblockElements ( $elementIterator)
abstractprotected

Return elements.

Аргументы
\CIBlockResult$elementIteratorIterator.
Возвращает
mixed

◆ getIblockOffers()

getIblockOffers ( $iblockId)
protected

Return offers array for current iblock.

Аргументы
$iblockId
Возвращает
array

См. определение в файле base.php строка 3767

◆ getIblockSelectFields()

getIblockSelectFields ( $iblockId)
protected

См. определение в файле base.php строка 2079

◆ getMeasureIds()

getMeasureIds ( array $items)
protected

Return measure ids for items.

Аргументы
array$itemsItems data.
Возвращает
array

См. определение в файле base.php строка 2657

◆ getMostViewedRecommendation()

getMostViewedRecommendation ( $ids)
protected

Return recommended most viewed products ids.

Аргументы
array$idsProducts id.
Возвращает
array

См. определение в файле base.php строка 1025

◆ getOffersFilter()

getOffersFilter ( $iblockId)
protected

См. определение в файле base.php строка 4055

◆ getOffersIblockId()

getOffersIblockId ( $iblockId)
protected

См. определение в файле base.php строка 5151

◆ getOffersSort()

getOffersSort ( )
protected

Return offers sort fields to execute.

Возвращает
array

См. определение в файле base.php строка 4090

◆ getProductFields()

getProductFields ( $iblockId)
protected

Returns product fields for iblock.

Аргументы
int$iblockId
Возвращает
array

См. определение в файле base.php строка 2009

◆ getProductIdMap()

getProductIdMap ( $productIds)
protected

См. определение в файле base.php строка 1630

◆ getProductIds()

getProductIds ( )
protected

Return array of iblock element ids to show for "initialLoad" action.

Возвращает
bool|array

См. определение в файле base.php строка 918

◆ getProductInfo()

getProductInfo ( $productId)
protected

См. определение в файле base.php строка 672

◆ getProductSelect()

getProductSelect ( $iblockId,
array $selectFields )
protected

Return select product fields to execute.

Аргументы
int$iblockId
array$selectFields
Возвращает
array

См. определение в файле base.php строка 1985

◆ getProductsMap()

getProductsMap ( array $originalIds = array())
static

Returns ids map: SKU_PRODUCT_ID => PRODUCT_ID.

Аргументы
array$originalIdsInput products ids.
Возвращает
array

См. определение в файле base.php строка 1646

◆ getProductsSeparatedByIblock()

getProductsSeparatedByIblock ( )
protected

Return array map of iblock products.

3 following cases to process $productIdMap: ~ $productIdMap is array with ids - show elements with presented ids ~ $productIdMap is empty array - nothing to show ~ $productIdMap === false - show elements via filter(e.g. $arParams['IBLOCK_ID'], arParams['ELEMENT_ID'])

Возвращает
array

См. определение в файле base.php строка 1678

◆ getPropertyList()

getPropertyList ( $iblock,
$propertyCodes )
protected

См. определение в файле base.php строка 2505

◆ getQuantityRangeHash()

getQuantityRangeHash ( array $range)
protected

См. определение в файле base.php строка 3495

◆ getRandomRecommendation()

getRandomRecommendation ( $ids)
protected

Return random products ids.

Аргументы
array$idsProducts id.
Возвращает
array

См. определение в файле base.php строка 1068

◆ getRecommendationLimit()

getRecommendationLimit ( $ids)
protected

Return random element ids to fill partially empty space in row when lack of big data elements. Does not fill rows with no big data elements at all.

Аргументы
array$ids
Возвращает
int

См. определение в файле base.php строка 1398

◆ getRewriteFields()

getRewriteFields ( $action)
protected

См. определение в файле base.php строка 4623

◆ getSectionIdByCode()

getSectionIdByCode ( $sectionCode = '',
int $iblockId = 0 )
protected

Return section ID by CODE.

Аргументы
string$sectionCodeIblock section code.
Возвращает
int

См. определение в файле base.php строка 1183

◆ getSectionIdByElement()

getSectionIdByElement ( $elementId,
$elementCode = '',
int $iblockId = 0 )
protected

Return section ID by element ID.

Аргументы
int$elementIdIblock element id.
string$elementCodeIblock element code.
Возвращает
int

См. определение в файле base.php строка 1229

◆ getSelect()

getSelect ( )
protected

Return select fields to execute.

Возвращает
array

См. определение в файле base.php строка 1862

◆ getSeparateList()

getSeparateList ( array $params)
protected
Аргументы
array$params
Возвращает
\CIBlockResult

См. определение в файле base.php строка 1777

◆ getSettingsScript()

getSettingsScript ( $componentPath,
$settingsName )
static

Return settings script path with modified time postfix.

Аргументы
string$componentPathPath to component.
string$settingsNameSettings name.
Возвращает
string

См. определение в файле base.php строка 247

◆ getSort()

getSort ( )
protected

Return sort fields to execute.

Возвращает
array

См. определение в файле base.php строка 1911

◆ getTemplateCurrencies()

getTemplateCurrencies ( )
protected

См. определение в файле base.php строка 4779

◆ getTemplateDefaultParams()

getTemplateDefaultParams ( )
protected

См. определение в файле base.php строка 4964

◆ getTemplateEmptyPreview()

getTemplateEmptyPreview ( )

См. определение в файле base.php строка 4742

◆ getTemplatePropCell()

getTemplatePropCell ( $code,
$offer,
& $matrixFields,
$skuPropList )
protected

См. определение в файле base.php строка 5118

◆ getUserGroups()

getUserGroups ( )
protected

Return user groups. Now worked only with current user.

Возвращает
array

@global \CUser $USER

См. определение в файле base.php строка 5285

◆ getUserGroupsCacheId()

getUserGroupsCacheId ( )
protected

Return user groups string for cache id.

Возвращает
string

См. определение в файле base.php строка 5303

◆ hasErrors()

hasErrors ( )
protected

Return true if errors exist.

Возвращает
bool

См. определение в файле base.php строка 115

◆ initBigDataLastUsage()

initBigDataLastUsage ( )
protected

Mark last usage of BigData.

См. определение в файле base.php строка 4684

◆ initCatalogDiscountCache()

initCatalogDiscountCache ( )
protected

Fill discount cache before price calculation.

Возвращает
void

См. определение в файле base.php строка 557

◆ initCatalogInfo()

initCatalogInfo ( )
protected

Load used iblocks info to component storage.

Возвращает
void

См. определение в файле base.php строка 650

◆ initCompatibleFields()

initCompatibleFields ( array $items)
protected

Filling deprecated fields of items for compatibility with old templates. Strict use only for catalog.element, .section, .top, etc in compatible mode.

Аргументы
array$itemsProduct list.
Возвращает
void

См. определение в файле base.php строка 5319

◆ initCurrencyConvert()

initCurrencyConvert ( )
protected

Check the settings for the output price currency.

Возвращает
void

См. определение в файле base.php строка 599

◆ initElementList()

initElementList ( )
protected

Initialize and data process of iblock elements.

Возвращает
void

См. определение в файле base.php строка 837

◆ initialLoadAction()

initialLoadAction ( )
protected

This method executes when "initialLoad" action is chosen.

См. определение в файле base.php строка 4697

◆ initIblockPropertyFeatures()

initIblockPropertyFeatures ( )
protected
Возвращает
void

См. определение в файле base.php строка 827

◆ initItemsMeasure()

initItemsMeasure ( array & $items)
protected

Init measure for items.

Аргументы
array&$itemsItems list.
Возвращает
void

См. определение в файле base.php строка 2622

◆ initPrices()

initPrices ( )
protected

Load catalog prices in component storage.

Возвращает
void

См. определение в файле base.php строка 743

◆ initPricesQuery()

initPricesQuery ( )
protected
См. также
\Bitrix\Iblock\Component\Base::prepareElementQueryFields

См. определение в файле base.php строка 1973

◆ initQueryFields()

initQueryFields ( )
protected

Initialization of general query fields.

Возвращает
void

См. определение в файле base.php строка 1849

◆ initResultCache()

initResultCache ( )
protected

См. определение в файле base.php строка 4123

◆ initUrlTemplates()

initUrlTemplates ( )
protected

Load URLs for different actions to storage.

Возвращает
void

См. определение в файле base.php строка 3531

◆ initVats()

initVats ( )
protected

Load catalog vats in component storage.

Возвращает
void

См. определение в файле base.php строка 789

◆ isCacheDisabled()

isCacheDisabled ( )

Check if cache disabled.

Возвращает
bool

См. определение в файле base.php строка 172

◆ isEnableCompatible()

isEnableCompatible ( )

Return state filling old keys in result data. This method makes no sense for the new components.

Возвращает
bool

См. определение в файле base.php строка 218

◆ isExtendedMode()

isExtendedMode ( )

Check if extended mode is enabled.

Возвращает
bool

См. определение в файле base.php строка 197

◆ isMergeProductWhenAddedBasket()

isMergeProductWhenAddedBasket ( )

Should merge products when adding to the basket (increase the quantity of products)?

If not exists parameter 'USE_MERGE_WHEN_ADD_PRODUCT_TO_BASKET' return true

Возвращает
bool

См. определение в файле base.php строка 4618

◆ isNeedCheckQuantity()

isNeedCheckQuantity ( array $product)
protected

Return true, if enable quantity trace and disable make out-of-stock items available for purchase.

Аргументы
array$productProduct data.
Возвращает
bool

См. определение в файле base.php строка 5268

◆ isSeparateLoading()

isSeparateLoading ( )
protected
Возвращает
bool

См. определение в файле base.php строка 235

◆ loadBasketPropertyCodes()

loadBasketPropertyCodes ( $iblockId)
protected

См. определение в файле base.php строка 5174

◆ loadData()

loadData ( )
protected

Show cached component data or load if outdated. If extended mode enabled - uses result_modifier.php logic in component (be careful not to duplicate it).

См. определение в файле base.php строка 4708

◆ loadDisplayPropertyCodes()

loadDisplayPropertyCodes ( $iblockId)
protected
Аргументы
int$iblockId
Возвращает
void

См. определение в файле base.php строка 5169

◆ loadMeasureRatios()

loadMeasureRatios ( array $itemIds)
protected

Load measure ratios for items.

Аргументы
array$itemIdsItems id list.
Возвращает
void

См. определение в файле base.php строка 2557

◆ loadMeasures()

loadMeasures ( array $measureIds)
protected

Load measures data.

Аргументы
array$measureIds
Возвращает
void

См. определение в файле base.php строка 2684

◆ loadOfferTreePropertyCodes()

loadOfferTreePropertyCodes ( $iblockId)
protected

См. определение в файле base.php строка 5231

◆ loadPrices()

loadPrices ( array $itemIds)
protected

Load prices for items.

Аргументы
array$itemIdsItem ids.
Возвращает
void

См. определение в файле base.php строка 2716

◆ makeElementLinks()

makeElementLinks ( )
protected

Create link to elements for fast access.

Возвращает
void

См. определение в файле base.php строка 902

◆ makeOutputResult()

makeOutputResult ( )
protected

Set component data from storage to $arResult.

См. определение в файле base.php строка 4259

◆ modifyDisplayProperties()

modifyDisplayProperties ( $iblock,
& $iblockElements )
protected

Process element display properties by iblock parameters.

Аргументы
int$iblockIblock ID.
array&$iblockElementsItems.
Возвращает
void

См. определение в файле base.php строка 2501

◆ modifyElementCommonData()

modifyElementCommonData ( array & $element)
protected

Fill various common fields for element.

Аргументы
array&$elementElement data.
Возвращает
void

См. определение в файле base.php строка 2359

◆ modifyElementPrices()

modifyElementPrices ( & $element)
protected

Process element prices.

Аргументы
array&$elementItem data.
Возвращает
void

См. определение в файле base.php строка 3600

◆ modifyOffers()

modifyOffers ( $offers)
protected

См. определение в файле base.php строка 4102

◆ offerIblockExist()

offerIblockExist ( $iblockId)
protected

Check offers iblock.

Аргументы
int$iblockIdIblock Id.
Возвращает
bool

См. определение в файле base.php строка 632

◆ onPrepareComponentParams()

onPrepareComponentParams ( $params)

Processing of component parameters.

Аргументы
array$paramsRaw component parameters values.
Возвращает
mixed

Переопределяет метод предка CBitrixComponent.

См. определение в файле base.php строка 268

◆ parseCondition()

parseCondition ( $condition,
$params )
protected

Return parsed conditions array.

Аргументы
$condition
$params
Возвращает
array

См. определение в файле base.php строка 2093

◆ parseConditionLevel()

parseConditionLevel ( $condition,
$params )
protected

См. определение в файле base.php строка 2153

◆ parseConditionName()

parseConditionName ( array $condition)
protected

См. определение в файле base.php строка 2183

◆ parseConditionOperator()

parseConditionOperator ( $condition)
protected

См. определение в файле base.php строка 2213

◆ parseConditionValue()

parseConditionValue ( $condition,
$name )
protected

См. определение в файле base.php строка 2248

◆ parsePropertyCondition()

parsePropertyCondition ( array & $result,
array $condition,
$params )
protected

См. определение в файле base.php строка 2265

◆ prepareAction()

prepareAction ( )
protected

Action preparing to execute in doAction method with postfix "Action". E.g. action "initialLoad" calls "initialLoadAction".

Возвращает
string

См. определение в файле base.php строка 4859

◆ prepareData()

prepareData ( )
protected

См. определение в файле base.php строка 4219

◆ prepareElementQueryFields()

prepareElementQueryFields ( )
protected

Prepare element getList parameters.

Возвращает
void

См. определение в файле base.php строка 1921

◆ prepareQueryFields()

prepareQueryFields ( array $select,
array $filter,
array $order )
protected

Prepare select, filter, order.

Аргументы
array$select
array$filter
array$order
Возвращает
array

См. определение в файле base.php строка 1943

◆ prepareTemplateParams()

prepareTemplateParams ( )
protected

См. определение в файле base.php строка 4931

◆ processElement()

processElement ( array & $element)
protected

Process element data to set in $arResult.

Аргументы
array&$element
Возвращает
void

См. определение в файле base.php строка 2346

◆ processLinkAction()

processLinkAction ( )
protected

Process of buy/add-to-basket/etc actions.

См. определение в файле base.php строка 4287

◆ processOffers()

processOffers ( )
protected

Load, calculate and fill data (prices, measures, discounts, deprecated fields) for offers. Link offers to products.

Возвращает
void

См. определение в файле base.php строка 3712

◆ processProducts()

processProducts ( )
protected

Load, calculate and fill data (prices, measures, discounts, deprecated fields) for simple products.

Возвращает
void.

См. определение в файле base.php строка 3695

◆ processResultData()

processResultData ( )
protected

All iblock/section/element/offer initializations starts here. If have no errors - result showed in $arResult.

См. определение в файле base.php строка 4156

◆ searchItemSelectedQuantityRangeHash()

searchItemSelectedQuantityRangeHash ( $id)
protected

См. определение в файле base.php строка 3512

◆ searchItemSelectedRatioId()

searchItemSelectedRatioId ( $id)
protected

См. определение в файле base.php строка 3460

◆ sendJsonAnswer()

sendJsonAnswer ( array $result = [])
static

Send answer for AJAX request.

Аргументы
array$resultAjax result.
Возвращает
void

См. определение в файле base.php строка 4836

◆ setAction()

setAction ( $action)
protected

Action setter.

Аргументы
string$actionAction code.
Возвращает
void

См. определение в файле base.php строка 105

◆ setCacheUsage()

setCacheUsage ( $state)
protected

Cache usage setter. Enable it to ignore cache.

Аргументы
bool$stateCache usage mode.
Возвращает
$this

См. определение в файле base.php строка 160

◆ setCompatibleMode()

setCompatibleMode ( $state)
protected

Enable/disable fill old keys in result data and use of outdated settings. Strict use only for catalog.element, .section, .top, etc.

Аргументы
bool$stateEnable/disable state.
Возвращает
void

См. определение в файле base.php строка 208

◆ setElementPanelButtons()

setElementPanelButtons ( & $element)
protected

Add Hermitage button links for element.

Аргументы
array&$elementElement data.
Возвращает
void

См. определение в файле base.php строка 2482

◆ setExtendedMode()

setExtendedMode ( $state)
protected

Extended mode setter. Enabled - adds result_modifier.php template logic in component class. In both cases(true or false) result_modifier.php will be included.

Аргументы
bool$stateNew extended mode.
Возвращает
$this

См. определение в файле base.php строка 185

◆ setSeparateLoading()

setSeparateLoading ( $state)
protected
Аргументы
$state
Возвращает
void

См. определение в файле base.php строка 227

◆ sliceItemsForSlider()

sliceItemsForSlider ( & $items)
protected

См. определение в файле base.php строка 4767

◆ sortElementList()

sortElementList ( )
protected

Sort elements by original position (in case when product ids used in GetList).

Возвращает
void

См. определение в файле base.php строка 873

◆ transferItems()

transferItems ( array & $items)
protected

См. определение в файле base.php строка 2969

Поля

◆ $calculatePrices

$calculatePrices = array()
protected

См. определение в файле base.php строка 70

◆ $compatibleMode

$compatibleMode = false
protected

См. определение в файле base.php строка 65

◆ $elementLinks

$elementLinks = array()
protected

См. определение в файле base.php строка 52

◆ $elements

$elements = array()
protected

См. определение в файле base.php строка 51

◆ $errorCollection

$errorCollection
protected

См. определение в файле base.php строка 38

◆ $filterFields

$filterFields = array()
protected

См. определение в файле base.php строка 43

◆ $globalFilter

$globalFilter = array()
protected

См. определение в файле base.php строка 57

◆ $iblockProducts

$iblockProducts = array()
protected

См. определение в файле base.php строка 50

◆ $isIblockCatalog

$isIblockCatalog = false
protected

См. определение в файле base.php строка 61

◆ $measures

$measures = array()
protected

См. определение в файле base.php строка 72

◆ $navParams

$navParams = false
protected

См. определение в файле base.php строка 58

◆ $oldData

$oldData = array()
protected

См. определение в файле base.php строка 67

◆ $prices

$prices = array()
protected

См. определение в файле base.php строка 69

◆ $productIdMap

$productIdMap = array()
protected

См. определение в файле base.php строка 49

◆ $productIds

$productIds = array()
protected

См. определение в файле base.php строка 47

◆ $productWithOffers

$productWithOffers = array()
protected

См. определение в файле base.php строка 54

◆ $productWithPrices

$productWithPrices = array()
protected

См. определение в файле base.php строка 55

◆ $quantityRanges

$quantityRanges = array()
protected

См. определение в файле base.php строка 74

◆ $ratios

$ratios = array()
protected

См. определение в файле base.php строка 73

◆ $recommendationIdToProduct

$recommendationIdToProduct = array()
protected

См. определение в файле base.php строка 77

◆ $selectFields

$selectFields = array()
protected

См. определение в файле base.php строка 42

◆ $separateLoading

$separateLoading = false
protected

См. определение в файле base.php строка 40

◆ $sortFields

$sortFields = array()
protected

См. определение в файле base.php строка 44

◆ $storage

$storage = array()
protected

См. определение в файле base.php строка 76

◆ $useCatalog

$useCatalog = false
protected

См. определение в файле base.php строка 60

◆ $useDiscountCache

$useDiscountCache = false
protected

См. определение в файле base.php строка 62

◆ ACTION_ADD_TO_BASKET

const ACTION_ADD_TO_BASKET = 'ADD2BASKET'

См. определение в файле base.php строка 23

◆ ACTION_ADD_TO_COMPARE

const ACTION_ADD_TO_COMPARE = 'ADD_TO_COMPARE_LIST'

См. определение в файле base.php строка 25

◆ ACTION_BUY

const ACTION_BUY = 'BUY'

См. определение в файле base.php строка 22

◆ ACTION_DELETE_FROM_COMPARE

const ACTION_DELETE_FROM_COMPARE = 'DELETE_FROM_COMPARE_LIST'

См. определение в файле base.php строка 26

◆ ACTION_SUBSCRIBE

const ACTION_SUBSCRIBE = 'SUBSCRIBE_PRODUCT'

См. определение в файле base.php строка 24

◆ ERROR_404

const ERROR_404 = 2

См. определение в файле base.php строка 29

◆ ERROR_TEXT

const ERROR_TEXT = 1

См. определение в файле base.php строка 28

◆ PARAM_TITLE_MASK

const PARAM_TITLE_MASK = '/^[A-Za-z_][A-Za-z01-9_]*$/'

См. определение в файле base.php строка 31

◆ SORT_ORDER_MASK

const SORT_ORDER_MASK = '/^(asc|desc|nulls)(,asc|,desc|,nulls)?$/i'

См. определение в файле base.php строка 32


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/iblock/lib/component/base.php