items[] = array('href' => $href, 'name' => ucfirst($name)); // menu_item } } /** * Массив ссылок * @return Массив */ function getItems() { foreach ($this->items as &$item) { if (is_callable($item['href'])) { $item['href'] = call_user_func($item['href']); } } return $this->items; } } ?>