mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 22:29:55 +09:00
add some unit tests for CUBRID
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8456 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d7cf3cb731
commit
e41c45433e
10 changed files with 814 additions and 9 deletions
|
|
@ -120,10 +120,10 @@
|
|||
$node_name = strtolower($node_name);
|
||||
$cur_obj = array_pop($this->output);
|
||||
$parent_obj = &$this->output[count($this->output)-1];
|
||||
if($this->lang&&$cur_obj->attrs->{'xml:lang'}&&$cur_obj->attrs->{'xml:lang'}!=$this->lang) return;
|
||||
if($this->lang&&$parent_obj->{$node_name}->attrs->{'xml:lang'}&&$parent_obj->{$node_name}->attrs->{'xml:lang'}!=$this->lang) return;
|
||||
if(isset($this->lang)&&$cur_obj->attrs->{'xml:lang'}&&$cur_obj->attrs->{'xml:lang'}!=$this->lang) return;
|
||||
if(isset($this->lang)&&$parent_obj->{$node_name}->attrs->{'xml:lang'}&&$parent_obj->{$node_name}->attrs->{'xml:lang'}!=$this->lang) return;
|
||||
|
||||
if($parent_obj->{$node_name}) {
|
||||
if(isset($parent_obj->{$node_name})) {
|
||||
$tmp_obj = $parent_obj->{$node_name};
|
||||
if(is_array($tmp_obj)) {
|
||||
array_push($parent_obj->{$node_name}, $cur_obj);
|
||||
|
|
|
|||
|
|
@ -29,14 +29,14 @@
|
|||
}
|
||||
|
||||
// singleton
|
||||
function &getDBParser(){
|
||||
/* function &getDBParser(){
|
||||
static $dbParser;
|
||||
if(!$dbParser){
|
||||
$oDB = &DB::getInstance();
|
||||
$dbParser = $oDB->getParser();
|
||||
}
|
||||
return $dbParser;
|
||||
}
|
||||
}*/
|
||||
|
||||
function getXmlFileContent($xml_file){
|
||||
$buff = FileHandler::readFile($xml_file);
|
||||
|
|
@ -45,7 +45,11 @@
|
|||
unset($buff);
|
||||
return $xml_obj;
|
||||
}
|
||||
|
||||
|
||||
function &getDBParser(){
|
||||
if(!$this->dbParser)
|
||||
$this->dbParser = new DBParser('"');
|
||||
return $this->dbParser;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue