|
dolibarr 21.0.0-beta
|
Class ProductCombination2ValuePair Used to represent the relation between a variant and its attributes. More...
Public Member Functions | |
| __construct (DoliDB $db) | |
| Constructor. | |
| __toString () | |
| Translates this class to a human-readable string. | |
| create ($user) | |
| Create a ProductCombination2ValuePair. | |
| fetchByFkCombination ($fk_combination) | |
| Retrieve all ProductCombination2ValuePair linked to a given ProductCombination ID. | |
| deleteByFkCombination ($fk_combination) | |
| Delete all ProductCombination2ValuePair linked to a given ProductCombination ID. | |
Class ProductCombination2ValuePair Used to represent the relation between a variant and its attributes.
Example: a product "shirt" has a variant "shirt XL white" linked to the attributes "size: XL" and "color: white". This is represented with two ProductCombination2ValuePair objects:
Definition at line 42 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::__construct | ( | DoliDB | $db | ) |
Constructor.
Definition at line 94 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::__toString | ( | ) |
Translates this class to a human-readable string.
Definition at line 104 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::create | ( | $user | ) |
Create a ProductCombination2ValuePair.
Definition at line 124 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::deleteByFkCombination | ( | $fk_combination | ) |
Delete all ProductCombination2ValuePair linked to a given ProductCombination ID.
| int | $fk_combination | ID of the ProductCombination |
Definition at line 186 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::fetchByFkCombination | ( | $fk_combination | ) |
Retrieve all ProductCombination2ValuePair linked to a given ProductCombination ID.
| int | $fk_combination | ID of the ProductCombination |
Definition at line 147 of file ProductCombination2ValuePair.class.php.