Documentation

dberrorlog
in package

Class dberrorlog

Represents a class for interacting with error logs in a database.

Tags
author

Lutz Boldt boldt@bitstore-online.de

Table of Contents

Properties

$tdblogs  : tab_dblogs

Methods

__construct()  : mixed
Class constructor.
__destruct()  : mixed
Destructor method.
all()  : array<string|int, mixed>|bool
Retrieves all data from the tdblogs table.
clear()  : bool
Deletes all data from the tdblogs table.
count()  : string
Retrieves the count of data from the tdblogs table.
insert()  : bool

Properties

Methods

__construct()

Class constructor.

public __construct() : mixed

Initializes an instance of the class by creating a new object of the "tab_dblogs" class and assigning it to the "tdblogs" property.

__destruct()

Destructor method.

public __destruct() : mixed

Unsets the $tdblogs property to free up memory before the object is destroyed.

all()

Retrieves all data from the tdblogs table.

public all() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool

Returns an array if the data retrieval is successful, otherwise returns false.

clear()

Deletes all data from the tdblogs table.

public clear() : bool
Return values
bool

Returns true if the data deletion is successful, otherwise returns false.

count()

Retrieves the count of data from the tdblogs table.

public count() : string
Return values
string

Returns the count of data as a string. If the count retrieval is successful, it returns the count as a string. If no data is found, it 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>
Return values
bool

        
On this page

Search results