DB
extends Facade
in package
-------------------------------------------------------------------------------------------
Tags
Table of Contents
- $app : App
- $resolvedInstance : array<string|int, mixed>
- __callStatic() : mixed
- beginTransaction() :
- bindQuery() :
- clearResolvedInstances() : mixed
- clear
- close() :
- commit() :
- delete() :
- get() :
- getCol() :
- getRow() :
- getVar() :
- insert() :
- pdo() :
- rollBack() :
- selectDB() :
- setFacadeApplication() : mixed
- {@inheritDoc}
- stm() :
- table() :
- transaction() :
- update() :
- getFacadeAccessor() : string
- getFacadeRoot() : object|stdClass
- resolveFacadeInstance() : object
Properties
$app
protected
static App
$app
$resolvedInstance
protected
static array<string|int, mixed>
$resolvedInstance
Methods
__callStatic()
public
static __callStatic( $method, $args) : mixed
Parameters
Tags
Return values
mixed —beginTransaction()
public
static beginTransaction() :
Return values
—bindQuery()
public
static bindQuery(mixed $query, array<string|int, mixed> $bindings = null, array<string|int, mixed> $options = []) :
Parameters
- $query : mixed
- $bindings = null : array<string|int, mixed>
- $options = [] : array<string|int, mixed>
Return values
—clearResolvedInstances()
clear
public
static clearResolvedInstances() : mixed
Return values
mixed —close()
public
static close() :
Return values
—commit()
public
static commit() :
Return values
—delete()
public
static delete(string $query, array<string|int, mixed> $bindings = null) :
Parameters
- $query : string
- $bindings = null : array<string|int, mixed>
Return values
—get()
public
static get(string $query, array<string|int, mixed> $bindings = null, mixed $fetchStyle) :
Parameters
- $query : string
- $bindings = null : array<string|int, mixed>
- $fetchStyle : mixed
Return values
—getCol()
public
static getCol(string $query, array<string|int, mixed> $bindings = null, mixed $fetchStyle) :
Parameters
- $query : string
- $bindings = null : array<string|int, mixed>
- $fetchStyle : mixed
Return values
—getRow()
public
static getRow(string $query, array<string|int, mixed> $bindings = null, mixed $fetchStyle) :
Parameters
- $query : string
- $bindings = null : array<string|int, mixed>
- $fetchStyle : mixed
Return values
—getVar()
public
static getVar(string $query, array<string|int, mixed> $bindings = null) :
Parameters
- $query : string
- $bindings = null : array<string|int, mixed>
Return values
—insert()
public
static insert(string $query, array<string|int, mixed> $bindings = null) :
Parameters
- $query : string
- $bindings = null : array<string|int, mixed>
Return values
—pdo()
public
static pdo() :
Return values
—rollBack()
public
static rollBack() :
Return values
—selectDB()
public
static selectDB(string $database) :
Parameters
- $database : string
Return values
—setFacadeApplication()
{@inheritDoc}
public
static setFacadeApplication(App $app) : mixed
Parameters
- $app : App
Return values
mixed —stm()
public
static stm() :
Return values
—table()
public
static table(string $table = '') :
Parameters
- $table = '' : string
Return values
—transaction()
public
static transaction(Closure $callback, int $attempts = 1) :
Parameters
- $callback : Closure
- $attempts = 1 : int
Return values
—update()
public
static update(string $query, array<string|int, mixed> $bindings = null) :
Parameters
- $query : string
- $bindings = null : array<string|int, mixed>
Return values
—getFacadeAccessor()
protected
static getFacadeAccessor() : string
Return values
string —getFacadeRoot()
protected
static getFacadeRoot() : object|stdClass
Return values
object|stdClass —resolveFacadeInstance()
protected
static resolveFacadeInstance(string $mainClass) : object
Parameters
- $mainClass : string