PHP Class RainLab\Pages\Components\StaticMenu

Author: Alexey Bobkov, Samuel Georges
Inheritance: extends Cms\Classes\ComponentBase
Mostra file Open project: rainlab/pages-plugin

Protected Properties

Property Type Description
$menuItems A list of items generated by the menu. Each item is an object of the RainLab\Pages\Classes\MenuItemReference class.

Public Methods

Method Description
componentDetails ( )
defineProperties ( )
getCodeOptions ( )
menuItems ( )
onRun ( )
resetMenu ( string $code ) : array Resets the menu code and rebuilds the menu.
totalItems ( ) Counts the total menu items, including children.

Method Details

componentDetails() public method

public componentDetails ( )

defineProperties() public method

public defineProperties ( )

getCodeOptions() public method

public getCodeOptions ( )

menuItems() public method

public menuItems ( )

onRun() public method

public onRun ( )

resetMenu() public method

Resets the menu code and rebuilds the menu.
public resetMenu ( string $code ) : array
$code string
return array

totalItems() public method

Counts the total menu items, including children.
public totalItems ( )

Property Details

$menuItems protected_oe property

A list of items generated by the menu. Each item is an object of the RainLab\Pages\Classes\MenuItemReference class.
protected $menuItems