◆ __construct()
◆ getLogs()
getLogs |
( |
array |
$params = [] , |
|
|
bool |
$count_only = false |
|
) |
| |
Retrieves logs.
$params is an array taking the following optionnal parameters:
- blog_id: Get logs belonging to given blog ID
- user_id: Get logs belonging to given user ID
- log_ip: Get logs belonging to given IP address
- log_table: Get logs belonging to given log table
- order: Order of results (default "ORDER BY log_dt DESC")
- limit: Limit parameter
- Parameters
-
array | $params | The parameters |
bool | $count_only | Count only resultats |
- Returns
- dcRecord The logs.
References dcCore\app().
◆ addLog()
Creates a new log. Takes a cursor as input and returns the new log ID.
- Parameters
-
- Returns
- integer
References dcCore\app(), and cursor\insert().
◆ delLogs()
delLogs |
( |
|
$id, |
|
|
bool |
$all = false |
|
) |
| |
Deletes a log.
- Parameters
-
mixed | $id | The identifier |
bool | $all | Remove all logs |
◆ LOG_TABLE_NAME
const LOG_TABLE_NAME = 'log' |
◆ $log_table
◆ $user_table
The documentation for this class was generated from the following file: