Class DibiFluent
dibi SQL builder via fluent interfaces. EXPERIMENTAL!
- DibiObject
-
DibiFluent
implements
IDataSource
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
final public
boolean
|
|
final public
string
|
|
final public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
array
|
|
public
array
|
|
public
array
|
#
fetchPairs( string $key = NULL, string $value = NULL )
Fetches all records from table like $key => $value pairs. |
public
|
#
getIterator( integer $offset = NULL, integer $limit = NULL )
Required by the IteratorAggregate interface. |
public
boolean
|
|
public
integer
|
|
public
|
|
final public
string
|
|
protected
array
|
|
public
|
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getClass(),
getReflection()
|
boolean
|
REMOVE
|
FALSE |
public static
array
|
$masks | array(
'SELECT' => array('SELECT', 'DISTINCT', 'FROM', 'WHERE', 'GROUP BY',
'HAVING', 'ORDER BY', 'LIMIT', 'OFFSET'),
'UPDATE' => array('UPDATE', 'SET', 'WHERE', 'ORDER BY', 'LIMIT'),
'INSERT' => array('INSERT', 'INTO', 'VALUES', 'SELECT'),
'DELETE' => array('DELETE', 'FROM', 'USING', 'WHERE', 'ORDER BY', 'LIMIT'),
) |
|
public static
array
|
$modifiers | array(
'SELECT' => '%n',
'FROM' => '%n',
'IN' => '%in',
'VALUES' => '%l',
'SET' => '%a',
'WHERE' => '%and',
'HAVING' => '%and',
'ORDER BY' => '%by',
'GROUP BY' => '%by',
) |
#
default modifiers for arrays |
public static
array
|
$separators | array(
'SELECT' => ',',
'FROM' => ',',
'WHERE' => 'AND',
'GROUP BY' => ',',
'HAVING' => 'AND',
'ORDER BY' => ',',
'LIMIT' => FALSE,
'OFFSET' => FALSE,
'SET' => ',',
'VALUES' => ',',
'INTO' => FALSE,
) |
#
clauses separators |
public static
array
|
$clauseSwitches | array(
'JOIN' => 'FROM',
'INNER JOIN' => 'FROM',
'LEFT JOIN' => 'FROM',
'RIGHT JOIN' => 'FROM',
) |
#
clauses |