\Report

Report class

Saving logs to DB

Summary

Methods
Properties
Constants
__construct()
getData()
getID()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$report_table
$id
$data
N/A

Properties

$report_table

$report_table : string

Type

string — DB table for logs

$id

$id : boolean|array

Type

boolean|array — Report DB ID

$data

$data : boolean|array

Type

boolean|array — Data to be saved

Methods

__construct()

__construct(array  $data = array()) : boolean

New report

Write logs to DB

Parameters

array $data

Data to save

Throws

\apiException
  • [104] Failed to write log

Returns

boolean —

If true - success

getData()

getData() : array|boolean

Get data

Get report data

Returns

array|boolean —

Saved data. If false - no data

getID()

getID() : integer|boolean

Get Report ID

Unique ID of just saved report

Returns

integer|boolean —

Report ID. If false - Report error