PHP Class Sulu\Bundle\AdminBundle\Navigation\Navigation

Mostrar archivo Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$root NavigationItem

Public Methods

Method Description
__construct ( NavigationItem $root = null )
getRoot ( ) : NavigationItem
merge ( Navigation $navigation ) : Navigation Merges the given navigation with this one and returns the result.
toArray ( ) : array Returns the navigation as array.

Method Details

__construct() public method

public __construct ( NavigationItem $root = null )
$root NavigationItem

getRoot() public method

public getRoot ( ) : NavigationItem
return NavigationItem

merge() public method

Works only if there are no duplicate of items in the same level.
public merge ( Navigation $navigation ) : Navigation
$navigation Navigation
return Navigation

toArray() public method

Returns the navigation as array.
public toArray ( ) : array
return array

Property Details

$root protected_oe property

protected NavigationItem,Sulu\Bundle\AdminBundle\Navigation $root
return NavigationItem