function list_disc_types() { $query = $this->con->genericQuery("select * from " . $this->table . " where status=1"); $objReturn = array(); foreach ($query as $value) { $disctype = new disciplinetype(); $disctype->open($value); $objReturn[] = $disctype; } return $objReturn; }