/** * Prints the HTML page. * @access public **/ function printPage() { // before printing, add menus to Theme component foreach (array_keys($this->_menus) as $i => $level) { $this->_wrapper->add($this->_menus[$level]); } parent::printPage(); }
function test_menu_theme() { $menuStyle = new StyleCollection("*.menu", "menu", "Menu Style", "Style for the menu."); $menuStyle->addSP(new BackgroundColorSP("#997755")); $menuStyle->addSP(new BorderSP("1px", "solid", "#FFFFFF")); $menu = new Menu(new XLayout(), 4, $menuStyle); $theme = new MenuThemeAbstract("Master", "And Servant"); $theme->addMenu($menu, 1); $menu1 = $theme->getMenu(1); $this->assertReference($menu, $menu1); }