|
dolibarr 20.0.5
|
Class for accessing price global variables 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. | |
| update ($user=null, $notrigger=0) | |
| Update object into database. | |
| delete ($rowid, $user, $notrigger=0) | |
| Delete object in database. | |
| initAsSpecimen () | |
| Initialise object with example values Id must be 0 if object instance is a specimen. | |
| checkParameters () | |
| Checks if all parameters are in order. | |
| listGlobalVariables () | |
| List all price global variables. | |
Class for accessing price global variables table.
Definition at line 31 of file price_global_variable.class.php.
| PriceGlobalVariable::__construct | ( | $db | ) |
Constructor.
Definition at line 72 of file price_global_variable.class.php.
| PriceGlobalVariable::checkParameters | ( | ) |
Checks if all parameters are in order.
Definition at line 301 of file price_global_variable.class.php.
References description.
| PriceGlobalVariable::create | ( | $user, | |
| $notrigger = 0 ) |
Create object into database.
Definition at line 85 of file price_global_variable.class.php.
References checkParameters(), description, and dol_syslog().
| PriceGlobalVariable::delete | ( | $rowid, | |
| $user, | |||
| $notrigger = 0 ) |
Delete object in database.
| int | $rowid | Row id of global variable |
| User | $user | User that deletes |
| int | $notrigger | 0=launch triggers after, 1=disable triggers |
Definition at line 236 of file price_global_variable.class.php.
References dol_syslog().
| PriceGlobalVariable::fetch | ( | $id | ) |
Load object in memory from the database.
| int | $id | Id object |
Definition at line 144 of file price_global_variable.class.php.
References checkParameters(), description, and dol_syslog().
| PriceGlobalVariable::initAsSpecimen | ( | ) |
Initialise object with example values Id must be 0 if object instance is a specimen.
Definition at line 286 of file price_global_variable.class.php.
References description.
| PriceGlobalVariable::listGlobalVariables | ( | ) |
List all price global variables.
Definition at line 322 of file price_global_variable.class.php.
References dol_syslog().
| PriceGlobalVariable::update | ( | $user = null, | |
| $notrigger = 0 ) |
Update object into database.
| User | null | $user | User that modifies |
| int | $notrigger | 0=launch triggers after, 1=disable triggers |
Definition at line 177 of file price_global_variable.class.php.
References checkParameters(), description, and dol_syslog().