Issue 499: query xml > operation 에 and, or, xor 추가 건의

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9799 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-11-03 18:18:25 +00:00
parent c34090b7fb
commit 9ffb1b39a0
2 changed files with 53 additions and 1 deletions

View file

@ -66,6 +66,10 @@
case 'notlike' :
case 'in' :
case 'notin' :
case 'and':
case 'or':
case 'xor':
case 'not':
case 'notequal' :
// if variable is not set or is not string or number, return
if(!isset($this->_value)) { $this->_show = false; break;}
@ -126,7 +130,19 @@
case 'null' :
return $name.' is null';
break;
case 'between' :
case 'and' :
return $name.' & '.$value;
break;
case 'or' :
return $name.' | '.$value;
break;
case 'xor' :
return $name.' ^ '.$value;
break;
case 'not' :
return $name.' ~ '.$value;
break;
case 'between' :
return $name.' between ' . $value[0] . ' and ' . $value[1];
break;
}