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

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

static GetProductData ($arParams)
static OrderProduct ($arParams)
static CancelProduct ($arParams)
static DeliverProduct ($arParams)
static ViewProduct ($arParams)
static RecurringOrderProduct ($arParams)
static ReserveProduct ($arParams)
static tryShipmentProduct (\Bitrix\Sale\BasketItem $basketItem, $reserved='N', array $basketStoreData=array(), $quantity=null)
static tryUnshipmentProduct ($productId)
static GetStoresCount ($arParams=array())
static GetProductStores ($arParams)
static CheckProductBarcode ($arParams)
static GetSetItems ($productID, $intType, $arProducInfo=array())
static getProductAvailableQuantity ($productId, $userId=null)
static getHitCache ($type, $key)
static isExistsHitCache ($type, $key)
static setHitCache ($type, $key, $value)
static clearHitCache ($type=null)
static isReservationEnabled ()
static isNeedShip ()
Открытые статические члены унаследованные от IBXSaleProductProvider
static DeductProduct ($arFields)

Поля данных

const CATALOG_PROVIDER_EMPTY_STORE_ID = 0
const CACHE_USER_GROUPS = 'USER_GROUPS'
const CACHE_ITEM_WITHOUT_RIGHTS = 'IBLOCK_ELEMENT_PERM_N'
const CACHE_ITEM_WITH_RIGHTS = 'IBLOCK_ELEMENT_PERM_Y'
const CACHE_IBLOCK_RIGHTS_MODE = 'IBLOCK_RIGHTS_MODE'
const CACHE_USER_RIGHTS = 'USER_RIGHT'
const CACHE_PRODUCT = 'CATALOG_PRODUCT'
const CACHE_VAT = 'VAT_INFO'
const CACHE_IBLOCK_RIGHTS = 'IBLOCK_RIGHTS'
const CACHE_STORE = 'CATALOG_STORE'
const CACHE_STORE_PRODUCT = 'CATALOG_STORE_PRODUCT'
const CACHE_PARENT_PRODUCT_ACTIVE = 'PARENT_PRODUCT_ACTIVE'

Защищенные статические члены

static isNeedClearPublicCache ($currentQuantity, $newQuantity, $quantityTrace, $canBuyZero, $ratio=1)
static clearPublicCache ($productID, $productInfo=array())
static getUserGroups ($userId)
static getPriceTitle ($priceType)
static checkParentActivity ($productId, $iblockId=0)
static canProductAutoShip (\Bitrix\Sale\BasketItem $basketItem)
static getProductStoreData (\Bitrix\Sale\BasketItem $basketItem, $quantity)
static getProductOneStoreData (\Bitrix\Sale\BasketItem $basketItem, $quantity)
static getStoreIds (array $params)
static checkProductSet ($productId)

Статические защищенные данные

static $errors = array()
static $arOneTimeCoupons = array()
static $clearAutoCache = array()
static $catalogList = array()
static $userCache = array()
static $priceTitleCache = array()
static $proxyUserGroups = array()
static $proxyIblockElementListPermN = array()
static $proxyIblockElementListPermY = array()
static $proxyIblockRights = array()
static $proxyCatalogProduct = array()
static $proxyStoresCount = array()
static $hitCache = array()

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

См. также
\Bitrix\Catalog\Product\CatalogProvider

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

Методы

◆ CancelProduct()

CancelProduct ( $arFields)
static

Method is called when the order with the product is canceled

Аргументы
array$arFieldsProduct description. keys are case sensitive:
  • int PRODUCT_ID Product id.
  • float QUANTITY Product quantity.
  • string CANCEL Cancel flag (Y/N).
Возвращает
bool

Замещает IBXSaleProductProvider.

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

◆ canProductAutoShip()

canProductAutoShip ( \Bitrix\Sale\BasketItem $basketItem)
staticprotected
Аргументы
\Bitrix\Sale\BasketItem$basketItem
Возвращает
bool
Исключения
Main

ArgumentNullException

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

◆ checkParentActivity()

checkParentActivity ( $productId,
$iblockId = 0 )
staticprotected

