PHP 클래스 DOMPDFModule\View\Strategy\PdfStrategy

상속: implements Zend\EventManager\ListenerAggregateInterface
파일 보기 프로젝트 열기: raykolbe/DOMPDFModule 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$listeners Zend\Stdlib\CallbackHandler[]
$renderer DOMPDFModule\View\Renderer\PdfRenderer

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( PdfRenderer $renderer ) : void
$renderer DOMPDFModule\View\Renderer\PdfRenderer
리턴 void

attach() 공개 메소드

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

detach() 공개 메소드

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

injectResponse() 공개 메소드

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

selectRenderer() 공개 메소드

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

프로퍼티 상세

$listeners 보호되어 있는 프로퍼티

protected CallbackHandler[],Zend\Stdlib $listeners
리턴 Zend\Stdlib\CallbackHandler[]

$renderer 보호되어 있는 프로퍼티

protected PdfRenderer,DOMPDFModule\View\Renderer $renderer
리턴 DOMPDFModule\View\Renderer\PdfRenderer