Xeed
final class Xeed implements ArrayAccess
Database Object.
Constants
AVAILABLE_DATABASES |
Array of available databases. |
Properties
$pdo | PDO Instance. |
||
$driver | Driver name. eg. 'mysql' or 'sqlite' |
Methods
Establish connection
Singleton factory method.
prevent from being unserialized (which would create a second instance of it)
Get new instance
Get attached tables.
Get a specific attached table.
Implements ArrayAccess interface.
Implements ArrayAccess interface.
Implements ArrayAccess interface.
Implements ArrayAccess interface.
Get a tables array.
Details
at line 58
Xeed
addConnection(array $connection)
Establish connection
at line 118
static Xeed
getInstance()
Singleton factory method.
at line 154
__wakeup()
prevent from being unserialized (which would create a second instance of it)
at line 164
static Xeed
make()
Singleton factory method without connection.
at line 178
static Xeed
getNewInstance()
Get new instance
at line 191
Xeed
attach(string|null $table = null)
Attach tables and columns.
at line 203
array
getTables()
Get attached tables.
at line 213
Table|null
getTable(string $table)
Get a specific attached table.
at line 228
bool
offsetExists(mixed $offset)
Implements ArrayAccess interface.
at line 239
mixed
offsetGet(mixed $offset)
Implements ArrayAccess interface.
at line 250
void
offsetSet(mixed $offset, mixed $value)
Implements ArrayAccess interface.
at line 262
void
offsetUnset(mixed $offset)
Implements ArrayAccess interface.
at line 272
array
toArray()
Get a tables array.