dolibarr  19.0.0-dev
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 ($user)
 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 23 of file ProductCombination2ValuePair.class.php.

Constructor & Destructor Documentation

◆ __construct()

ProductCombination2ValuePair::__construct ( DoliDB  $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

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

Member Function Documentation

◆ __toString()

ProductCombination2ValuePair::__toString ( )

Translates this class to a human-readable string.

Returns
string

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

◆ create()

ProductCombination2ValuePair::create (   $user)

Creates a product combination 2 value pair.

Parameters
User$userUser that create
Returns
int <0 KO, >0 OK

Definition at line 100 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 162 of file ProductCombination2ValuePair.class.php.

References $sql.

◆ 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 123 of file ProductCombination2ValuePair.class.php.

References $sql.


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