ParseTrait
Table of Contents
Methods
- all() : array<string|int, mixed>|null
- Returns all items from the CDatabase. If a callback is passed, it will be called on each item in the resultset
- delete() : PDOStatement|null
- where() : static
- runGet() : mixed
- runSelect() : array<string|int, mixed>|null
Methods
all()
Returns all items from the CDatabase. If a callback is passed, it will be called on each item in the resultset
public
all([callable|null $callback = null ]) : array<string|int, mixed>|null
Parameters
- $callback : callable|null = null
-
This is the receiver for the current resultset
Tags
Return values
array<string|int, mixed>|nulldelete()
public
delete(int|array<string|int, mixed>|string $where[, string|null $idField = 'id' ]) : PDOStatement|null
Parameters
- $where : int|array<string|int, mixed>|string
- $idField : string|null = 'id'
Tags
Return values
PDOStatement|nullwhere()
public
where(array<string|int, mixed> $where) : static
Parameters
- $where : array<string|int, mixed>
Return values
staticrunGet()
private
runGet() : mixed
runSelect()
private
runSelect(callable|null $callback) : array<string|int, mixed>|null
Parameters
- $callback : callable|null