PHP Class RainLab\Pages\Components\StaticMenu

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

Protected Properties

Свойство Type Description
$menuItems A list of items generated by the menu. Each item is an object of the RainLab\Pages\Classes\MenuItemReference class.

Méthodes publiques

Méthode 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 méthode

public componentDetails ( )

defineProperties() public méthode

public defineProperties ( )

getCodeOptions() public méthode

public getCodeOptions ( )

menuItems() public méthode

public menuItems ( )

onRun() public méthode

public onRun ( )

resetMenu() public méthode

Resets the menu code and rebuilds the menu.
public resetMenu ( string $code ) : array
$code string
Résultat array

totalItems() public méthode

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