/** * returns an array of all item objects */ function items() { if ($this->items === null) { $this->items = array(); $rows = $this->itemRows(); foreach ($rows as $row) { $this->items[$row['id']] = rsgItem::getCorrectItemObject($this, $row); } } return $this->items; }