Открытые члены | |
__construct (int $productId, float $quantity) | |
getProductId () | |
getQuantity () | |
getPrice () | |
Открытые статические члены | |
static | initBasePrice (int ... $productId) |
static | setPrice (int $productId, float $productPrice) |
См. определение в файле productinfo.php строка 11
__construct | ( | int | $productId, |
float | $quantity | ||
) |
См. определение в файле productinfo.php строка 19
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
См. определение в файле productinfo.php строка 41
getProductId | ( | ) |
См. определение в файле productinfo.php строка 25
getQuantity | ( | ) |
См. определение в файле productinfo.php строка 30
|
static |
Initialize base prices of products with id $productId in base currency
int | ...$productId ids of products |
Bitrix\Main\ArgumentException
Bitrix\Main\ObjectPropertyException
Bitrix\Main\SystemException
См. определение в файле productinfo.php строка 64
|
static |
Set price of product.
Use it if you need to set up a custom price of product.
int | $productId | |
float | $productPrice |
См. определение в файле productinfo.php строка 109