|
dolibarr 25.0.0-alpha
|
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. | |
| fetch ($id) | |
| Retrieves a ProductCombination2ValuePair by its rowid. | |
| 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 109 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::__toString | ( | ) |
Translates this class to a human-readable string.
Definition at line 119 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::create | ( | $user | ) |
Create a ProductCombination2ValuePair.
Definition at line 139 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 239 of file ProductCombination2ValuePair.class.php.
| ProductCombination2ValuePair::fetch | ( | $id | ) |
Retrieves a ProductCombination2ValuePair by its rowid.
Required by fetchObjectByElement(), which calls fetch() on the class resolved for the element 'product_attribute_combination2val' without testing that the method exists.
| int | $id | Rowid of the pair |
Definition at line 165 of file ProductCombination2ValuePair.class.php.
References dol_syslog().
| ProductCombination2ValuePair::fetchByFkCombination | ( | $fk_combination | ) |
Retrieve all ProductCombination2ValuePair linked to a given ProductCombination ID.
| int | $fk_combination | ID of the ProductCombination |
Definition at line 200 of file ProductCombination2ValuePair.class.php.