PHP 클래스 Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategy

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

보호된 프로퍼티들

프로퍼티 타입 설명
$cleaner Sulu\Component\PHPCR\PathCleanupInterface
$contentTypeManager Sulu\Component\Content\ContentTypeManagerInterface
$documentInspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$documentManager Sulu\Component\DocumentManager\DocumentManagerInterface
$mapper Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface
$nodeHelper Sulu\Component\Util\SuluNodeHelper
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface

공개 메소드들

메소드 설명
__construct ( Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface $mapper, Sulu\Component\PHPCR\PathCleanupInterface $cleaner, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\ContentTypeManagerInterface $contentTypeManager, SuluNodeHelper $nodeHelper, DocumentInspector $documentInspector, Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorGeneratorInterface $resourceLocatorGenerator )
deleteByPath ( $path, $webspaceKey, $languageCode, $segmentKey = null )
generate ( $title, $parentUuid, $webspaceKey, $languageCode, $segmentKey = null )
isValid ( $path, $webspaceKey, $languageCode, $segmentKey = null )
loadByContent ( Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior $document )
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, $userId )

비공개 메소드들

메소드 설명
getPublishedAncestorOrSelf ( object $document ) : object Returns the first ancestor-or-self of the given document which is published and therefore has an assigned resource locator. If all ancestor documents are unpublished, the root document is returned.

메소드 상세

__construct() 공개 메소드

public __construct ( Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface $mapper, Sulu\Component\PHPCR\PathCleanupInterface $cleaner, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\ContentTypeManagerInterface $contentTypeManager, SuluNodeHelper $nodeHelper, DocumentInspector $documentInspector, Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorGeneratorInterface $resourceLocatorGenerator )
$mapper Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface
$cleaner Sulu\Component\PHPCR\PathCleanupInterface
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$contentTypeManager Sulu\Component\Content\ContentTypeManagerInterface
$nodeHelper Sulu\Component\Util\SuluNodeHelper
$documentInspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$documentManager Sulu\Component\DocumentManager\DocumentManagerInterface
$resourceLocatorGenerator Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorGeneratorInterface

deleteByPath() 공개 메소드

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

generate() 공개 메소드

public generate ( $title, $parentUuid, $webspaceKey, $languageCode, $segmentKey = null )

isValid() 공개 메소드

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

loadByContent() 공개 메소드

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

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, $userId )
$document Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior

프로퍼티 상세

$cleaner 보호되어 있는 프로퍼티

protected PathCleanupInterface,Sulu\Component\PHPCR $cleaner
리턴 Sulu\Component\PHPCR\PathCleanupInterface

$contentTypeManager 보호되어 있는 프로퍼티

protected ContentTypeManagerInterface,Sulu\Component\Content $contentTypeManager
리턴 Sulu\Component\Content\ContentTypeManagerInterface

$documentInspector 보호되어 있는 프로퍼티

protected DocumentInspector,Sulu\Bundle\DocumentManagerBundle\Bridge $documentInspector
리턴 Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector

$documentManager 보호되어 있는 프로퍼티

protected DocumentManagerInterface,Sulu\Component\DocumentManager $documentManager
리턴 Sulu\Component\DocumentManager\DocumentManagerInterface

$mapper 보호되어 있는 프로퍼티

protected ResourceLocatorMapperInterface,Sulu\Component\Content\Types\ResourceLocator\Mapper $mapper
리턴 Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface

$nodeHelper 보호되어 있는 프로퍼티

protected SuluNodeHelper,Sulu\Component\Util $nodeHelper
리턴 Sulu\Component\Util\SuluNodeHelper

$structureManager 보호되어 있는 프로퍼티

protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager
리턴 Sulu\Component\Content\Compat\StructureManagerInterface