eZPublishCommunityProject  2013.4
eZ\Publish\Core\REST\Server\View\AcceptHeaderVisitorDispatcher Class Reference

Dispatcher for various visitors depending on the mime-type accept header. More...

Public Member Functions

 __construct (array $mapping)
 Construct from view handler mapping. More...
 
 addVisitor ($regexp, OutputVisitor $visitor)
 Adds view handler. More...
 

Protected Attributes

 $mapping = array()
 

Detailed Description

Dispatcher for various visitors depending on the mime-type accept header.

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Server\View\AcceptHeaderVisitorDispatcher::__construct ( array  $mapping)

Construct from view handler mapping.

Parameters
array$mapping

Member Function Documentation

eZ\Publish\Core\REST\Server\View\AcceptHeaderVisitorDispatcher::addVisitor (   $regexp,
OutputVisitor  $visitor 
)

Adds view handler.

Parameters
string$regexp
\eZ\Publish\Core\REST\Common\Output\Visitor$visitor

Referenced by eZ\Publish\Core\REST\Server\View\AcceptHeaderVisitorDispatcher\__construct().

Member Data Documentation

eZ\Publish\Core\REST\Server\View\AcceptHeaderVisitorDispatcher::$mapping = array()
protected

The documentation for this class was generated from the following file: