Packageindex Classtrees Modulegroups Elementlist Report XML Files

pxdb_sql

pxdb_sql

private class pxdb_sql

 

Private Method Summary

void sqlize_mask(string $mask, [ string $alias ])
Converts a mask into a CONCAT() statement for use in SQL.
string get_table_alias(string $tablename, string $sql)
Gets the alias for a table from a SQL statement.
string prepare(string $sql)
Prepares a SQL statement. (not currently in use)

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
string $sql
Returns string

The ready-to-go SQL



Packageindex Classtrees Modulegroups Elementlist Report XML Files
Generated on Fri, 28 Apr 2006 19:07:22 -0400 by PHPDoc v1.5 www.phpdoc.de