$list; } function setList($_list) { $this->list = $_list; } function add($_project) { $this->list[count($this->list)] = $_project; } function getCount() { return count($this->list); } function getItemAt($_pos) { if($_pos < $this->getCount()) { return $this->list[$_pos]; } } function selectCategoryList() { $App = new App(); $WHERE = ""; $sql = "SELECT CAT.category_id, CAT.description, CAT.image_name, CAT.category_shortname FROM categories AS CAT ORDER BY CAT.description "; $result = $App->eclipse_sql($sql); while($myrow = mysql_fetch_array($result)) { $Category = new Category(); $Category->setCategoryID ($myrow["category_id"]); $Category->setDescription ($myrow["description"]); $Category->setImageName ($myrow["image_name"]); $Category->setCategoryShortname ($myrow["category_shortname"]); $this->add($Category); } $result = null; $myrow = null; } } ?>