Private Method Details |
sqlize_mask |
private void sqlize_mask(string $mask, [ string $alias ])
|
|
A mask, in this case, is a string that has fieldnames enclosed in curly brackets {}. An example of a mask is: " - "
|
Parameter |
|
string |
$mask |
|
|
The mask to model CONCAT() on. |
|
|
string |
$alias |
= >>''<< |
|
The alias of the table we are selecting from (to prepend to column names). |
|
Returns |
void |
|
get_table_alias |
private string get_table_alias(string $tablename, string $sql)
|
|
If no alias, then it returns the table name.
|
Parameter |
|
string |
$tablename |
|
|
The name of the table to check for an alias to. (first occur) |
|
|
string |
$sql |
|
|
The SQL to parse for table alias. |
|
Returns |
string The found table alias (or tablename if none found) |
|
prepare |
private string prepare(string $sql)
|
|
This is not the same as the ->Prepare() ADOdb method; this simply gets the SQL ready for the database -- e.g. runing strtr() to swap in db-specific escaping, etc. This allows us to use some meta-language in SQL statements in places.
|
Parameter |
|
|
Returns |
string The ready-to-go SQL |
|