Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс Base
+ Граф наследования:Base:

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

 __construct ($component=null)
 
 getAction ()
 
 isCacheDisabled ()
 
 isExtendedMode ()
 
 isEnableCompatible ()
 
 onPrepareComponentParams ($params)
 
 isMergeProductWhenAddedBasket ()
 
 getTemplateEmptyPreview ()
 
 executeComponent ()
 
 applyTemplateModifications ()
 

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

static getSettingsScript ($componentPath, $settingsName)
 
static getProductsMap (array $originalIds=array())
 
static sendJsonAnswer (array $result=array())
 
static checkEnlargedData (&$item, $propertyCode)
 

Открытые атрибуты

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){0,1}$/i'
 

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

 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 ()
 

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

 $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()
 

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

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

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

◆ __construct()

__construct (   $component = null)

Base constructor.

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

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

Методы

◆ addProductToBasket()

addProductToBasket (   $productId,
  $action 
)
protected

@global \CMain $APPLICATION

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

◆ applyTemplateModifications()

applyTemplateModifications ( )

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

◆ bigDataLoadAction()

bigDataLoadAction ( )
protected

This method executes when "bigDataLoad" action is chosen.

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

◆ calculateItemPrices()

calculateItemPrices ( array &  $items)
protected

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

◆ checkEnlargedData()

static checkEnlargedData ( $item,
  $propertyCode 
)
static

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

◆ checkIblock()

checkIblock ( )
protected

Check for correct iblocks.

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

◆ checkModules()

checkModules ( )
protected

Check necessary modules for component.

Возвращает
bool

Переопределяется в Element.

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

◆ checkProductIblock()

checkProductIblock ( array  $product)
protected

Переопределяется в Element и ElementList.

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

◆ checkProductSection()

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

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

◆ 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 строка 5348

◆ checkTemplateTheme()

checkTemplateTheme ( )
protected

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

◆ chooseOffer()

chooseOffer (   $offers,
  $iblockId 
)
abstractprotected

Переопределяется в Element и ElementList.

◆ clearCatalogDiscountCache()

clearCatalogDiscountCache ( )
protected

Clear discount cache.

Возвращает
void

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

◆ clearItems()

clearItems ( )
protected

Clear products data.

Возвращает
void

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

◆ compactItemRatios()

compactItemRatios (   $id)
protected

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

◆ convertFilter()

convertFilter ( array  $filter)
protected

Convert old product filter keys to new.

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

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

◆ convertOrder()

convertOrder ( array  $order)
protected

Convert old product order keys to new.

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

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

◆ convertSelect()

convertSelect ( array  $select)
protected

Convert old product selected fields to new.

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

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

◆ deferredLoadAction()

deferredLoadAction ( )
protected

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

Переопределяется в ElementList.

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

◆ doAction()

doAction ( )
protected

Action executor.

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

◆ editTemplateCatalogInfo()

editTemplateCatalogInfo ( $item)
protected

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

◆ editTemplateData()

editTemplateData ( )
protected

Переопределяется в Element и ElementList.

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

◆ editTemplateOfferSlider()

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

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

◆ editTemplateProductSlider()

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

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

◆ executeComponent()

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

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

◆ 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 строка 5302

◆ 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 строка 1076

◆ filterIdBySection()

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

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

◆ filterPureOffers()

filterPureOffers ( )
protected

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

◆ getAction()

getAction ( )

Return current action.

Возвращает
string

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

◆ getAdditionalCacheId()

getAdditionalCacheId ( )
abstractprotected

Return component cache identifier.

Возвращает
mixed

Переопределяется в Element и ElementList.

◆ getBestSellersFilter()

getBestSellersFilter ( )
protected

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

◆ getBestSellersProductIds()

getBestSellersProductIds ( )
protected

Return best seller product ids.

Возвращает
array

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

◆ getBestSellersRecommendation()

getBestSellersRecommendation (   $ids)
protected

Return recommended best seller products ids.

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

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

◆ getBigDataProductIds()

getBigDataProductIds ( )
protected

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

Возвращает
array

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

◆ getBigDataServiceRequestParams()

getBigDataServiceRequestParams (   $type = '')
protected

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

◆ getCacheKeys()

getCacheKeys ( )
protected

Переопределяется в Element.

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

◆ 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 строка 5334

◆ getCompatibleProductFields()

getCompatibleProductFields ( )
protected

Returns old product keys.

Возвращает
array

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

◆ getComponentCachePath()

getComponentCachePath ( )
abstractprotected

Return component cache path.

Возвращает
mixed

Переопределяется в Element и ElementList.

◆ getDefaultMeasure()

getDefaultMeasure ( )
protected

Return default measure.

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

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

◆ getDeferredProductIds()

