public function getAllItems() { $results = array(); foreach ($this->getItemsWithDepth() as $depth => $items) { foreach ($items as $item) { $results[] = $item; } } return new MenuHandler($results); }