PHP Class FluidTYPO3\Vhs\Service\PageService

Wrapper service for \TYPO3\CMS\Frontend\Page\PageRepository including static caches for menus, rootlines, pages and page overlays to be implemented in viewhelpers by replacing calls to \TYPO3\CMS\Frontend\Page\PageRepository::getMenu() and the like.
Inheritance: implements TYPO3\CMS\Core\SingletonInterface
Afficher le fichier Open project: fluidtypo3/vhs Class Usage Examples

Protected Properties

Свойство Type Description
$backendPageRepository TYPO3\CMS\Frontend\Page\PageRepository
$cachedMenus array
$cachedPages array
$cachedRootlines array

Méthodes publiques

Méthode Description
getItemLink ( array $page, boolean $forceAbsoluteUrl = false ) : string
getMenu ( integer $pageUid, array $excludePages = [], boolean $includeNotInMenu = false, boolean $includeMenuSeparator = false, boolean $disableGroupAccessCheck = false ) : array
getPage ( integer $pageUid, boolean $disableGroupAccessCheck = false ) : array
getRootLine ( integer $pageUid = null, boolean $reverse = false, boolean $disableGroupAccessCheck = false ) : array
getShortcutTargetPage ( array $page ) : null | array Determines the target page record for the provided page record if it is configured as a shortcut in any of the possible modes.
hidePageForLanguageUid ( array | integer $page = null, integer $languageUid, boolean $normalWhenNoLanguage = true ) : boolean
isAccessGranted ( array $page ) : boolean
isAccessProtected ( array $page ) : boolean
isActive ( integer $pageUid, boolean $showAccessProtected = false ) : boolean
isCurrent ( integer $pageUid ) : boolean
shouldUseShortcutTarget ( array $arguments ) : boolean
shouldUseShortcutUid ( array $arguments ) : boolean

Méthodes protégées

Méthode Description
getPageConstraints ( array $excludePages = [], boolean $includeNotInMenu = false, boolean $includeMenuSeparator = false ) : string
getPageRepository ( ) : TYPO3\CMS\Frontend\Page\PageRepository
getPageRepositoryForBackendContext ( ) : TYPO3\CMS\Frontend\Page\PageRepository

Method Details

getMenu() public méthode

public getMenu ( integer $pageUid, array $excludePages = [], boolean $includeNotInMenu = false, boolean $includeMenuSeparator = false, boolean $disableGroupAccessCheck = false ) : array
$pageUid integer
$excludePages array
$includeNotInMenu boolean
$includeMenuSeparator boolean
$disableGroupAccessCheck boolean
Résultat array

getPage() public méthode

public getPage ( integer $pageUid, boolean $disableGroupAccessCheck = false ) : array
$pageUid integer
$disableGroupAccessCheck boolean
Résultat array

getPageConstraints() protected méthode

protected getPageConstraints ( array $excludePages = [], boolean $includeNotInMenu = false, boolean $includeMenuSeparator = false ) : string
$excludePages array
$includeNotInMenu boolean
$includeMenuSeparator boolean
Résultat string

getPageRepository() protected méthode

protected getPageRepository ( ) : TYPO3\CMS\Frontend\Page\PageRepository
Résultat TYPO3\CMS\Frontend\Page\PageRepository

getPageRepositoryForBackendContext() protected méthode

protected getPageRepositoryForBackendContext ( ) : TYPO3\CMS\Frontend\Page\PageRepository
Résultat TYPO3\CMS\Frontend\Page\PageRepository

getRootLine() public méthode

public getRootLine ( integer $pageUid = null, boolean $reverse = false, boolean $disableGroupAccessCheck = false ) : array
$pageUid integer
$reverse boolean
$disableGroupAccessCheck boolean
Résultat array

getShortcutTargetPage() public méthode

Returns NULL otherwise.
public getShortcutTargetPage ( array $page ) : null | array
$page array
Résultat null | array

hidePageForLanguageUid() public méthode

public hidePageForLanguageUid ( array | integer $page = null, integer $languageUid, boolean $normalWhenNoLanguage = true ) : boolean
$page array | integer
$languageUid integer
$normalWhenNoLanguage boolean
Résultat boolean

isAccessGranted() public méthode

public isAccessGranted ( array $page ) : boolean
$page array
Résultat boolean

isAccessProtected() public méthode

public isAccessProtected ( array $page ) : boolean
$page array
Résultat boolean

isActive() public méthode

public isActive ( integer $pageUid, boolean $showAccessProtected = false ) : boolean
$pageUid integer
$showAccessProtected boolean
Résultat boolean

isCurrent() public méthode

public isCurrent ( integer $pageUid ) : boolean
$pageUid integer
Résultat boolean

shouldUseShortcutTarget() public méthode

public shouldUseShortcutTarget ( array $arguments ) : boolean
$arguments array
Résultat boolean

shouldUseShortcutUid() public méthode

public shouldUseShortcutUid ( array $arguments ) : boolean
$arguments array
Résultat boolean

Property Details

$backendPageRepository protected_oe static_oe property

protected static PageRepository,TYPO3\CMS\Frontend\Page $backendPageRepository
Résultat TYPO3\CMS\Frontend\Page\PageRepository

$cachedMenus protected_oe static_oe property

protected static array $cachedMenus
Résultat array

$cachedPages protected_oe static_oe property

protected static array $cachedPages
Résultat array

$cachedRootlines protected_oe static_oe property

protected static array $cachedRootlines
Résultat array