|
dolibarr
x.y.z
|
Class for price global variable updaters table. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. More... | |
| create ($user, $notrigger=0) | |
| Create object into database. More... | |
| fetch ($id) | |
| Load object in memory from the database. More... | |
| update ($user=0, $notrigger=0) | |
| Update object into database. More... | |
| delete ($rowid, $user, $notrigger=0) | |
| Delete object in database. More... | |
| initAsSpecimen () | |
| Initialise object with example values Id must be 0 if object instance is a specimen. More... | |
| getLastUpdated () | |
| Returns the last updated time in string html format, returns "never" if its less than 1. More... | |
| checkParameters () | |
| Checks if all parameters are in order. More... | |
| listUpdaters () | |
| List all price global variables. More... | |
| listPendingUpdaters () | |
| List all updaters which need to be processed. More... | |
| process () | |
| Handles the processing of this updater. More... | |
| update_next_update ($next_update, $user=0, $notrigger=0) | |
| Update next_update into database. More... | |
| update_status ($last_status, $user=0, $notrigger=0) | |
| Update last_status into database. More... | |
Public Attributes | |
| $types = array(0, 1) | |
| Updater types. | |
| $update_min = 5 | |
| Minimal update rate. | |
| $update_interval | |
| Interval in mins. | |
| $next_update | |
| Next update timestamp. | |
Class for price global variable updaters table.
Definition at line 30 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::__construct | ( | $db | ) |
Constructor.
| DoliDb | $db | Database handler |
Definition at line 83 of file price_global_variable_updater.class.php.
References db.
| PriceGlobalVariableUpdater::checkParameters | ( | ) |
Checks if all parameters are in order.
Definition at line 340 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::create | ( | $user, | |
$notrigger = 0 |
|||
| ) |
Create object into database.
Definition at line 96 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::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 256 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::fetch | ( | $id | ) |
Load object in memory from the database.
| int | $id | Id object |
Definition at line 158 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::getLastUpdated | ( | ) |
Returns the last updated time in string html format, returns "never" if its less than 1.
Definition at line 324 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::initAsSpecimen | ( | ) |
Initialise object with example values Id must be 0 if object instance is a specimen.
Definition at line 307 of file price_global_variable_updater.class.php.
References description, and type.
| PriceGlobalVariableUpdater::listPendingUpdaters | ( | ) |
List all updaters which need to be processed.
Definition at line 409 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::listUpdaters | ( | ) |
List all price global variables.
Definition at line 372 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::process | ( | ) |
Handles the processing of this updater.
Definition at line 447 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::update | ( | $user = 0, |
|
$notrigger = 0 |
|||
| ) |
Update object into database.
Definition at line 195 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::update_next_update | ( | $next_update, | |
$user = 0, |
|||
$notrigger = 0 |
|||
| ) |
Update next_update into database.
| string | $next_update | Next update to write |
| User | $user | User that modifies |
| int | $notrigger | 0=launch triggers after, 1=disable triggers |
Definition at line 562 of file price_global_variable_updater.class.php.
| PriceGlobalVariableUpdater::update_status | ( | $last_status, | |
$user = 0, |
|||
$notrigger = 0 |
|||
| ) |
Update last_status into database.
| string | $last_status | Status to write |
| User | $user | User that modifies |
| int | $notrigger | 0=launch triggers after, 1=disable triggers |
Definition at line 606 of file price_global_variable_updater.class.php.