Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17154 программиста и 1834 робота. Сейчас ищут 1654 программиста ...
Оглавление
Using Pyrus, the PEAR Installer for PHP 5.3+
PEAR Developer Guide
Channels: distributing your packages
PEAR Packages
Class Summary HTML_Menu_ArrayRenderer
Вернуться к: HTML_Menu
Class Summary HTML_Menu_ArrayRenderer
Class Summary HTML_Menu_ArrayRenderer – The renderer that creates an array of visible menu entries.
The resultant array can be used with e.g. a template engine to produce a completely custom menu look.
All menu types except 'rows' are "rendered" into a one-dimensional array of entries:
<?php
array(
'entry1',
...
'entryN'
)
?>
while 'rows' produce a two-dimensional array:
<?php
array(
array('entry 1 for row 1', ..., 'entry M_1 for row 1'),
...
array('entry 1 for row N', ..., 'entry M_N for row 1')
)
?>
Here entry is
<?php
array(
'url' => url element of menu entry
'title' => title element of menu entry
'level' => entry's depth in the tree structure
'type' => type of entry, one of HTML_MENU_ENTRY_* constants
)
?>
A list of the above mentioned HTML_MENU_ENTRY_* constants can be found here.
Class Trees for HTML_Menu_ArrayRenderer
HTML_Menu_ArrayRenderer
HTML_Menu_ArrayRenderer Inherited Methods
Method Name | Summary |
---|---|
HTML_Menu_Renderer::finishLevel() | Finish the tree level (for types 'tree' and 'sitemap') |
HTML_Menu_Renderer::finishMenu() | Finish the menu |
HTML_Menu_Renderer::finishRow() | Finish the row in the menu |
HTML_Menu_Renderer::renderEntry() | Renders the element of the menu |
HTML_Menu_Renderer::setMenuType() | Sets the type of the menu being rendered. |
Вернуться к: HTML_Menu