Logs
class Logs extends CrudObject (View source)
Logs class
Properties
string | $element | from CrudObject | |
string | $table_element | ||
array | $fetch_fields | from CrudObject | |
array | $date_fields | from CrudObject | |
string | $pk_name | ||
string | $ref_field_name | from CrudObject | |
array | $rows | from CrudObject | |
string | $triggers_prefix | from CrudObject |
Methods
Constructor
Load object in memory from database (wrapper for fetchAll function)
Update row(s) into database (wrapper for updateAll function)
Update all object rows into database
Delete row(s) in database (wrapper for deleteAll function)
Delete all object rows in database
Add log into database
Details
at line 40
__construct()
Constructor
in CrudObject at line 80
$this
setTableName($table_name)
Set table name
in CrudObject at line 94
int
create(array $data, int $notrigger = 1)
Create object into database
in CrudObject at line 154
int
fetch(int $id, string $ref = '')
Load object in memory from database
in CrudObject at line 214
int
fetchWhere(string $where)
Load object in memory from database (wrapper for fetchAll function)
in CrudObject at line 225
int
fetchAll(string $where = '')
Load all object entries in memory from database
in CrudObject at line 300
int
update(array $data, int $notrigger = 1)
Update object into database
in CrudObject at line 357
int
updateWhere(array $data, string $where, int $notrigger = 1)
Update row(s) into database (wrapper for updateAll function)
in CrudObject at line 370
int
updateAll(array $data, string $where = '', int $notrigger = 1)
Update all object rows into database
in CrudObject at line 420
int
delete(int $notrigger = 1)
Delete object in database
in CrudObject at line 471
int
deleteWhere(string $where, int $notrigger = 1)
Delete row(s) in database (wrapper for deleteAll function)
in CrudObject at line 483
int
deleteAll(string $where = '', int $notrigger = 1)
Delete all object rows in database
in CrudObject at line 549
protected int
deleteAllObjectLinked()
Delete all links between an object $this
in CrudObject at line 573
protected string
escape($value)
Escape field value
in CrudObject at line 584
protected int
run_triggers($action_suffix)
Run Dolibarr triggers (from other modules)
at line 59
int
add(object $object, string $action, int $notrigger = 1)
Add log into database