Метод | Описание | |
---|---|---|
__construct ( Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, |
||
getSubscribedEvents ( ) | ||
handleHydrate ( Sulu\Component\DocumentManager\Event\HydrateEvent $event ) | Writes the history status of the node to the document. | |
handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) | Updates the route for the given document and creates history routes if necessary. | |
handlePublish ( Sulu\Component\DocumentManager\Event\PublishEvent $event ) | Handles the history field for the route on publish. | |
handleRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event ) | Removes the routes for the given document and removes history routes if necessary. |
Метод | Описание | |
---|---|---|
changeOldPathToHistoryRoutes ( Sulu\Component\Content\Document\Behavior\RouteBehavior $oldDocument, Sulu\Component\Content\Document\Behavior\RouteBehavior $newDocument ) | Changes the old route to a history route and redirect to the new route. | |
recursivelyRemoveRoutes ( Sulu\Component\Content\Document\Behavior\RouteBehavior $document ) | Remove given Route and his history. |
public __construct ( Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, |
||
$documentManager | Sulu\Component\DocumentManager\DocumentManagerInterface | |
$documentInspector | ||
$sessionManager | Sulu\Component\PHPCR\SessionManager\SessionManagerInterface |
public handleHydrate ( Sulu\Component\DocumentManager\Event\HydrateEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\HydrateEvent |
public handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\PersistEvent |
public handlePublish ( Sulu\Component\DocumentManager\Event\PublishEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\PublishEvent |
public handleRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\RemoveEvent |