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

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( DocumentInspector $documentInspector, PropertyEncoder $propertyEncoder )
getSubscribedEvents ( )
handleMetadataLoad ( Sulu\Component\DocumentManager\Event\MetadataLoadEvent $event )
handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) Adjusts the order of the document and its siblings.
handleReorder ( Sulu\Component\DocumentManager\Event\ReorderEvent $event ) Adjusts the order of the document and its siblings.

Method Details

__construct() public méthode

public __construct ( DocumentInspector $documentInspector, PropertyEncoder $propertyEncoder )
$documentInspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$propertyEncoder Sulu\Bundle\DocumentManagerBundle\Bridge\PropertyEncoder

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

handleMetadataLoad() public méthode

public handleMetadataLoad ( Sulu\Component\DocumentManager\Event\MetadataLoadEvent $event )
$event Sulu\Component\DocumentManager\Event\MetadataLoadEvent

handlePersist() public méthode

Adjusts the order of the document and its siblings.
public handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event )
$event Sulu\Component\DocumentManager\Event\PersistEvent

handleReorder() public méthode

Adjusts the order of the document and its siblings.
public handleReorder ( Sulu\Component\DocumentManager\Event\ReorderEvent $event )
$event Sulu\Component\DocumentManager\Event\ReorderEvent