AbstractTable
+ Inheritance diagram for AbstractTable:

Description

Uses ArrayAccess to produce Column instances.

Protected Properties

DB $db
 

Public Methods

 __construct (DB $db)
 
string __toString ()
 Returns the SQL reference qualifier (i.e. More...
 
Column[] getColumns ()
 Columns keyed by name/alias. More...
 
bool offsetExists ($column)
 
null Column offsetGet ($column)
 
void offsetSet ($offset, $value)
 Throws. More...
 
void offsetUnset ($name)
 Throws. More...
 

Constructor

◆ __construct()

__construct ( DB  $db)
Parameters
DB$db

Methods

◆ __toString()

string __toString ( )
abstract

Returns the SQL reference qualifier (i.e.

the table name)

Returns
string

Reimplemented in Select, and Table.

◆ getColumns()

Column [] getColumns ( )
abstract

Columns keyed by name/alias.

Returns
Column[]

Reimplemented in Select, and Table.

◆ offsetExists()

bool offsetExists (   $column)
Parameters
int | string$column
Returns
bool

◆ offsetGet()

null Column offsetGet (   $column)
abstract
Parameters
string$column
Returns
null|Column

Reimplemented in Select, and Table.

◆ offsetSet()

void offsetSet (   $offset,
  $value 
)
final

Throws.

Parameters
void$offset
void$value
Exceptions
Exception

◆ offsetUnset()

void offsetUnset (   $name)
final

Throws.

Parameters
void$name
Exceptions
Exception