getDeferredProductIds ( )
protected

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

Возвращает
array

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

◆ getElementList()

getElementList (   $iblockId,
  $products 
)
protected

Return \CIBlockResult iterator for current iblock ID.

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

Переопределяется в Element и ElementList.

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

◆ getEmptyPriceMatrix()

getEmptyPriceMatrix ( )
protected

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

Возвращает
array

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

◆ getEmptyRatio()

getEmptyRatio ( )
protected

Return default empty ratio (unexist in database).

Возвращает
array

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

◆ getFilter()

getFilter ( )
protected

Return filter fields to execute.

Возвращает
array

Переопределяется в Element и ElementList.

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

◆ getFullIterator()

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

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

◆ getFullQuantityRange()

getFullQuantityRange ( )
protected

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

◆ getIblockElements()

getIblockElements (   $elementIterator)
abstractprotected

Return elements.

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

Переопределяется в ElementList.

◆ getIblockOffers()

getIblockOffers (   $iblockId)
protected

Return offers array for current iblock.

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

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

◆ getIblockSelectFields()

getIblockSelectFields (   $iblockId)
protected

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

◆ getMeasureIds()

getMeasureIds ( array  $items)
protected

Return measure ids for items.

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

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

◆ getMostViewedRecommendation()

getMostViewedRecommendation (   $ids)
protected

Return recommended most viewed products ids.

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

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

◆ getOffersFilter()

getOffersFilter (   $iblockId)
protected

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

◆ getOffersIblockId()

getOffersIblockId (   $iblockId)
protected

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

◆ getOffersSort()

getOffersSort ( )
protected

Return offers sort fields to execute.

Возвращает
array

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

◆ getProductFields()

getProductFields (   $iblockId)
protected

Returns product fields for iblock.

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

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

◆ getProductIdMap()

getProductIdMap (   $productIds)
protected

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

◆ getProductIds()

getProductIds ( )
protected

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

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

Переопределяется в ElementList.

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

◆ getProductInfo()

getProductInfo (   $productId)
protected

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

◆ getProductSelect()

getProductSelect (   $iblockId,
array  $selectFields 
)
protected

Return select product fields to execute.

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

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

◆ getProductsMap()

static getProductsMap ( array  $originalIds = array())
static

Returns ids map: SKU_PRODUCT_ID => PRODUCT_ID.

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

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

◆ 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 строка 1632

◆ getPropertyList()

getPropertyList (   $iblock,
  $propertyCodes 
)
protected

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

◆ getQuantityRangeHash()

getQuantityRangeHash ( array  $range)
protected

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

◆ getRandomRecommendation()

getRandomRecommendation (   $ids)
protected

Return random products ids.

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

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

◆ 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 строка 1352

◆ getRewriteFields()

getRewriteFields (   $action)
protected

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

◆ getSectionIdByCode()

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

Return section ID by CODE.

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

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

◆ 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 строка 1183

◆ getSelect()

getSelect ( )
protected

Return select fields to execute.

Возвращает
array

Переопределяется в Element.

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

◆ getSeparateList()

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

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

◆ getSettingsScript()

static 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

Переопределяется в ElementList.

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

◆ getTemplateCurrencies()

getTemplateCurrencies ( )
protected

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

◆ getTemplateDefaultParams()

getTemplateDefaultParams ( )
protected

Переопределяется в Element и ElementList.

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

◆ getTemplateEmptyPreview()

getTemplateEmptyPreview ( )

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

◆ getTemplatePropCell()

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

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

◆ getUserGroups()

getUserGroups ( )
protected

Return user groups. Now worked only with current user.

Возвращает
array

@global \CUser $USER

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

◆ getUserGroupsCacheId()

getUserGroupsCacheId ( )
protected

Return user groups string for cache id.

Возвращает
string

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

◆ hasErrors()

hasErrors ( )
protected

Return true if errors exist.

Возвращает
bool

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

◆ initBigDataLastUsage()

initBigDataLastUsage ( )
protected

Mark last usage of BigData.

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

◆ initCatalogDiscountCache()

initCatalogDiscountCache ( )
protected

Fill discount cache before price calculation.

Возвращает
void

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

◆ initCatalogInfo()

initCatalogInfo ( )
protected

Load used iblocks info to component storage.

Возвращает
void

Переопределяется в Element.

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

◆ 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 строка 5246

◆ initCurrencyConvert()

initCurrencyConvert ( )
protected

Check the settings for the output price currency.

Возвращает
void

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

◆ initElementList()

initElementList ( )
protected

Initialize and data process of iblock elements.

Возвращает
void

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

◆ initialLoadAction()

initialLoadAction ( )
protected

This method executes when "initialLoad" action is chosen.

