PHP Interface Sulu\Component\PHPCR\SessionManager\SessionManagerInterface

Datei anzeigen Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
getContentNode ( string $webspaceKey ) : PHPCR\NodeInterface Returns the content node for given webspace.
getContentPath ( string $webspaceKey ) : string Returns the content path for given webspace.
getRouteNode ( string $webspaceKey, string $languageCode, string $segment = null ) : PHPCR\NodeInterface Returns the route node for given webspace.
getRoutePath ( string $webspaceKey, string $languageCode, string $segment = null ) : string Returns the route path for given webspace.
getSession ( ) : PHPCR\SessionInterface Returns a valid session to interact with a phpcr database.
getSnippetNode ( ) : PHPCR\NodeInterface returns the snippet node.
getWebspaceNode ( $webspaceKey ) : PHPCR\NodeInterface Returns the webspace node for given webspace.
getWebspacePath ( $webspaceKey ) : string Returns the webspace path for given webspace.

Method Details

getContentNode() public method

Returns the content node for given webspace.
Deprecation: Do not use anymore, because the node is always returned from the default session, although multiple sessions can exist
public getContentNode ( string $webspaceKey ) : PHPCR\NodeInterface
$webspaceKey string
return PHPCR\NodeInterface

getContentPath() public method

Returns the content path for given webspace.
public getContentPath ( string $webspaceKey ) : string
$webspaceKey string
return string

getRouteNode() public method

Returns the route node for given webspace.
Deprecation: Do not use anymore, because the node is always returned from the default session, although multiple sessions can exist
public getRouteNode ( string $webspaceKey, string $languageCode, string $segment = null ) : PHPCR\NodeInterface
$webspaceKey string
$languageCode string
$segment string
return PHPCR\NodeInterface

getRoutePath() public method

Returns the route path for given webspace.
public getRoutePath ( string $webspaceKey, string $languageCode, string $segment = null ) : string
$webspaceKey string
$languageCode string
$segment string
return string

getSession() public method

Returns a valid session to interact with a phpcr database.
Deprecation: Use the doctrine_phpcr service to retrieve the session
public getSession ( ) : PHPCR\SessionInterface
return PHPCR\SessionInterface

getSnippetNode() public method

returns the snippet node.
Deprecation: Do not use anymore, because the node is always returned from the default session, although multiple sessions can exist
public getSnippetNode ( ) : PHPCR\NodeInterface
return PHPCR\NodeInterface

getWebspaceNode() public method

Returns the webspace node for given webspace.
Deprecation: Do not use anymore, because the node is always returned from the default session, although multiple sessions can exist
public getWebspaceNode ( $webspaceKey ) : PHPCR\NodeInterface
return PHPCR\NodeInterface

getWebspacePath() public method

Returns the webspace path for given webspace.
public getWebspacePath ( $webspaceKey ) : string
return string