PHP Class DOMPDFModule\View\Strategy\PdfStrategy

Inheritance: implements Zend\EventManager\ListenerAggregateInterface
Afficher le fichier Open project: raykolbe/DOMPDFModule Class Usage Examples

Protected Properties

Свойство Type Description
$listeners Zend\Stdlib\CallbackHandler[]
$renderer DOMPDFModule\View\Renderer\PdfRenderer

Méthodes publiques

Méthode Description
__construct ( PdfRenderer $renderer ) : void Constructor
attach ( Zend\EventManager\EventManagerInterface $events, integer $priority = 1 ) : void Attach the aggregate to the specified event manager
detach ( Zend\EventManager\EventManagerInterface $events ) : void Detach aggregate listeners from the specified event manager
injectResponse ( Zend\View\ViewEvent $event ) : void Inject the response with the PDF payload and appropriate Content-Type header
selectRenderer ( Zend\View\ViewEvent $event ) : null | PdfRenderer Detect if we should use the PdfRenderer based on model type

Method Details

__construct() public méthode

Constructor
public __construct ( PdfRenderer $renderer ) : void
$renderer DOMPDFModule\View\Renderer\PdfRenderer
Résultat void

attach() public méthode

Attach the aggregate to the specified event manager
public attach ( Zend\EventManager\EventManagerInterface $events, integer $priority = 1 ) : void
$events Zend\EventManager\EventManagerInterface
$priority integer
Résultat void

detach() public méthode

Detach aggregate listeners from the specified event manager
public detach ( Zend\EventManager\EventManagerInterface $events ) : void
$events Zend\EventManager\EventManagerInterface
Résultat void

injectResponse() public méthode

Inject the response with the PDF payload and appropriate Content-Type header
public injectResponse ( Zend\View\ViewEvent $event ) : void
$event Zend\View\ViewEvent
Résultat void

selectRenderer() public méthode

Detect if we should use the PdfRenderer based on model type
public selectRenderer ( Zend\View\ViewEvent $event ) : null | PdfRenderer
$event Zend\View\ViewEvent
Résultat null | DOMPDFModule\View\Renderer\PdfRenderer

Property Details

$listeners protected_oe property

protected CallbackHandler[],Zend\Stdlib $listeners
Résultat Zend\Stdlib\CallbackHandler[]

$renderer protected_oe property

protected PdfRenderer,DOMPDFModule\View\Renderer $renderer
Résultat DOMPDFModule\View\Renderer\PdfRenderer