getXmlFileContent($xml_file); // insert, update, delete, select action $action = strtolower($xml_obj->query->attrs->action); if(!$action) return; // Write query cache file $parser = new QueryParser($xml_obj->query); FileHandler::writeFile($cache_file, $parser->toString()); return $parser; } function parse($query_id = NULL, $xml_file = NULL, $cache_file = NULL) { $query_parser = &$this->parse_xml_query($query_id, $xml_file, $cache_file); } function getXmlFileContent($xml_file){ $buff = FileHandler::readFile($xml_file); $xml_obj = parent::parse($buff); if(!$xml_obj) return; unset($buff); return $xml_obj; } } ?>