\Fubber\DbTable

Represents tabular data from any database backend.

Summary

Methods
Properties
Constants
q()
trackId()
isInvalid()
getClientData()
all()
tableExpose()
allUnsafe()
loadUnsafe()
load()
delete()
save()
$_table
$_primaryKey
$_cols
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_table

$_table : 

Type

$_primaryKey

$_primaryKey : 

Type

$_cols

$_cols : 

Type

Methods

q()

q(string  $query, array  $vars = array()) : \Fubber\Db\TableSet

Interface for querying arbitrary date from various backends.

Table::q('SELECT nickname FROM User'); // All User rows, but we only fetch the nickname column.

Table::q('User'); // All User rows

Parameters

string $query
array $vars

Returns

\Fubber\Db\TableSet —

Returns

trackId()

trackId() 

isInvalid()

isInvalid() 

getClientData()

getClientData() 

all()

all() 

tableExpose()

tableExpose(  $rows) 

Parameters

$rows

allUnsafe()

allUnsafe() : \Fubber\Db\TableSet

Return an unfiltered TableSet - bypassing any security built into overriding the all()-method

Returns

\Fubber\Db\TableSet

loadUnsafe()

loadUnsafe() : \Fubber\Db\Table

Load a single row as an instance of the given class. Bypass any filtering built into the all()-method.

Returns

\Fubber\Db\Table

load()

load() 

Load a single instance of the given class.

delete()

delete() : boolean|integer

Delete this object

Returns

boolean|integer

save()

save() : boolean

Save any changes

Returns

boolean