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

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

static execAgent ()
static GetDiscountTypes ($boolFull=false)
static setSaleDiscountFilter ($priceTypesOnly=false)
static getUseBasePrice ()
static setUseBasePrice ($useBasePrice)
static CheckFields ($ACTION, &$arFields, $ID=0)
static Add ($arFields)
static Update ($ID, $arFields)
static SetCoupon ($coupon)
static GetCoupons ()
static EraseCoupon ($strCoupon)
static ClearCoupon ()
static SetCouponByManage ($intUserID, $strCoupon)
static GetCouponsByManage ($intUserID)
static EraseCouponByManage ($intUserID, $strCoupon)
static ClearCouponsByManage ($intUserID)
static OnCurrencyDelete ($Currency)
static OnGroupDelete ($GroupID)
static GenerateDataFile ($ID)
static ClearFile ($ID, $strDataFileName=false)
static GetDiscountByPrice ($productPriceID, $arUserGroups=array(), $renewal="N", $siteID=false, $arDiscountCoupons=false)
static GetDiscountByProduct ($productID=0, $arUserGroups=array(), $renewal="N", $arCatalogGroups=array(), $siteID=false, $arDiscountCoupons=false)
static HaveCoupons ($ID, $excludeID=0)
static OnSetCouponList ($intUserID, $arCoupons, $arModules)
static OnClearCouponList ($intUserID, $arCoupons, $arModules)
static OnDeleteCouponList ($intUserID, $arModules)
static GetDiscountForProduct ($arProduct, $arParams=false)
static GetRestrictions ($arParams, $boolKeys=true, $boolRevert=true)
static CheckDiscount ($arProduct, $arDiscount)
static applyDiscountList ($price, $currency, &$discountList)
static calculateDiscountList ($priceData, $currency, &$discountList, $getWithVat=true)
static getDiscountDescription (array $discount)
static SetDiscountFilterCache ($arDiscountIDs, $arCatalogGroups, $arUserGroups)
static SetAllDiscountFilterCache ($arDiscountCache, $boolNeedClear=true)
static GetDiscountFilterCache ($arCatalogGroups, $arUserGroups)
static IsExistsDiscountFilterCache ($arCatalogGroups, $arUserGroups)
static GetDiscountFilterCacheByKey ($strCacheKey)
static IsExistsDiscountFilterCacheByKey ($strCacheKey)
static GetDiscountFilterCacheKey ($arCatalogGroups, $arUserGroups, $boolNeedClear=true)
static SetDiscountResultCache ($arDiscountList, $arDiscountIDs, $strSiteID, $strRenewal)
static SetAllDiscountResultCache ($arDiscountResultCache)
static GetDiscountResultCacheKey ($arDiscountIDs, $strSiteID, $strRenewal, $boolNeedClear=true)
static SetDiscountProductCache ($arItem, $arParams=array())
static getCachedProductData ($productId)
static SetProductSectionsCache ($arItemIDs)
static SetProductPropertiesCache ($intProductID, $arProps)
static ClearDiscountCache ($arTypes)
static isUsedSaleDiscountOnly ()

Поля данных

const TYPE_PERCENT = 'P'
const TYPE_FIX = 'F'
const TYPE_SALE = 'S'
const ENTITY_ID = 0
const CURRENT_FORMAT = 2
const OLD_FORMAT = 1

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

static getAllUserGroups ()
static __GenerateFields (&$arProduct, $arParams=false)
static __GetSectionList ($intIBlockID, $intProductID)
static __ConvertProperties (&$arProduct, &$arProps, $arParams=false)
static __GenerateParent (&$product, $sku)
static __ParseArrays (&$arFields)
static __CheckOneEntity (&$arFields, $strEntityID)
static __ArrayMultiple ($arOrder, &$arResult, $arTuple, $arTemp=array())
static __Unpack ($arProduct, $strUnpack)
static __ConvertOldConditions ($strAction, &$arFields)
static __ConvertOldOneEntity (&$arFields, $strEntityID)
static __AddOldOneEntity (&$arConditions, $strCondID, $arEntityValues, $boolOneEntity)
static __GetConditionValues (&$arFields)
static __GetOldOneEntity (&$arFields, &$arCondList, $strEntityID, $strCondID)
static __UpdateOldOneEntity ($intID, &$arFields, $arParams, $boolUpdate)
static primaryDiscountFilter ($price, $currency, &$discountList, &$priceDiscountList, &$accumulativeDiscountList)
static calculatePriorityLevel ($basePrice, $price, $currency, &$discountList, &$resultDiscount)
static calculateDiscSave ($basePrice, $price, $currency, &$discsaveList, &$resultDiscount)
static clearFields ($value)
static initDiscountSettings ()

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

