Public Member Functions | |
__construct ($escape_char_left, $escape_char_right="", $table_prefix="xe_") | |
getEscapeChar ($leftOrRight) | |
escape ($name) | |
escapeString ($name) | |
escapeStringValue ($value) | |
parseTableName ($name) | |
parseColumnName ($name) | |
escapeColumn ($column_name) | |
isUnqualifiedColumnName ($column_name) | |
isQualifiedColumnName ($column_name) | |
parseExpression ($column_name) | |
isStar ($column_name) | |
isStarFunction ($column_name) | |
escapeColumnExpression ($column_name) | |
Public Attributes | |
$escape_char_left | |
$escape_char_right | |
$table_prefix | |
Definition at line 17 of file DBParser.class.php.
DBParser::__construct | ( | $escape_char_left, | |
$escape_char_right = "" , |
|||
$table_prefix = "xe_" |
|||
) |
Constructor
string | $escape_char_left | |
string | $escape_char_right | |
string | $table_prefix |
Definition at line 63 of file DBParser.class.php.
DBParser::escape | ( | $name | ) |
Escape the value
mixed | $name |
Definition at line 101 of file DBParser.class.php.
DBParser::escapeColumn | ( | $column_name | ) |
Escape column name
string | $column_name |
Definition at line 166 of file DBParser.class.php.
DBParser::escapeColumnExpression | ( | $column_name | ) |
Return column name after escape
string | $column_name |
Definition at line 314 of file DBParser.class.php.
DBParser::escapeString | ( | $name | ) |
Escape the string value
string | $name |
Definition at line 112 of file DBParser.class.php.
DBParser::escapeStringValue | ( | $value | ) |
Escape the string value
string | $value |
Definition at line 123 of file DBParser.class.php.
DBParser::getEscapeChar | ( | $leftOrRight | ) |
Get escape character
string | $leftOrRight | left or right |
Definition at line 83 of file DBParser.class.php.
DBParser::isQualifiedColumnName | ( | $column_name | ) |
Checks to see if a given column name is qualified
Ex: "member_srl" -> unqualified
"member"."member_srl" -> qualified
string | $column_name |
Definition at line 208 of file DBParser.class.php.
DBParser::isStar | ( | $column_name | ) |
Checks if a given argument is an asterisk
string | $column_name |
Definition at line 284 of file DBParser.class.php.
DBParser::isStarFunction | ( | $column_name | ) |
Checks to see if expression is an aggregate star function like count(*)
string | $column_name |
Definition at line 300 of file DBParser.class.php.
DBParser::isUnqualifiedColumnName | ( | $column_name | ) |
Checks to see if a given column name is unqualified
Ex: "member_srl" -> unqualified
"member"."member_srl" -> qualified
string | $column_name |
Definition at line 190 of file DBParser.class.php.
DBParser::parseColumnName | ( | $name | ) |
Return column name after escape
string | $name | column name before escape |
Definition at line 155 of file DBParser.class.php.
DBParser::parseExpression | ( | $column_name | ) |
Escapes a query expression
An expression can be:
$column_name |
Definition at line 235 of file DBParser.class.php.
DBParser::parseTableName | ( | $name | ) |
Return table full name
string | $name | table name without table prefix |
Definition at line 143 of file DBParser.class.php.
DBParser::$escape_char_left |
Definition at line 31 of file DBParser.class.php.
DBParser::$escape_char_right |
Definition at line 43 of file DBParser.class.php.
DBParser::$table_prefix |
Definition at line 52 of file DBParser.class.php.