dolibarr 18.0.6
|
Class for price global variable updaters 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=0, $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. | |
getLastUpdated () | |
Returns the last updated time in string html format, returns "never" if its less than 1. | |
checkParameters () | |
Checks if all parameters are in order. | |
listUpdaters () | |
List all price global variables. | |
listPendingUpdaters () | |
List all updaters which need to be processed. | |
process () | |
Handles the processing of this updater. | |
update_next_update ($next_update, $user=0, $notrigger=0) | |
Update next_update into database. | |
update_status ($last_status, $user=0, $notrigger=0) | |
Update last_status into database. | |
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.
PriceGlobalVariableUpdater::checkParameters | ( | ) |
Checks if all parameters are in order.
Definition at line 340 of file price_global_variable_updater.class.php.
References $update_min, description, and type.
Referenced by create(), fetch(), process(), update(), update_next_update(), and update_status().
PriceGlobalVariableUpdater::create | ( | $user, | |
$notrigger = 0 ) |
Create object into database.
Definition at line 96 of file price_global_variable_updater.class.php.
References checkParameters(), description, dol_syslog(), and type.
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.
References dol_syslog().
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.
References checkParameters(), description, dol_syslog(), and type.
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.
References dol_print_date().
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.
References dol_syslog().
PriceGlobalVariableUpdater::listUpdaters | ( | ) |
List all price global variables.
Definition at line 372 of file price_global_variable_updater.class.php.
References dol_syslog().
PriceGlobalVariableUpdater::process | ( | ) |
Handles the processing of this updater.
Definition at line 447 of file price_global_variable_updater.class.php.
References checkParameters(), dol_syslog(), getURLContent(), and type.
PriceGlobalVariableUpdater::update | ( | $user = 0, | |
$notrigger = 0 ) |
Update object into database.
Definition at line 195 of file price_global_variable_updater.class.php.
References checkParameters(), description, dol_syslog(), and type.
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.
References $next_update, checkParameters(), and dol_syslog().
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.
References checkParameters(), and dol_syslog().