Method | Description | |
---|---|---|
__construct ( Sulu\Component\DocumentManager\PropertyEncoder $encoder, Sulu\Component\Content\ContentTypeManagerInterface $contentTypeManager, |
||
configureOptions ( Sulu\Component\DocumentManager\Event\ConfigureOptionsEvent $event ) | ||
getSubscribedEvents ( ) | ||
handleHydrate ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) | ||
handlePersistStagedProperties ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) | Commit the properties, which are only staged on the structure yet. | |
handlePersistStructureType ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) | Set the structure type early so that subsequent subscribers operate upon the correct structure type. | |
saveStructureData ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) |
Method | Description | |
---|---|---|
createStructure ( mixed $document ) : |
||
getDefaultStructureType ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document ) : string | Return the default structure for the given StructureBehavior implementing document. | |
getDefaultStructureTypeFromConfig ( string $alias ) : string | Returns configured "default_type". | |
getStructure ( object $document, string $structureType, boolean $rehydrate ) : Sulu\Component\Content\Document\Structure\StructureInterface | Return the a structure for the document. | |
getStructureTypePropertyName ( $document, $locale ) | ||
mapContentToNode ( mixed $document, PHPCR\NodeInterface $node, string $locale, boolean $ignoreRequired ) | Map to the content properties to the node using the content types. | |
supportsBehavior ( $document ) |
public __construct ( Sulu\Component\DocumentManager\PropertyEncoder $encoder, Sulu\Component\Content\ContentTypeManagerInterface $contentTypeManager, |
||
$encoder | Sulu\Component\DocumentManager\PropertyEncoder | |
$contentTypeManager | Sulu\Component\Content\ContentTypeManagerInterface | |
$inspector | ||
$legacyPropertyFactory | ||
$webspaceManager | Sulu\Component\Webspace\Manager\WebspaceManagerInterface | |
$defaultTypes | array |
public configureOptions ( Sulu\Component\DocumentManager\Event\ConfigureOptionsEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\ConfigureOptionsEvent |
public handleHydrate ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\AbstractMappingEvent |
public handlePersistStagedProperties ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\PersistEvent |
public handlePersistStructureType ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\PersistEvent |
public saveStructureData ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\AbstractMappingEvent |