Issue 491: 1.5.0.5 설치우 버그?

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9643 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-10-13 14:53:30 +00:00
parent bddb968dbf
commit e8741e7cb6
4 changed files with 29 additions and 5 deletions

View file

@ -7,7 +7,9 @@
var $column_name;
var $operation;
function QueryArgument($tag){
var $ignore_value;
function QueryArgument($tag, $ignore_value = false){
static $number_of_arguments = 0;
$this->argument_name = $tag->attrs->var;
@ -30,7 +32,7 @@
if($tag->attrs->operation) $this->operation = $tag->attrs->operation;
$this->argument_validator = new QueryArgumentValidator($tag, $this);
$this->ignore_value = $ignore_value;
}
function getArgumentName(){
@ -77,7 +79,7 @@
$arg = sprintf("\n$%s_argument = new Argument('%s', %s);\n"
, $this->argument_name
, $this->variable_name
, '$args->'.$this->variable_name);
, $this->ignore_value ? 'null' : '$args->'.$this->variable_name);
$arg .= $this->argument_validator->toString();