static $arCacheProduct = array()
static $arCacheDiscountFilter = array()
static $arCacheDiscountResult = array()
static $arCacheProductSectionChain = array()
static $arCacheProductSections = array()
static $arCacheProductProperties = array()
static $cacheDiscountHandlers = array()
static $usedModules = array()
static $existCouponsManager = null
static $useSaleDiscount = null
static $getPriceTypesOnly = false
static $getPercentFromBasePrice = null

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

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

Методы

◆ __AddOldOneEntity()

__AddOldOneEntity ( & $arConditions,
$strCondID,
$arEntityValues,
$boolOneEntity )
staticprotected

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

◆ __ArrayMultiple()

__ArrayMultiple ( $arOrder,
& $arResult,
$arTuple,
$arTemp = array() )
staticprotected

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

◆ __CheckOneEntity()

__CheckOneEntity ( & $arFields,
$strEntityID )
staticprotected

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

◆ __ConvertOldConditions()

__ConvertOldConditions ( $strAction,
& $arFields )
staticprotected

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

◆ __ConvertOldOneEntity()

__ConvertOldOneEntity ( & $arFields,
$strEntityID )
staticprotected

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

◆ __ConvertProperties()

__ConvertProperties ( & $arProduct,
& $arProps,
$arParams = false )
staticprotected
Аргументы
array$arProduct
array$arProps
bool | array$arParams

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

◆ __GenerateFields()

__GenerateFields ( & $arProduct,
$arParams = false )
staticprotected
Аргументы
array$arProduct
bool | array$arParams
Возвращает
bool

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

◆ __GenerateParent()

__GenerateParent ( & $product,
$sku )
staticprotected

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

◆ __GetConditionValues()

__GetConditionValues ( & $arFields)
staticprotected

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

◆ __GetOldOneEntity()

__GetOldOneEntity ( & $arFields,
& $arCondList,
$strEntityID,
$strCondID )
staticprotected

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

◆ __GetSectionList()

__GetSectionList ( $intIBlockID,
$intProductID )
staticprotected

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

◆ __ParseArrays()

__ParseArrays ( & $arFields)
staticprotected

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

◆ __Unpack()

__Unpack ( $arProduct,
$strUnpack )
staticprotected
Аргументы
$arProduct@noinspection PhpUnusedParameterInspection

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

◆ __UpdateOldOneEntity()

__UpdateOldOneEntity ( $intID,
& $arFields,
$arParams,
$boolUpdate )
staticprotected

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

◆ Add()

Add ( $arFields)
static

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

◆ applyDiscountList()

applyDiscountList ( $price,
$currency,
& $discountList )
static

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

◆ calculateDiscountList()

calculateDiscountList ( $priceData,
$currency,
& $discountList,
$getWithVat = true )
static

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

◆ calculateDiscSave()

calculateDiscSave ( $basePrice,
$price,
$currency,
& $discsaveList,
& $resultDiscount )
staticprotected

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

◆ calculatePriorityLevel()

calculatePriorityLevel ( $basePrice,
$price,
$currency,
& $discountList,
& $resultDiscount )
staticprotected

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

◆ CheckDiscount()

CheckDiscount ( $arProduct,
$arDiscount )
static

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

◆ CheckFields()

CheckFields ( $ACTION,
& $arFields,
$ID = 0 )
static

@global CMain $APPLICATION

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

◆ ClearCoupon()

ClearCoupon ( )
static
См. также
CCatalogDiscountCoupon\ClearCoupon()
Возвращает
void

@noinspection PhpDeprecationInspection

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

◆ ClearCouponsByManage()

ClearCouponsByManage ( $intUserID)
static
См. также
CCatalogDiscountCoupon\ClearCouponsByManage()
Аргументы
int$intUserIDUser id.
Возвращает
bool

@noinspection PhpDeprecationInspection

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

◆ ClearDiscountCache()

ClearDiscountCache ( $arTypes)
static

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

