메소드 |
설명 |
|
__construct ( string $adminPrefix, Symfony\Component\HttpFoundation\RequestStack $requestStack, Cacher $cacher, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage ) |
|
|
getAdminPrefix ( ) : string |
|
|
getCachedPageToUrl ( integer $domainId ) : array |
Returns a array map nodeId -> url |
|
getCachedUrlToPage ( integer $domainId ) : array |
Returns a array map url -> nodeId |
|
getCurrentDomain ( ) : Domain |
|
|
getCurrentPage ( ) : Node | null |
|
|
getCurrentUrl ( boolean $full = false ) : string |
|
|
getCurrentUrlAffix ( ) : string |
Returns the affix relative to current page. |
|
getDomain ( integer $domainId = null ) : Domain |
Returns Domain object. This tries to cache the domain, so its a faster access method than using
DomainQuery classes. |
|
getDomainOfPage ( integer $id ) : integer | null |
Returns the domain of the given $id page. |
|
getNodeUrl ( Node | integer | string $nodeOrId, boolean $fullUrl = false, boolean $suppressStartNodeCheck = false ) : string |
|
|
getPage ( Node | string | integer $node ) : Node | null |
Returns a super fast cached Page object. |
|
getPageResponse ( ) : PageResponse | null |
|
|
getRequest ( ) : null | Request |
Returns always the master request. |
|
getRequestStack ( ) : Symfony\Component\HttpFoundation\RequestStack |
|
|
getRouteUrl ( Node | integer $nodeOrId, boolean $suppressStartNodeCheck = false ) : string |
|
|
getSession ( ) : null | Symfony\Component\HttpFoundation\Session\SessionInterface |
Returns the current session. if available. |
|
getToken ( ) : null | Symfony\Component\Security\Core\Authentication\Token\TokenInterface |
|
|
getUser ( ) : Symfony\Component\Security\Core\User\UserInterface | null |
Returns the current logged in User if available. Null if not or another token than Jarves' is active. |
|
isAdmin ( ) : boolean |
When a route is loading within /jarves |
|
isLoggedIn ( ) : boolean |
Returns true when a non AnonymousToken is set (which primarily means a real User is logged in) |
|
reset ( ) |
|
|
setCurrentDomain ( Domain $domain ) |
|
|
setCurrentPage ( Node $node ) |
|
|
setPageResponse ( PageResponse $pageResponse ) |
|
|
updatePage2DomainCache ( ) |
|
|