Fix condition/ConditionGroup.class.php when all conditions have no value.

Add page navigation mechanism.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8399 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-05-27 11:39:45 +00:00
parent 750733936b
commit 0b78e26357
4 changed files with 66 additions and 11 deletions

View file

@ -14,10 +14,11 @@
require_once(_XE_PATH_.'classes/xml/xmlquery/queryargument/QueryArgument.class.php');
$this->arguments[] = new QueryArgument($index->page);
$this->arguments[] = new QueryArgument($index->list_count);
$this->arguments[] = new QueryArgument($index->page_count);
}
function toString(){
return sprintf("new Limit(\$%s_argument->getValue(), \$%s_argument->getValue())", $this->page->var, $this->list_count->var);
return sprintf("new Limit(\$%s_argument->getValue(), \$%s_argument->getValue(), \$%s_argument->getValue())", $this->page->var, $this->list_count->var, $this->page_count->var);
}
function getArguments(){