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

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
显示文件 Open project: sulu/sulu Class Usage Examples

Public Methods

Method 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 method

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

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

handleMetadataLoad() public method

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

handlePersist() public method

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 method

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