Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс StoreAmount

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

 __construct (int $entityId)
 
 getEntityId ()
 
 getVariationIds ()
 
 getStoreAmountGridId ()
 
 getStoresCount ()
 
 getProductStores (array $params=[])
 
 getTotalData ()
 
 getMeasure (?int $measureId)
 
 getStoreAmountSignedParameters ()
 

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

 getStoresInfo (array $storeIds)
 
 getVariationsData (array $variationIds)
 
 getStoreTotal ()
 
 fillStoreTotal ()
 
 getVariationsTotalData (array $variationIds)
 
 getDefaultMeasure ()
 
 getStoreAmountComponentName ()
 
 getStoreAmountParameters ()
 

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

 $entityId
 
 $variationIds
 
 $storesCount
 
 $storeTotal
 
 $measures = []
 
 $defaultMeasure
 
const GRID_NAME = 'productcard_store_amount'
 

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

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

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

◆ __construct()

__construct ( int $entityId)

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

Методы

◆ fillStoreTotal()

fillStoreTotal ( )
protected

Combine Amount and Quantity info from all stores to one array

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

◆ getDefaultMeasure()

getDefaultMeasure ( )
protected

Return default measure value

Возвращает
array

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

◆ getEntityId()

getEntityId ( )

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

◆ getMeasure()

getMeasure ( ?int $measureId)

Return measure symbol from ID

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

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

◆ getProductStores()

getProductStores ( array $params = [])

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

◆ getStoreAmountComponentName()

getStoreAmountComponentName ( )
protected

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

◆ getStoreAmountGridId()

getStoreAmountGridId ( )

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

◆ getStoreAmountParameters()

getStoreAmountParameters ( )
protected

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

◆ getStoreAmountSignedParameters()

getStoreAmountSignedParameters ( )

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

◆ getStoresCount()

getStoresCount ( )

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

◆ getStoresInfo()

getStoresInfo ( array $storeIds)
protected

Return array of information of a stores

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

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

◆ getStoreTotal()

getStoreTotal ( )
protected

Check exists and return array of total information about product stores

Возвращает
array

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

◆ getTotalData()

getTotalData ( )

Form and prepare data to render in total info page block

Возвращает
array

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

◆ getVariationIds()

getVariationIds ( )

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

◆ getVariationsData()

getVariationsData ( array $variationIds)
protected

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

◆ getVariationsTotalData()

getVariationsTotalData ( array $variationIds)
protected

Get array of variations with a total stores data of it

Возвращает
array
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

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

◆ $defaultMeasure

$defaultMeasure
protected

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

◆ $entityId

$entityId
protected

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

◆ $measures

$measures = []
protected

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

◆ $storesCount

$storesCount
protected

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

◆ $storeTotal

$storeTotal
protected

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

◆ $variationIds

$variationIds
protected

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

◆ GRID_NAME

const GRID_NAME = 'productcard_store_amount'
protected

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