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

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

 __construct (int $productId, float $quantity)
 
 getProductId ()
 
 getQuantity ()
 
 getPrice ()
 

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

static initBasePrice (int ... $productId)
 
static setPrice (int $productId, float $productPrice)
 

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

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

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

◆ __construct()

__construct ( int $productId,
float $quantity )

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

Методы

◆ getPrice()

getPrice ( )

Return float value of product price
if price was initialized by setPrice method, it returns it
otherwise it will try to initialize a base price of a product. On failure, it will return 0

Возвращает
float

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

◆ getProductId()

getProductId ( )

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

◆ getQuantity()

getQuantity ( )

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

◆ initBasePrice()

static initBasePrice ( int ... $productId)
static

Initialize base prices of products with id $productId in base currency

Аргументы
int...$productId ids of products
Возвращает
void
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ setPrice()

static setPrice ( int $productId,
float $productPrice )
static

Set price of product.
Use it if you need to set up a custom price of product.

Аргументы
int$productId
float$productPrice
Возвращает
void

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