Class FriendlyUrlMenu

Description

Widget for build menu based on friendly URL pages data.

Example of usage: <? $this->widget('FriendlyUrlMenu', array( 'levels'=>1, 'parentMatch'=>true)) ?>

Located in /FriendlyUrlMenu.php (line 19)

CWidget
   |
   --FriendlyUrlMenu
Variable Summary
string $currentUrl
integer $levels
boolean $parentMatch
array $style
array $tpl
Method Summary
void buildSubMenu (CFriendlyUrlPage $parent, [integer $level = 0])
void run ()
Variables
string $currentUrl (line 84)

Current URL.

integer $levels = 0 (line 57)

Menu depth to output.

CFriendlyUrlPage|integer $parent = NULL (line 52)

Parent page or PageID, children of whom your want to output in menu.

boolean $parentMatch = false (line 78)

Whether mean parents, what the parent element of current page is active, or not.

array $style = array(
'inactive'=>'',
'active'=>'active'
)
(line 69)

Two string elements - inactive and active - sets a classes to use when the menu element is current page and in all other cases.

array $tpl = array() (line 63)

User templates for output.

Methods

Documentation generated on Mon, 13 Apr 2009 16:55:48 +0400 by phpDocumentor 1.4.1