PHP 클래스 Sulu\Component\Content\Types\ResourceLocator\Mapper\PhpcrMapper

상속: implements Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__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 )