Check exist and activity parent product.

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

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

◆ CheckProductBarcode()

CheckProductBarcode ( $arFields)
static

Method is called to check product barcode

Аргументы
int$arFields,["PRODUCT_ID"]
int$arFields,["BARCODE"]

Замещает IBXSaleProductProvider.

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

◆ checkProductSet()

checkProductSet ( $productId)
staticprotected

Check available set items. Error text return in static::$errors

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

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

◆ clearHitCache()

clearHitCache ( $type = null)
static

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

◆ clearPublicCache()

clearPublicCache ( $productID,
$productInfo = array() )
staticprotected

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

◆ DeliverProduct()

DeliverProduct ( $arFields)
static

Method is called when the delivery is allowed for the order with this product

Аргументы
array$arFieldsProduct description. keys are case sensitive:
  • int PRODUCT_ID Product id.
  • int USER_ID User id.
  • bool $arFields["PAID"] Paid or no.
  • int ORDER_ID Order id.
  • string BASKET_ID Basket id.
    array|false

Замещает IBXSaleProductProvider.

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

◆ getHitCache()

getHitCache ( $type,
$key )
static

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

◆ getPriceTitle()

getPriceTitle ( $priceType)
staticprotected

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

◆ getProductAvailableQuantity()

getProductAvailableQuantity ( $productId,
$userId = null )
static
Аргументы
$productId
null$userId
Возвращает
bool
Исключения
Main

ArgumentException

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

◆ GetProductData()

GetProductData ( $arParams)
static
Аргументы
array$arParams
Возвращает
array|false

Замещает IBXSaleProductProvider.

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

◆ getProductOneStoreData()

getProductOneStoreData ( \Bitrix\Sale\BasketItem $basketItem,
$quantity )
staticprotected
Аргументы
\Bitrix\Sale\BasketItem$basketItem
$quantity
Возвращает
array|bool

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

◆ getProductStoreData()

getProductStoreData ( \Bitrix\Sale\BasketItem $basketItem,
$quantity )
staticprotected
Аргументы
\Bitrix\Sale\BasketItem$basketItem
$quantity
Возвращает
array|bool

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

◆ GetProductStores()

GetProductStores ( $arFields)
static

Method is called to get information from the product provider about available shipping stores for the specified product. Return list of stores or false if stores are not used.

Аргументы
array$arFieldsStore params. keys are case sensitive:
  • string SITE_ID Site id.
  • int PRODUCT_ID Product ID.
  • bool ENUM_BY_ID Return store ids as keys.
  • int BASKET_ID Basket id.
Возвращает
array|false

Замещает IBXSaleProductProvider.

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

◆ GetSetItems()

GetSetItems ( $productID,
$intType,
$arProducInfo = array() )
static

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

◆ getStoreIds()

getStoreIds ( array $params)
staticprotected

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

◆ GetStoresCount()

GetStoresCount ( $arParams = array())
static

Method is called to know if product provider supports stores. Return number of stores used as shipping centers available or false if stores are not used.

Аргументы
array$arParamsStore params. keys are case sensitive:
  • string SITE_ID Site id.
Возвращает
int

Замещает IBXSaleProductProvider.

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

◆ getUserGroups()

getUserGroups ( $userId)
staticprotected

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

◆ isExistsHitCache()

isExistsHitCache ( $type,
$key )
static

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

◆ isNeedClearPublicCache()

isNeedClearPublicCache ( $currentQuantity,
$newQuantity,
$quantityTrace,
$canBuyZero,
$ratio = 1 )
staticprotected

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

◆ isNeedShip()

isNeedShip ( )
static
Возвращает
bool

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

◆ isReservationEnabled()

isReservationEnabled ( )
static
Возвращает
bool

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

◆ OrderProduct()

OrderProduct ( $arParams)
static
Аргументы
array$arParams
Возвращает
array|false

Замещает IBXSaleProductProvider.

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

◆ RecurringOrderProduct()

RecurringOrderProduct ( $arFields)
static

Method is when recurring order is placed with this product

Аргументы
array$arFieldsProduct description. keys are case sensitive:
Возвращает
array|false

