PHP Класс Sulu\Component\Content\Types\ResourceLocator\Mapper\PhpcrMapper

Наследование: implements Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Sulu\Component\PHPCR\SessionManager\SessionManagerInterface $sessionManager, Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, DocumentInspector $documentInspector )
deleteByPath ( $path, $webspaceKey, $languageCode, $segmentKey = null )
getParentPath ( $uuid, $webspaceKey, $languageCode, $segmentKey = null )
getUniquePath ( $path, $webspaceKey, $languageCode, $segmentKey = null )
loadByContent ( PHPCR\NodeInterface $contentNode, $webspaceKey, $languageCode, $segmentKey = null )
loadByContentUuid ( $uuid, $webspaceKey, $languageCode, $segmentKey = null )
loadByResourceLocator ( $resourceLocator, $webspaceKey, $languageCode, $segmentKey = null )
loadHistoryByContentUuid ( $uuid, $webspaceKey, $languageCode, $segmentKey = null )
save ( Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior $document )
unique ( $path, $webspaceKey, $languageCode, $segmentKey = null )

Приватные методы

Метод Описание
getPath ( string $relPath, string $webspaceKey, string $languageCode, string $segmentKey ) : string Returns the abspath.
getResourceLocator ( string $path, string $webspaceKey, string $languageCode, string $segmentKey ) : string Returns resource-locator.
getWebspaceRouteNode ( string $webspaceKey, string $languageCode, string $segmentKey ) : PHPCR\NodeInterface Returns base node of routes from phpcr.
getWebspaceRouteNodeBasePath ( string $webspaceKey, string $languageCode, string $segmentKey ) : string Returns base path of routes from phpcr.
isUnique ( PHPCR\NodeInterface $root, string $path ) : boolean Check if path is unique from given $root node.
iterateRouteNodes ( PHPCR\NodeInterface $node, callable $callback, string $webspaceKey, string $languageCode, string $segmentKey = null ) : PHPCR\NodeInterface Iterates over all route nodes assigned by the given node, and executes the callback on it.

Описание методов

__construct() публичный Метод

public __construct ( Sulu\Component\PHPCR\SessionManager\SessionManagerInterface $sessionManager, Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, DocumentInspector $documentInspector )
$sessionManager Sulu\Component\PHPCR\SessionManager\SessionManagerInterface
$documentManager Sulu\Component\DocumentManager\DocumentManagerInterface
$documentInspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector

deleteByPath() публичный Метод

public deleteByPath ( $path, $webspaceKey, $languageCode, $segmentKey = null )

getParentPath() публичный Метод

public getParentPath ( $uuid, $webspaceKey, $languageCode, $segmentKey = null )

getUniquePath() публичный Метод

public getUniquePath ( $path, $webspaceKey, $languageCode, $segmentKey = null )

loadByContent() публичный Метод

public loadByContent ( PHPCR\NodeInterface $contentNode, $webspaceKey, $languageCode, $segmentKey = null )
$contentNode PHPCR\NodeInterface

loadByContentUuid() публичный Метод

public loadByContentUuid ( $uuid, $webspaceKey, $languageCode, $segmentKey = null )

loadByResourceLocator() публичный Метод

public loadByResourceLocator ( $resourceLocator, $webspaceKey, $languageCode, $segmentKey = null )

loadHistoryByContentUuid() публичный Метод

public loadHistoryByContentUuid ( $uuid, $webspaceKey, $languageCode, $segmentKey = null )

save() публичный Метод

public save ( Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior $document )
$document Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior

unique() публичный Метод

public unique ( $path, $webspaceKey, $languageCode, $segmentKey = null )