Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
DALWithParser Class Reference
Inheritance diagram for DALWithParser:
DALQueryParser

Static Public Member Functions

static parse (DomElement $xmlQuery)
 
static validate (DomElement $xmlQuery)
 
- Static Public Member Functions inherited from DALQueryParser
static parse (DomElement $query)
 
static parseCallQuery (DomElement $call)
 
static validateField (DomElement $field, $allowAlias=FALSE)
 
static validateValuesTag (DomElement $valuesTag)
 
static validateFunctionTag (DomElement $function)
 
static validateHook (DomElement $hook)
 

Static Protected Member Functions

static parseSqlFunction (DomElement $function)
 
- Static Protected Member Functions inherited from DALQueryParser
static parseLimitClause (DomElement $select)
 
static parseInClause (DomElement $inCond, $level=0)
 
static parseExistsClause (DomElement $existsCond, $level=0)
 
static parseChildFields (DomElement $parent)
 
static parseSingleField (DomElement $fieldXML)
 
static parseMathOperation (DomElement $parent, $op='MATH-OP')
 
static parseSqlFunction (DomElement $function)
 
static validateFieldsTag (DomElement $fields)
 
static validateValueTag (DomElement $value)
 
static getUnionTag (DomElement $parentNode)
 
static addHookIds (DomElement $xmlQuery)
 

Detailed Description

DALWithParser.

WITH/CONNECT-BY query parser.

Since
4.0.0

Definition at line 25 of file DALWithParser.inc.

Member Function Documentation

static parse ( DomElement  $xmlQuery)
static

Returns the array form of the WITH query.

array( 'WITH' => array( 'FUNCTION' => array(...), 'UNION-ALL' => array(...), 'AFTER' => array(...), // Outer SELECT statement. 'CONNECT-BY-PRIOR' => array(...), // For Oracle DB. ), );

Parameters
DomElement$xmlQueryQuery element.
Since
4.0.0
Returns
array

Definition at line 59 of file DALWithParser.inc.

static parseSqlFunction ( DomElement  $function)
staticprotected

Converts XML function element to PHP array.

array( 'FUNCTION' => array( 'function' => string, 'ARGS' => array( 0 => mixed, ), ), )

Parameters
DomElement$functionFunction XML node.
Since
4.0.0
Returns
array

Definition at line 113 of file DALWithParser.inc.

static validate ( DomElement  $xmlQuery)
static

Validate WITH query.

Parameters
DomElement$xmlQueryThe WITH/CONNECT-BY-PRIOR query.
Since
4.0.0
Returns
void

Definition at line 90 of file DALWithParser.inc.


The documentation for this class was generated from the following file: