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

Static Public Member Functions

static parse (DomElement $xmlQuery)
 
static validate (DomElement $query)
 
- 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)
 

Additional Inherited Members

- 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

DALTruncateParser.

Truncate query parser. This is an alias for "Delete All", as the normal Delete query provides no ability to unconditionally delete all of a table's entries (as the table name is placed in the WHERE portion).

Since
4.0.0

Definition at line 26 of file DALTruncateParser.inc.

Member Function Documentation

static parse ( DomElement  $xmlQuery)
static

Construct the TRUNCATE query from XML element.

array( 'TRUNCATE' => array( 'from' => string, ), )

Parameters
DomElement$xmlQueryThe query element.
Since
4.0.0
Returns
array

Definition at line 58 of file DALTruncateParser.inc.

static validate ( DomElement  $query)
static

Validates DELETE query.

Throws DALParserException. Note: This validation checks required XML elements and attributes. It does not check if tables, columns etc exists in the system.

Parameters
DomElement$queryThe query element.
Since
4.0.0
Returns
string
Exceptions
DALParserExceptionIf the DELETE query is malformed.

Definition at line 89 of file DALTruncateParser.inc.


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