dolibarr 19.0.4
PriceExpression Class Reference

Class for accesing price expression table. More...

Public Member Functions

 __construct ($db)
 Constructor.
 
 create ($user, $notrigger=0)
 Create object into database.
 
 fetch ($id)
 Load object in memory from the database.
 
 list_price_expression ()
 List all price expressions.
 
 find_title ($title)
 Returns any existing rowid with specified title.
 
 update ($user=0, $notrigger=0)
 Update object into database.
 
 delete (User $user, $notrigger=0)
 Delete object in database.
 
 initAsSpecimen ()
 Initialise object with example values Id must be 0 if object instance is a specimen.
 

Detailed Description

Class for accesing price expression table.

Definition at line 30 of file price_expression.class.php.

Constructor & Destructor Documentation

◆ __construct()

PriceExpression::__construct ( $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

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

Member Function Documentation

◆ create()

PriceExpression::create ( $user,
$notrigger = 0 )

Create object into database.

Parameters
User$userUser that creates
int$notrigger0=launch triggers after, 1=disable triggers
Returns
int Return integer <0 if KO, Id of created object if OK

Definition at line 78 of file price_expression.class.php.

References dol_syslog().

◆ delete()

PriceExpression::delete ( User $user,
$notrigger = 0 )

Delete object in database.

Parameters
User$userUser that deletes
int$notrigger0=launch triggers after, 1=disable triggers
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 283 of file price_expression.class.php.

References dol_syslog().

◆ fetch()

PriceExpression::fetch ( $id)

Load object in memory from the database.

Parameters
int$idId object
Returns
int Return integer < 0 if KO, 0 if OK but not found, > 0 if OK

Definition at line 132 of file price_expression.class.php.

References dol_syslog().

◆ find_title()

PriceExpression::find_title ( $title)

Returns any existing rowid with specified title.

Parameters
String$titleTitle of expression
Returns
int Return integer < 0 if KO, 0 if OK but not found, > 0 rowid

Definition at line 204 of file price_expression.class.php.

References dol_syslog().

◆ initAsSpecimen()

PriceExpression::initAsSpecimen ( )

Initialise object with example values Id must be 0 if object instance is a specimen.

Returns
void

Definition at line 323 of file price_expression.class.php.

◆ list_price_expression()

PriceExpression::list_price_expression ( )

List all price expressions.

Returns
array|int Array of price expressions, <0 if ko

Definition at line 168 of file price_expression.class.php.

References dol_syslog().

◆ update()

PriceExpression::update ( $user = 0,
$notrigger = 0 )

Update object into database.

Parameters
User$userUser that modifies
int$notrigger0=launch triggers after, 1=disable triggers
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 234 of file price_expression.class.php.

References dol_syslog().


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