dolibarr 21.0.0-beta
|
Class ProductCombinationLevel Used to represent a product combination Level. More...
Public Member Functions | |
__construct (DoliDB $db) | |
Constructor. | |
fetch ($rowid) | |
Retrieves a combination level by its rowid. | |
fetchAll ($fk_product_attribute_combination, $fk_price_level=0) | |
Retrieves combination price levels. | |
fetchFormObj ($obj) | |
Assign vars form an stdclass like sql obj. | |
save () | |
Save a price impact of a product combination for a price level. | |
delete () | |
delete | |
deleteAllForCombination ($fk_product_attribute_combination) | |
delete all for a combination | |
clean ($fk_product_attribute_combination) | |
Clean not needed price levels for a combination. | |
Static Public Member Functions | |
static | createFromParent (DoliDB $db, ProductCombination $productCombination, $fkPriceLevel) |
Create new Product Combination Price level from Parent. | |
Class ProductCombinationLevel Used to represent a product combination Level.
Definition at line 1053 of file ProductCombination.class.php.
ProductCombinationLevel::__construct | ( | DoliDB | $db | ) |
Constructor.
Definition at line 1111 of file ProductCombination.class.php.
ProductCombinationLevel::clean | ( | $fk_product_attribute_combination | ) |
Clean not needed price levels for a combination.
int | $fk_product_attribute_combination | Id of combination |
Definition at line 1297 of file ProductCombination.class.php.
References $conf, and getDolGlobalString().
|
static |
Create new Product Combination Price level from Parent.
DoliDB | $db | Database handler |
ProductCombination | $productCombination | Product combination |
int | $fkPriceLevel | Price level |
Definition at line 1318 of file ProductCombination.class.php.
Referenced by ProductCombination\fetchCombinationPriceLevels().
ProductCombinationLevel::delete | ( | ) |
delete
Definition at line 1267 of file ProductCombination.class.php.
ProductCombinationLevel::deleteAllForCombination | ( | $fk_product_attribute_combination | ) |
delete all for a combination
int | $fk_product_attribute_combination | Id of combination |
Definition at line 1282 of file ProductCombination.class.php.
ProductCombinationLevel::fetch | ( | $rowid | ) |
Retrieves a combination level by its rowid.
int | $rowid | Row id |
Definition at line 1122 of file ProductCombination.class.php.
References fetchFormObj().
ProductCombinationLevel::fetchAll | ( | $fk_product_attribute_combination, | |
$fk_price_level = 0 ) |
Retrieves combination price levels.
int | $fk_product_attribute_combination | Id of product combination |
int | $fk_price_level | The price level to fetch, use 0 for all |
Definition at line 1147 of file ProductCombination.class.php.
ProductCombinationLevel::fetchFormObj | ( | $obj | ) |
Assign vars form an stdclass like sql obj.
Object | $obj | Object resultset |
Definition at line 1180 of file ProductCombination.class.php.
Referenced by fetch().
ProductCombinationLevel::save | ( | ) |
Save a price impact of a product combination for a price level.
Definition at line 1201 of file ProductCombination.class.php.