dolibarr  16.0.5
Public Member Functions | List of all members
ProductCombination2ValuePair Class Reference

Class ProductCombination2ValuePair Used to represent the relation between a product combination, a product attribute and a product attribute value. More...

Public Member Functions

 __construct (DoliDB $db)
 Constructor. More...
 
 __toString ()
 Translates this class to a human-readable string. More...
 
 create ()
 Creates a product combination 2 value pair. More...
 
 fetchByFkCombination ($fk_combination)
 Retrieves a product combination 2 value pair from its rowid. More...
 
 deleteByFkCombination ($fk_combination)
 Deletes a product combination 2 value pair. More...
 

Detailed Description

Class ProductCombination2ValuePair Used to represent the relation between a product combination, a product attribute and a product attribute value.

Definition at line 24 of file ProductCombination2ValuePair.class.php.

Constructor & Destructor Documentation

◆ __construct()

ProductCombination2ValuePair::__construct ( DoliDB  $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 61 of file ProductCombination2ValuePair.class.php.

References db.

Member Function Documentation

◆ __toString()

ProductCombination2ValuePair::__toString ( )

Translates this class to a human-readable string.

Returns
string

Definition at line 71 of file ProductCombination2ValuePair.class.php.

◆ create()

ProductCombination2ValuePair::create ( )

Creates a product combination 2 value pair.

Returns
int <0 KO, >0 OK

Definition at line 89 of file ProductCombination2ValuePair.class.php.

◆ deleteByFkCombination()

ProductCombination2ValuePair::deleteByFkCombination (   $fk_combination)

Deletes a product combination 2 value pair.

Parameters
int$fk_combinationRowid of the combination
Returns
int >0 OK <0 KO

Definition at line 151 of file ProductCombination2ValuePair.class.php.

◆ fetchByFkCombination()

ProductCombination2ValuePair::fetchByFkCombination (   $fk_combination)

Retrieves a product combination 2 value pair from its rowid.

Parameters
int$fk_combinationFk combination to search
Returns
int|ProductCombination2ValuePair[] -1 if KO

Definition at line 112 of file ProductCombination2ValuePair.class.php.


The documentation for this class was generated from the following file: