PHP Класс Sulu\Component\Content\Document\Subscriber\TitleSubscriber

Наследование: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Sulu\Component\DocumentManager\PropertyEncoder $propertyEncoder )
getSubscribedEvents ( )
setTitleOnDocument ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) Sets the title on the document from the node.
setTitleOnNode ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) Sets the title on the node from the value in the document.

Приватные методы

Метод Описание
supports ( $document ) : boolean Returns true if the given document is supported by this subscriber.

Описание методов

__construct() публичный Метод

public __construct ( Sulu\Component\DocumentManager\PropertyEncoder $propertyEncoder )
$propertyEncoder Sulu\Component\DocumentManager\PropertyEncoder

getSubscribedEvents() публичный статический Метод

public static getSubscribedEvents ( )

setTitleOnDocument() публичный Метод

Sets the title on the document from the node.
public setTitleOnDocument ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event )
$event Sulu\Component\DocumentManager\Event\AbstractMappingEvent

setTitleOnNode() публичный Метод

Sets the title on the node from the value in the document.
public setTitleOnNode ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event )
$event Sulu\Component\DocumentManager\Event\AbstractMappingEvent