PHP Class Sulu\Component\Content\Document\Subscriber\StructureRemoveSubscriber

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, Sulu\Component\DocumentManager\DocumentInspector $documentInspector, PHPCR\SessionInterface $defaultSession, PHPCR\SessionInterface $liveSession, Sulu\Component\DocumentManager\MetadataFactoryInterface $metadataFactory )
getSubscribedEvents ( )
handleRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event )
removeDocument ( $document )

Private Methods

Method Description
dereferenceProperty ( PHPCR\NodeInterface $node, PHPCR\PropertyInterface $property ) Remove the given property, or the value which references the node (when multi-valued).
removeReferences ( $document )
removeReferencesForNode ( PHPCR\NodeInterface $node )
removeRoute ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document ) Removes related route of given document.

Method Details

__construct() public method

public __construct ( Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, Sulu\Component\DocumentManager\DocumentInspector $documentInspector, PHPCR\SessionInterface $defaultSession, PHPCR\SessionInterface $liveSession, Sulu\Component\DocumentManager\MetadataFactoryInterface $metadataFactory )
$documentManager Sulu\Component\DocumentManager\DocumentManagerInterface
$documentInspector Sulu\Component\DocumentManager\DocumentInspector
$defaultSession PHPCR\SessionInterface
$liveSession PHPCR\SessionInterface
$metadataFactory Sulu\Component\DocumentManager\MetadataFactoryInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

handleRemove() public method

public handleRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event )
$event Sulu\Component\DocumentManager\Event\RemoveEvent

removeDocument() public method

public removeDocument ( $document )