dolibarr 21.0.0-beta
|
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=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. | |
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=null, $notrigger=0) | |
Update next_update into database. | |
update_status ($last_status, $user=null, $notrigger=0) | |
Update last_status into database. | |
Public Attributes | |
$types = array(0, 1) | |
Updater types. | |
$update_min = 5 | |
Minimal update rate. | |
Class for price global variable updaters table.
Definition at line 32 of file price_global_variable_updater.class.php.
PriceGlobalVariableUpdater::__construct | ( | $db | ) |
Constructor.
Definition at line 106 of file price_global_variable_updater.class.php.
PriceGlobalVariableUpdater::checkParameters | ( | ) |
Checks if all parameters are in order.
Definition at line 370 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 119 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 283 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 184 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 354 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 335 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 439 of file price_global_variable_updater.class.php.
References dol_syslog().
PriceGlobalVariableUpdater::listUpdaters | ( | ) |
List all price global variables.
Definition at line 402 of file price_global_variable_updater.class.php.
References dol_syslog().
PriceGlobalVariableUpdater::process | ( | ) |
Handles the processing of this updater.
Definition at line 477 of file price_global_variable_updater.class.php.
References checkParameters(), dol_syslog(), getURLContent(), and type.
PriceGlobalVariableUpdater::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 221 of file price_global_variable_updater.class.php.
References checkParameters(), description, dol_syslog(), and type.
PriceGlobalVariableUpdater::update_next_update | ( | $next_update, | |
$user = null, | |||
$notrigger = 0 ) |
Update next_update into database.
int | $next_update | Next update to write |
?User | $user | User that modifies |
int<0,1> | $notrigger 0=launch triggers after, 1=disable triggers |
Definition at line 592 of file price_global_variable_updater.class.php.
References checkParameters(), and dol_syslog().
PriceGlobalVariableUpdater::update_status | ( | $last_status, | |
$user = null, | |||
$notrigger = 0 ) |
Update last_status into database.
string | $last_status | Status to write |
User | null | $user | User that modifies |
int | $notrigger | 0=launch triggers after, 1=disable triggers |
Definition at line 637 of file price_global_variable_updater.class.php.
References checkParameters(), and dol_syslog().