systemlog
in package
Class systemlog
This class provides methods to interact with the system log.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructs a new instance of the class.
- __destruct() : void
- Destroys the object and releases any resources.
- all() : array<string|int, mixed>|bool
- Returns all items from the "tlogs" object.
- clear() : bool
- Clears all items from the "tlogs" object.
- count() : string
- Returns the count of items from the "tlogs" object as a string.
- insert() : bool
Properties
$tlogs
protected
tab_logs
$tlogs
Methods
__construct()
Constructs a new instance of the class.
public
__construct() : mixed
Initializes the "tlogs" object and assigns it to the $tlogs property. This constructor is called when creating a new instance of the class.
__destruct()
Destroys the object and releases any resources.
public
__destruct() : void
all()
Returns all items from the "tlogs" object.
public
all() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool —Returns an array of items from the "tlogs" object if successful, otherwise returns false.
clear()
Clears all items from the "tlogs" object.
public
clear() : bool
Return values
bool —Returns true if the "tlogs" object is cleared successfully, otherwise returns false.
count()
Returns the count of items from the "tlogs" object as a string.
public
count() : string
Return values
string —Returns the count of items from the "tlogs" object if successful, otherwise returns '0'.
insert()
public
insert(string $message, string $url, array<string|int, mixed> $atts) : bool
Parameters
- $message : string
- $url : string
- $atts : array<string|int, mixed>