mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@89 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d26fabe4b3
commit
c03cf41dd8
10 changed files with 12 additions and 13 deletions
|
|
@ -39,7 +39,7 @@
|
|||
* tag = key : return받을 결과값의 변수명\n
|
||||
**/
|
||||
|
||||
class XmlJsFilter {
|
||||
class XmlJsFilter extends XmlParser {
|
||||
var $compiled_path = './files/js_filter_compiled/'; ///< 컴파일된 캐시 파일이 놓일 위치
|
||||
var $xml_file = NULL; ///< 대상 xml 파일
|
||||
var $js_file = NULL; ///< 컴파일된 js 파일
|
||||
|
|
@ -73,8 +73,7 @@
|
|||
$buff = FileHandler::readFile($this->xml_file);
|
||||
|
||||
// xml parsing
|
||||
$oXml = new XmlParser();
|
||||
$xml_obj = $oXml->parse($buff);
|
||||
$xml_obj = $this->parse($buff);
|
||||
|
||||
// XmlJsFilter는 filter_name, field, parameter 3개의 데이터를 핸들링
|
||||
$filter_name = $xml_obj->filter->attrs->name;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
* @todo subquery나 union등의 확장 쿼리에 대한 지원이 필요
|
||||
**/
|
||||
|
||||
class XmlQueryParser {
|
||||
class XmlQueryParser extends XmlParser {
|
||||
|
||||
/**
|
||||
* @brief 조건문에서 조건을 등호로 표시하는 변수
|
||||
|
|
@ -30,8 +30,7 @@
|
|||
function parse($query_id, $xml_file, $cache_file) {
|
||||
// query xml 파일을 찾아서 파싱, 결과가 없으면 return
|
||||
$buff = FileHandler::readFile($xml_file);
|
||||
$oXml = new XmlParser();
|
||||
$xml_obj = $oXml->parse($buff);
|
||||
$xml_obj = $this->parse($buff);
|
||||
if(!$xml_obj) return;
|
||||
|
||||
// 쿼리 스크립트를 만들때 필요한 변수들
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue