|
dolibarr
13.0.2
|
Class ProductCombinationLevel Used to represent a product combination Level. More...
Public Member Functions | |
| __construct (DoliDB $db) | |
| Constructor. More... | |
| fetch ($rowid) | |
| Retrieves a combination level by its rowid. More... | |
| fetchAll ($fk_product_attribute_combination, $fk_price_level=0) | |
| Retrieves combination price levels. More... | |
| fetchFormObj ($obj) | |
| assign vars form an stdclass like sql obj More... | |
| save () | |
| Save a price impact of a product combination for a price level. More... | |
| delete () | |
| delete More... | |
| deleteAllForCombination ($fk_product_attribute_combination) | |
| delete all for a combination More... | |
| clean ($fk_product_attribute_combination) | |
| Clean not needed price levels for a combination. More... | |
Static Public Member Functions | |
| static | createFromParent (DoliDB $db, ProductCombination $productCombination, $fkPriceLevel) |
| Create new Product Combination Price level from Parent. More... | |
Class ProductCombinationLevel Used to represent a product combination Level.
Definition at line 978 of file ProductCombination.class.php.
| ProductCombinationLevel::__construct | ( | DoliDB | $db | ) |
| 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 1209 of file ProductCombination.class.php.
References db.
|
static |
Create new Product Combination Price level from Parent.
| DoliDB | $db | Database handler |
| ProductCombination | $productCombination | Product combination |
| int | $fkPriceLevel | Price level |
Definition at line 1230 of file ProductCombination.class.php.
Referenced by ProductCombination\fetchCombinationPriceLevels().
| ProductCombinationLevel::delete | ( | ) |
delete
Definition at line 1179 of file ProductCombination.class.php.
References db.
| ProductCombinationLevel::deleteAllForCombination | ( | $fk_product_attribute_combination | ) |
delete all for a combination
| int | $fk_product_attribute_combination | Id of combination |
Definition at line 1194 of file ProductCombination.class.php.
References db.
| ProductCombinationLevel::fetch | ( | $rowid | ) |
Retrieves a combination level by its rowid.
| int | $rowid | Row id |
Definition at line 1037 of file ProductCombination.class.php.
References db, and 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 1058 of file ProductCombination.class.php.
References db.
| ProductCombinationLevel::fetchFormObj | ( | $obj | ) |
assign vars form an stdclass like sql obj
| int | $obj | Object resultset |
Definition at line 1095 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 1116 of file ProductCombination.class.php.
References db.