PHP 클래스 Sulu\Component\Content\Document\Subscriber\StructureSubscriber

상속: extends Sulu\Component\Content\Document\Subscriber\AbstractMappingSubscriber
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Sulu\Component\DocumentManager\PropertyEncoder $encoder, Sulu\Component\Content\ContentTypeManagerInterface $contentTypeManager, DocumentInspector $inspector, LegacyPropertyFactory $legacyPropertyFactory, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, array $defaultTypes )
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 )

비공개 메소드들

메소드 설명
createStructure ( mixed $document ) : ManagedStructure
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 )

메소드 상세

__construct() 공개 메소드

public __construct ( Sulu\Component\DocumentManager\PropertyEncoder $encoder, Sulu\Component\Content\ContentTypeManagerInterface $contentTypeManager, DocumentInspector $inspector, LegacyPropertyFactory $legacyPropertyFactory, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, array $defaultTypes )
$encoder Sulu\Component\DocumentManager\PropertyEncoder
$contentTypeManager Sulu\Component\Content\ContentTypeManagerInterface
$inspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$legacyPropertyFactory Sulu\Component\Content\Compat\Structure\LegacyPropertyFactory
$webspaceManager Sulu\Component\Webspace\Manager\WebspaceManagerInterface
$defaultTypes array

configureOptions() 공개 메소드

public configureOptions ( Sulu\Component\DocumentManager\Event\ConfigureOptionsEvent $event )
$event Sulu\Component\DocumentManager\Event\ConfigureOptionsEvent

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

handleHydrate() 공개 메소드

public handleHydrate ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event )
$event Sulu\Component\DocumentManager\Event\AbstractMappingEvent

handlePersistStagedProperties() 공개 메소드

Commit the properties, which are only staged on the structure yet.
public handlePersistStagedProperties ( Sulu\Component\DocumentManager\Event\PersistEvent $event )
$event Sulu\Component\DocumentManager\Event\PersistEvent

handlePersistStructureType() 공개 메소드

Set the structure type early so that subsequent subscribers operate upon the correct structure type.
public handlePersistStructureType ( Sulu\Component\DocumentManager\Event\PersistEvent $event )
$event Sulu\Component\DocumentManager\Event\PersistEvent

saveStructureData() 공개 메소드

public saveStructureData ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event )
$event Sulu\Component\DocumentManager\Event\AbstractMappingEvent