◆ clearFields()

clearFields ( $value)
staticprotected

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

◆ ClearFile()

ClearFile ( $ID,
$strDataFileName = false )
static
Аргументы
int$ID
bool | string$strDataFileName
Возвращает
void

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

◆ EraseCoupon()

EraseCoupon ( $strCoupon)
static
См. также
CCatalogDiscountCoupon\EraseCoupon()
Аргументы
string$strCoupon
Возвращает
bool

@noinspection PhpDeprecationInspection

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

◆ EraseCouponByManage()

EraseCouponByManage ( $intUserID,
$strCoupon )
static
См. также
CCatalogDiscountCoupon\EraseCouponByManage()
Аргументы
int$intUserID
string$strCoupon
Возвращает
bool

@noinspection PhpDeprecationInspection

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

◆ execAgent()

execAgent ( )
static
Возвращает
string

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

◆ GenerateDataFile()

GenerateDataFile ( $ID)
static
Аргументы
int$ID
Возвращает
void

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

◆ getAllUserGroups()

getAllUserGroups ( )
staticprotected

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

◆ getCachedProductData()

getCachedProductData ( $productId)
static

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

◆ GetCoupons()

GetCoupons ( )
static
См. также
CCatalogDiscountCoupon\GetCoupons()
Возвращает
array

@noinspection PhpDeprecationInspection

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

◆ GetCouponsByManage()

GetCouponsByManage ( $intUserID)
static
См. также
CCatalogDiscountCoupon\GetCouponsByManage()
Аргументы
int$intUserID
Возвращает
array

@noinspection PhpDeprecationInspection

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

◆ GetDiscountByPrice()

GetDiscountByPrice ( $productPriceID,
$arUserGroups = array(),
$renewal = "N",
$siteID = false,
$arDiscountCoupons = false )
static

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

◆ GetDiscountByProduct()

GetDiscountByProduct ( $productID = 0,
$arUserGroups = array(),
$renewal = "N",
$arCatalogGroups = array(),
$siteID = false,
$arDiscountCoupons = false )
static

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

◆ getDiscountDescription()

getDiscountDescription ( array $discount)
static

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

◆ GetDiscountFilterCache()

GetDiscountFilterCache ( $arCatalogGroups,
$arUserGroups )
static

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

◆ GetDiscountFilterCacheByKey()

GetDiscountFilterCacheByKey ( $strCacheKey)
static

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

◆ GetDiscountFilterCacheKey()

GetDiscountFilterCacheKey ( $arCatalogGroups,
$arUserGroups,
$boolNeedClear = true )
static

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

◆ GetDiscountForProduct()

GetDiscountForProduct ( $arProduct,
$arParams = false )
static
Аргументы
array$arProduct
bool | array$arParams
Возвращает
array

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

◆ GetDiscountResultCacheKey()

GetDiscountResultCacheKey ( $arDiscountIDs,
$strSiteID,
$strRenewal,
$boolNeedClear = true )
static

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

◆ GetDiscountTypes()

GetDiscountTypes ( $boolFull = false)
static

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

◆ GetRestrictions()

GetRestrictions ( $arParams,
$boolKeys = true,
$boolRevert = true )
static

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

◆ getUseBasePrice()

getUseBasePrice ( )
static

Return calculate discount percent mode.

Возвращает
bool

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

◆ HaveCoupons()

HaveCoupons ( $ID,
$excludeID = 0 )
static

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

◆ initDiscountSettings()

initDiscountSettings ( )
staticprotected

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

◆ IsExistsDiscountFilterCache()

IsExistsDiscountFilterCache ( $arCatalogGroups,
$arUserGroups )
static

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

◆ IsExistsDiscountFilterCacheByKey()

IsExistsDiscountFilterCacheByKey ( $strCacheKey)
static

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

◆ isUsedSaleDiscountOnly()

isUsedSaleDiscountOnly ( )
static

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

◆ OnClearCouponList()

OnClearCouponList ( $intUserID,
$arCoupons,
$arModules )
static
См. также
CCatalogDiscountCoupon\OnClearCouponList()
Аргументы
int$intUserID
array | string$arCoupons
array$arModules
Возвращает
bool

@noinspection PhpDeprecationInspection

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

◆ OnCurrencyDelete()

OnCurrencyDelete ( $Currency)
static

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

