13 require_once dirname(__FILE__).
'/DALQueryParser.inc';
34 private function __construct()
48 public static function parse(DomElement $xmlQuery)
51 $dropTag = $xmlQuery->getElementsByTagName(
'drop')->item(0);
52 if ($dropTag !== NULL) {
53 if ($dropTag->getAttribute(
'table') !==
'') {
54 $query[
'DROP'][
'TABLE'] = $dropTag->getAttribute(
'table');
55 }
else if ($dropTag->getAttribute(
'sequence') !==
'') {
56 $query[
'DROP'][
'SEQUENCE'] = $dropTag->getAttribute(
'sequence');
76 public static function validate(DomElement $query)
78 $dropTag = $query->getElementsByTagName(
'drop')->item(0);
79 if ($dropTag === NULL) {
83 if (($dropTag->getAttribute(
'table') ===
'') && ($dropTag->getAttribute(
'sequence') ===
'')) {