Property | Type | Description | |
---|---|---|---|
$cleaner | Sulu\Component\PHPCR\PathCleanupInterface | ||
$contentTypeManager | Sulu\Component\Content\ContentTypeManagerInterface | ||
$documentInspector | |||
$documentManager | Sulu\Component\DocumentManager\DocumentManagerInterface | ||
$mapper | Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface | ||
$nodeHelper | |||
$structureManager | Sulu\Component\Content\Compat\StructureManagerInterface |
Method | Description | |
---|---|---|
__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, |
||
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 ) |
Method | Description | |
---|---|---|
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. |
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, |
||
$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 | ||
$documentInspector | ||
$documentManager | Sulu\Component\DocumentManager\DocumentManagerInterface | |
$resourceLocatorGenerator | Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorGeneratorInterface |
public deleteByPath ( $path, $webspaceKey, $languageCode, $segmentKey = null ) |
public generate ( $title, $parentUuid, $webspaceKey, $languageCode, $segmentKey = null ) |
public loadByContent ( Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior $document ) | ||
$document | Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior |
public loadByContentUuid ( $uuid, $webspaceKey, $languageCode, $segmentKey = null ) |
public loadByResourceLocator ( $resourceLocator, $webspaceKey, $languageCode, $segmentKey = null ) |
public loadHistoryByContentUuid ( $uuid, $webspaceKey, $languageCode, $segmentKey = null ) |
public save ( Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior $document, $userId ) | ||
$document | Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior |
protected PathCleanupInterface,Sulu\Component\PHPCR $cleaner | ||
return | Sulu\Component\PHPCR\PathCleanupInterface |
protected ContentTypeManagerInterface,Sulu\Component\Content $contentTypeManager | ||
return | Sulu\Component\Content\ContentTypeManagerInterface |
protected DocumentInspector,Sulu\Bundle\DocumentManagerBundle\Bridge $documentInspector | ||
return |
protected DocumentManagerInterface,Sulu\Component\DocumentManager $documentManager | ||
return | Sulu\Component\DocumentManager\DocumentManagerInterface |
protected ResourceLocatorMapperInterface,Sulu\Component\Content\Types\ResourceLocator\Mapper $mapper | ||
return | Sulu\Component\Content\Types\ResourceLocator\Mapper\ResourceLocatorMapperInterface |
protected SuluNodeHelper,Sulu\Component\Util $nodeHelper | ||
return |