◆ OnDeleteCouponList()

OnDeleteCouponList ( $intUserID,
$arModules )
static
См. также
CCatalogDiscountCoupon\OnDeleteCouponList()
Аргументы
int$intUserID
array$arModules
Возвращает
bool

@noinspection PhpDeprecationInspection

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

◆ OnGroupDelete()

OnGroupDelete ( $GroupID)
static

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

◆ OnSetCouponList()

OnSetCouponList ( $intUserID,
$arCoupons,
$arModules )
static
См. также
CCatalogDiscountCoupon\OnSetCouponList()
Аргументы
int$intUserID
array | string$arCoupons
array$arModules
Возвращает
bool

@noinspection PhpDeprecationInspection

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

◆ primaryDiscountFilter()

primaryDiscountFilter ( $price,
$currency,
& $discountList,
& $priceDiscountList,
& $accumulativeDiscountList )
staticprotected

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

◆ SetAllDiscountFilterCache()

SetAllDiscountFilterCache ( $arDiscountCache,
$boolNeedClear = true )
static

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

◆ SetAllDiscountResultCache()

SetAllDiscountResultCache ( $arDiscountResultCache)
static

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

◆ SetCoupon()

SetCoupon ( $coupon)
static
См. также
CCatalogDiscountCoupon\SetCoupon()
Аргументы
string$coupon
Возвращает
bool

@noinspection PhpDeprecationInspection

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

◆ SetCouponByManage()

SetCouponByManage ( $intUserID,
$strCoupon )
static
См. также
CCatalogDiscountCoupon\SetCouponByManage()
Аргументы
int$intUserID
string$strCoupon
Возвращает
bool

@noinspection PhpDeprecationInspection

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

◆ SetDiscountFilterCache()

SetDiscountFilterCache ( $arDiscountIDs,
$arCatalogGroups,
$arUserGroups )
static

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

◆ SetDiscountProductCache()

SetDiscountProductCache ( $arItem,
$arParams = array() )
static

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

◆ SetDiscountResultCache()

SetDiscountResultCache ( $arDiscountList,
$arDiscountIDs,
$strSiteID,
$strRenewal )
static

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

◆ SetProductPropertiesCache()

SetProductPropertiesCache ( $intProductID,
$arProps )
static

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

◆ SetProductSectionsCache()

SetProductSectionsCache ( $arItemIDs)
static

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

◆ setSaleDiscountFilter()

setSaleDiscountFilter ( $priceTypesOnly = false)
static

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

◆ setUseBasePrice()

setUseBasePrice ( $useBasePrice)
static

Set calculate discount percent mode.

Аргументы
bool$useBasePriceSet calculate discount percent mode.
Возвращает
void

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

◆ Update()

Update ( $ID,
$arFields )
static

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

Поля

◆ $arCacheDiscountFilter

$arCacheDiscountFilter = array()
staticprotected

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

◆ $arCacheDiscountResult

$arCacheDiscountResult = array()
staticprotected

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

◆ $arCacheProduct

$arCacheProduct = array()
staticprotected

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

◆ $arCacheProductProperties

$arCacheProductProperties = array()
staticprotected

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

◆ $arCacheProductSectionChain

$arCacheProductSectionChain = array()
staticprotected

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

◆ $arCacheProductSections

$arCacheProductSections = array()
staticprotected

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

◆ $cacheDiscountHandlers

$cacheDiscountHandlers = array()
staticprotected

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

◆ $existCouponsManager

$existCouponsManager = null
staticprotected

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

◆ $getPercentFromBasePrice

$getPercentFromBasePrice = null
staticprotected

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

◆ $getPriceTypesOnly

$getPriceTypesOnly = false
staticprotected

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

◆ $usedModules

$usedModules = array()
staticprotected

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

◆ $useSaleDiscount

$useSaleDiscount = null
staticprotected

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

◆ CURRENT_FORMAT

const CURRENT_FORMAT = 2

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

◆ ENTITY_ID

const ENTITY_ID = 0

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

◆ OLD_FORMAT

const OLD_FORMAT = 1

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

◆ TYPE_FIX

const TYPE_FIX = 'F'

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

◆ TYPE_PERCENT

const TYPE_PERCENT = 'P'

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

◆ TYPE_SALE

const TYPE_SALE = 'S'

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


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