PHP Class Sulu\Bundle\WebsiteBundle\Navigation\NavigationMapper

Inheritance: implements Sulu\Bundle\WebsiteBundle\Navigation\NavigationMapperInterface
Datei anzeigen Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Component\Content\Mapper\ContentMapperInterface $contentMapper, Sulu\Component\Content\Query\ContentQueryExecutorInterface $contentQuery, Sulu\Component\Content\Query\ContentQueryBuilderInterface $queryBuilder, Sulu\Component\PHPCR\SessionManager\SessionManagerInterface $sessionManager, Symfony\Component\Stopwatch\Stopwatch $stopwatch = null )
getBreadcrumb ( $uuid, $webspace, $language )
getNavigation ( $parent, $webspaceKey, $locale, $depth = 1, $flat = false, $context = null, $loadExcerpt = false )
getRootNavigation ( $webspaceKey, $locale, $depth = 1, $flat = false, $context = null, $loadExcerpt = false )
inNavigation ( Sulu\Component\Content\Compat\StructureInterface $content, string | null $context = null ) : boolean checks if content should be displayed.

Private Methods

Method Description
generateChildNavigation ( Sulu\Component\Content\Compat\StructureInterface $content, $webspace, $language, $flat = false, $context = null ) generate child navigation of given content.
generateNavigation ( $contents, $webspace, $language, $flat = false, $context = null, $breakOnNotInNavigation = false, $recursive = true ) generate navigation items for given contents.

Method Details

__construct() public method

public __construct ( Sulu\Component\Content\Mapper\ContentMapperInterface $contentMapper, Sulu\Component\Content\Query\ContentQueryExecutorInterface $contentQuery, Sulu\Component\Content\Query\ContentQueryBuilderInterface $queryBuilder, Sulu\Component\PHPCR\SessionManager\SessionManagerInterface $sessionManager, Symfony\Component\Stopwatch\Stopwatch $stopwatch = null )
$contentMapper Sulu\Component\Content\Mapper\ContentMapperInterface
$contentQuery Sulu\Component\Content\Query\ContentQueryExecutorInterface
$queryBuilder Sulu\Component\Content\Query\ContentQueryBuilderInterface
$sessionManager Sulu\Component\PHPCR\SessionManager\SessionManagerInterface
$stopwatch Symfony\Component\Stopwatch\Stopwatch

getBreadcrumb() public method

public getBreadcrumb ( $uuid, $webspace, $language )

getNavigation() public method

public getNavigation ( $parent, $webspaceKey, $locale, $depth = 1, $flat = false, $context = null, $loadExcerpt = false )

getRootNavigation() public method

public getRootNavigation ( $webspaceKey, $locale, $depth = 1, $flat = false, $context = null, $loadExcerpt = false )

inNavigation() public method

checks if content should be displayed.
public inNavigation ( Sulu\Component\Content\Compat\StructureInterface $content, string | null $context = null ) : boolean
$content Sulu\Component\Content\Compat\StructureInterface
$context string | null
return boolean