dolibarr  7.0.0-beta
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

 __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 23 of file ProductCombination2ValuePair.class.php.

Member Function Documentation

ProductCombination2ValuePair::__toString ( )

Translates this class to a human-readable string.

Returns
string

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

ProductCombination2ValuePair::create ( )

Creates a product combination 2 value pair.

Returns
int <0 KO, >0 OK

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

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

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


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