| 
    dolibarr 20.0.5
    
   | 
 
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 41 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::__construct | ( | DoliDB | $db | ) | 
Constructor.
Definition at line 93 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::__toString | ( | ) | 
Translates this class to a human-readable string.
Definition at line 103 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::create | ( | $user | ) | 
Create a ProductCombination2ValuePair.
Definition at line 123 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 185 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 146 of file ProductCombination2ValuePair.class.php.