\TriTanDatabase

User API: Database Class

Summary

Methods
Properties
Constants
__construct()
table()
ifNull()
$name
$options
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Table name.

Type

string

$options

$options : array

Type

array

Methods

__construct()

__construct(array  $options = array()) 

Constructor.

Parameters

array $options

table()

table(string  $name) : \TriTan\Laci\Collection

Database table.

Parameters

string $name

Database table name.

Returns

\TriTan\Laci\Collection —

Database object, false otherwise.

ifNull()

ifNull(string|integer  $var) : string|integer|null

Checks if a variable is null. If not null, check if integer or string.

Parameters

string|integer $var

Variable to check.

Returns

string|integer|null —

Returns null if empty otherwise a string or an integer.