/** * If the list is sorted by category... * * This is basically just a stub for backward compatibility */ function &get_item() { if ($this->group_by_cat == 1) { // This is the first call to get_item() after get_category_group() $this->group_by_cat = 2; // Return the object we already got in get_category_group(): return $this->current_Obj; } $Item =& parent::get_next(); if (!empty($Item) && $this->group_by_cat == 2 && $Item->main_cat_ID != $this->main_cat_ID) { // We have just hit a new category! $this->group_by_cat == 0; // For info only. $r = false; return $r; } //pre_dump( $Item ); return $Item; }