Переопределяется в Element.

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

◆ initIblockPropertyFeatures()

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

Переопределяется в Element и ElementList.

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

◆ initItemsMeasure()

initItemsMeasure ( array &  $items)
protected

Init measure for items.

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

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

◆ initPrices()

initPrices ( )
protected

Load catalog prices in component storage.

Возвращает
void

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

◆ initPricesQuery()

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

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

◆ initQueryFields()

initQueryFields ( )
protected

Initialization of general query fields.

Возвращает
void

Переопределяется в ElementList.

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

◆ initResultCache()

initResultCache ( )
protected

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

◆ initUrlTemplates()

initUrlTemplates ( )
protected

Load URLs for different actions to storage.

Возвращает
void

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

◆ initVats()

initVats ( )
protected

Load catalog vats in component storage.

Возвращает
void

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

◆ 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 строка 4559

◆ 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 строка 5195

◆ isSeparateLoading()

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

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

◆ loadBasketPropertyCodes()

loadBasketPropertyCodes (   $iblockId)
protected

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

◆ 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).

Переопределяется в ElementList.

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

◆ loadDisplayPropertyCodes()

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

Переопределяется в Element и ElementList.

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

◆ loadMeasureRatios()

loadMeasureRatios ( array  $itemIds)
protected

Load measure ratios for items.

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

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

◆ loadMeasures()

loadMeasures ( array  $measureIds)
protected

Load measures data.

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

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

◆ loadOfferTreePropertyCodes()

loadOfferTreePropertyCodes (   $iblockId)
protected

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

◆ loadPrices()

loadPrices ( array  $itemIds)
protected

Load prices for items.

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

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

◆ makeElementLinks()

makeElementLinks ( )
protected

Create link to elements for fast access.

Возвращает
void

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

◆ makeOutputResult()

makeOutputResult ( )
protected

Set component data from storage to $arResult.

Переопределяется в Element и ElementList.

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

◆ modifyDisplayProperties()

modifyDisplayProperties (   $iblock,
$iblockElements 
)
protected

Process element display properties by iblock parameters.

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

Переопределяется в Element и ElementList.

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

◆ modifyElementCommonData()

modifyElementCommonData ( array &  $element)
protected

Fill various common fields for element.

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

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

◆ modifyElementPrices()

modifyElementPrices ( $element)
protected

Process element prices.

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

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

◆ modifyOffers()

modifyOffers (   $offers)
protected

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

◆ offerIblockExist()

offerIblockExist (   $iblockId)
protected

Check offers iblock.

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

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

◆ onPrepareComponentParams()

onPrepareComponentParams (   $params)

Processing of component parameters.

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

Переопределяется в Element и ElementList.

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

◆ parseCondition()

parseCondition (   $condition,
  $params 
)
protected

Return parsed conditions array.

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

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

◆ parseConditionLevel()

parseConditionLevel (   $condition,
  $params 
)
protected

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

◆ parseConditionName()

parseConditionName ( array  $condition)
protected

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

◆ parseConditionOperator()

parseConditionOperator (   $condition)
protected

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

◆ parseConditionValue()

parseConditionValue (   $condition,
  $name 
)
protected

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

◆ parsePropertyCondition()

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

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

◆ prepareAction()

prepareAction ( )
protected

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

Возвращает
string

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

◆ prepareData()

prepareData ( )
protected

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

◆ prepareElementQueryFields()

prepareElementQueryFields ( )
protected

Prepare element getList parameters.

Возвращает
void

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

◆ prepareQueryFields()

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

Prepare select, filter, order.

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

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

◆ prepareTemplateParams()

prepareTemplateParams ( )
protected

Переопределяется в Element и ElementList.

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

◆ processElement()

processElement ( array &  $element)
protected

Process element data to set in $arResult.

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

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

◆ processLinkAction()

processLinkAction ( )
protected

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

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

◆ processOffers()

processOffers ( )
protected

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

Возвращает
void

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

◆ processProducts()

processProducts ( )
protected

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

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

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

◆ processResultData()

processResultData ( )
protected

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

Переопределяется в Element.

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

◆ searchItemSelectedQuantityRangeHash()

searchItemSelectedQuantityRangeHash (   $id)
protected

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

◆ searchItemSelectedRatioId()

searchItemSelectedRatioId (   $id)
protected

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

◆ sendJsonAnswer()

static sendJsonAnswer ( array  $result = array())
static

Send answer for AJAX request.

Аргументы
array$result

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

◆ 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 строка 2437

◆ 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 строка 4707

◆ sortElementList()

sortElementList ( )
protected

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

Возвращает
void

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

◆ transferItems()

transferItems ( array &  $items)
protected

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

Данные класса

◆ $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){0,1}$/i'

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