Data
extends Crud
in package
Create, Read, Update and Delete actions on a database table.
Tags
Table of Contents
Properties
- $db : mixed
- $add : mixed
- $hlang : mixed
- $hlink : mixed
- $htype : mixed
- $id : mixed
- $lang : mixed
- $mod : mixed
- $text : mixed
- $title : mixed
- $type : mixed
- $user : mixed
Methods
- __construct() : Connection
- orderDataByDate() : mixed
- read() : array<int, array<string, mixed>>
- Prepare and run a read query, then return its rows.
- deleteData() : mixed
- readData() : mixed
- saveData() : mixed
Properties
$db
protected
static mixed
$db
$add
private
mixed
$add
$hlang
private
mixed
$hlang
$hlink
private
mixed
$hlink
$htype
private
mixed
$htype
$id
private
mixed
$id
$lang
private
mixed
$lang
$mod
private
mixed
$mod
$text
private
mixed
$text
$title
private
mixed
$title
$type
private
mixed
$type
$user
private
mixed
$user
Methods
__construct()
public
final __construct() : Connection
Tags
Return values
Connection —between PHP and a database server or and E_USER_ERROR.
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.
deleteData()
private
deleteData() : mixed
Tags
readData()
private
readData(mixed $cond, mixed $param) : mixed
Parameters
- $cond : mixed
- $param : mixed
Tags
saveData()
private
saveData() : mixed