18 import(
'lib.pkp.classes.core.ItemIterator');
47 parent::__construct();
52 $this->records =
null;
55 $this->isFirst =
true;
63 $this->page =
$records->AbsolutePage();
64 $this->isFirst =
$records->atFirstPage();
65 $this->isLast =
$records->atLastPage();
66 $this->count =
$records->MaxRecordCount();
67 $this->pageCount =
$records->LastPageNo();
77 if (!$this->records->EOF) {
78 $row = $this->records->getRowAssoc(
false);
79 if (!$this->records->MoveNext()) $this->
close();
93 $result = $this->
next();
94 if (empty($this->idFields)) {
97 assert(is_array($result) && is_array($this->idFields));
99 foreach($this->idFields as $idField) {
100 assert(isset($result[$idField]));
101 if (!empty($key)) $key .=
'-';
102 $key .= (string)$result[$idField];
105 return array($key, $result);
153 if ($this->records ==
null)
return true;
154 if ($this->records->EOF) {
174 $this->records->close();
175 unset($this->records);
176 $this->records =
null;
185 while (!$this->
eof()) {