Замещает IBXSaleProductProvider.

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

◆ ReserveProduct()

ReserveProduct ( $arFields)
static

Method is called when the product should be reserved

Аргументы
int$arFields,["PRODUCT_ID"]
int$arFields,["QUANTITY_ADD"]- quantity which should be added to the QUANTITY_RESERVED value of the product during reservation
string$arFields,["UNDO_RESERVATION"]Y/N
Возвращает
array

Замещает IBXSaleProductProvider.

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

◆ setHitCache()

setHitCache ( $type,
$key,
$value )
static

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

◆ tryShipmentProduct()

tryShipmentProduct ( \Bitrix\Sale\BasketItem $basketItem,
$reserved = 'N',
array $basketStoreData = array(),
$quantity = null )
static
Аргументы
\Bitrix\Sale\BasketItem$basketItem
string$reserved
array$basketStoreData
null$quantity
Возвращает
\Bitrix\Sale\Result

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

◆ tryUnshipmentProduct()

tryUnshipmentProduct ( $productId)
static

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

◆ ViewProduct()

ViewProduct ( $arParams)
static
Аргументы
array$arParams
Возвращает
array|bool

Замещает IBXSaleProductProvider.

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

Поля

◆ $arOneTimeCoupons

$arOneTimeCoupons = array()
staticprotected

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

◆ $catalogList

$catalogList = array()
staticprotected

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

◆ $clearAutoCache

$clearAutoCache = array()
staticprotected

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

◆ $errors

$errors = array()
staticprotected

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

◆ $hitCache

$hitCache = array()
staticprotected

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

◆ $priceTitleCache

$priceTitleCache = array()
staticprotected

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

◆ $proxyCatalogProduct

$proxyCatalogProduct = array()
staticprotected

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

◆ $proxyIblockElementListPermN

$proxyIblockElementListPermN = array()
staticprotected

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

◆ $proxyIblockElementListPermY

$proxyIblockElementListPermY = array()
staticprotected

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

◆ $proxyIblockRights

$proxyIblockRights = array()
staticprotected

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

◆ $proxyStoresCount

$proxyStoresCount = array()
staticprotected

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

◆ $proxyUserGroups

$proxyUserGroups = array()
staticprotected

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

◆ $userCache

$userCache = array()
staticprotected

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

◆ CACHE_IBLOCK_RIGHTS

const CACHE_IBLOCK_RIGHTS = 'IBLOCK_RIGHTS'

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

◆ CACHE_IBLOCK_RIGHTS_MODE

const CACHE_IBLOCK_RIGHTS_MODE = 'IBLOCK_RIGHTS_MODE'

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

◆ CACHE_ITEM_WITH_RIGHTS

const CACHE_ITEM_WITH_RIGHTS = 'IBLOCK_ELEMENT_PERM_Y'

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

◆ CACHE_ITEM_WITHOUT_RIGHTS

const CACHE_ITEM_WITHOUT_RIGHTS = 'IBLOCK_ELEMENT_PERM_N'

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

◆ CACHE_PARENT_PRODUCT_ACTIVE

const CACHE_PARENT_PRODUCT_ACTIVE = 'PARENT_PRODUCT_ACTIVE'

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

◆ CACHE_PRODUCT

const CACHE_PRODUCT = 'CATALOG_PRODUCT'

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

◆ CACHE_STORE

const CACHE_STORE = 'CATALOG_STORE'

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

◆ CACHE_STORE_PRODUCT

const CACHE_STORE_PRODUCT = 'CATALOG_STORE_PRODUCT'

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

◆ CACHE_USER_GROUPS

const CACHE_USER_GROUPS = 'USER_GROUPS'

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

◆ CACHE_USER_RIGHTS

const CACHE_USER_RIGHTS = 'USER_RIGHT'

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

◆ CACHE_VAT

const CACHE_VAT = 'VAT_INFO'

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

◆ CATALOG_PROVIDER_EMPTY_STORE_ID

const CATALOG_PROVIDER_EMPTY_STORE_ID = 0

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


Объявления и описания членов класса находятся в файле: