/** * Populates the collection of business objects from raw data * * @return bool * @param MySqlRawData $o_result */ protected function BuildItems(MySqlRawData $o_result) { while ($o_row = $o_result->fetch()) { # create the new category $o_category = new Category(); $o_category->SetId($o_row->id); $o_category->SetName($o_row->name); $o_category->SetParentId((int) $o_row->parent); $o_category->SetUrl($o_row->code); $o_category->SetSortOverride($o_row->sort_override); $o_category->SetNavigateUrl($o_row->navigate_url); $o_category->SetHierarchyLevel($o_row->hierarchy_level); $this->Add($o_category); } }