ShowData
extends Data
in package
uses
Tag
FinalYes
Create, Read, Update and Delete actions on a database table.
Tags
Table of Contents
Properties
- $db : mixed
Methods
- __construct() : Connection
- listOrderByDate() : mixed
- orderDataByDate() : mixed
- read() : array<int, array<string, mixed>>
- Prepare and run a read query, then return its rows.
- getCloud() : mixed
- getTags() : mixed
Properties
$db
protected
static mixed
$db
Methods
__construct()
public
final __construct() : Connection
Tags
Return values
Connection —between PHP and a database server or and E_USER_ERROR.
listOrderByDate()
public
final listOrderByDate([mixed $edit = true ]) : mixed
Parameters
- $edit : mixed = true
Tags
orderDataByDate()
protected
final orderDataByDate([mixed $search = false ][, mixed $order = false ]) : mixed
Parameters
- $search : mixed = false
- $order : mixed = false
Tags
read()
Prepare and run a read query, then return its rows.
protected
final read(string $sql[, array<int, array{0: string, 1: mixed, 2: int, 3: int}>|false $param = false ]) : array<int, array<string, mixed>>
Parameters
- $sql : string
-
SQL query with bind placeholders.
- $param : array<int, array{0: string, 1: mixed, 2: int, 3: int}>|false = false
-
Bind parameters (each: [name, value, PDO type, length]), or false for none.
Return values
array<int, array<string, mixed>> —The result rows.
getCloud()
private
getCloud([mixed $cond = false ][, mixed $param = false ]) : mixed
Parameters
- $cond : mixed = false
- $param : mixed = false
Tags
getTags()
private
getTags(mixed $id) : mixed
Parameters
- $id : mixed