Библиотека для cis, online, cms1
This commit is contained in:
commit
3c2e614d87
269 changed files with 39854 additions and 0 deletions
30
core/widgets/pagemenu.php
Normal file
30
core/widgets/pagemenu.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
require_once 'core/widgets/widget.php';
|
||||
require_once 'core/widgets/menu.php';
|
||||
|
||||
/**
|
||||
* Êîìïîíåíò äëÿ ãåíåðàöèè ìåíþ
|
||||
*/
|
||||
class PageMenu extends Widget
|
||||
{
|
||||
private $menu;
|
||||
|
||||
function setUp()
|
||||
{
|
||||
$this->menu = new SimpleMenu();
|
||||
$this->template = "menu";
|
||||
}
|
||||
|
||||
function addMenuItem($name, $value)
|
||||
{
|
||||
$this->menu->addMenuItem($name, $value);
|
||||
}
|
||||
|
||||
function postMake()
|
||||
{
|
||||
$this->view->items = $this->menu->getItems();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue