Documentation

ListItems
in package
implements MiddlewareInterface

Controller class for List Items UI

This is the equivalent of the H5 skeleton's skeleton/list.php page file We could not name it List as this is a forbidden class name and we did not want to append Middleware, Controller, Page etc by choice and to demonstrate there is no magic behind - you may feel different

Interfaces, Classes and Traits

MiddlewareInterface

Table of Contents

$injector  : Injector
$logger  : Horde_Log_Logger
$notification  : Horde_Notification_Handler
$page_output  : Horde_PageOutput
$registry  : Horde_Registry
$responseFactory  : ResponseFactoryInterface
$session  : Horde_Session
$streamFactory  : StreamFactoryInterface
$view  : Horde_View
__construct()  : mixed
Constructor.
process()  : ResponseInterface
Process the incoming request.
buildResponseStream()  : StreamInterface|null
handleNativeException()  : StreamInterface|null

Properties

$notification

protected Horde_Notification_Handler $notification

$page_output

protected Horde_PageOutput $page_output

$registry

protected Horde_Registry $registry

$responseFactory

protected ResponseFactoryInterface $responseFactory

$streamFactory

protected StreamFactoryInterface $streamFactory

Methods

__construct()

Constructor.

public __construct(ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory, Injector $injector, Horde_Registry $registry, Horde_Session $session, Horde_PageOutput $page_output, Horde_View $view, Horde_Notification_Handler $notification, Horde_Log_Logger $logger) : mixed

This should be reusable for a lot of UI cases. Maybe it could be factored out to a trait or base class.

Parameters
$responseFactory : ResponseFactoryInterface
$streamFactory : StreamFactoryInterface
$injector : Injector
$registry : Horde_Registry
$session : Horde_Session
$page_output : Horde_PageOutput
$view : Horde_View
$notification : Horde_Notification_Handler
$logger : Horde_Log_Logger
Return values
mixed

process()

Process the incoming request.

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface

The request might be amended or modified by previous middlewares

$handler : RequestHandlerInterface

We might refuse to deliver and ask the handler to either process the request himself or delegate to the next middleware (or a child handler). This might be useful to connect multiple presentations to the same route and let the presentation decide if it is responsible or not (Traditional/Dynamic/Mobile)

Tags
see
MiddlewareInterface

for concept

Return values
ResponseInterface

The response will bubble up through the chain of previous middleware before being sent

buildResponseStream()

protected buildResponseStream(ServerRequestInterface $request) : StreamInterface|null
Parameters
$request : ServerRequestInterface
Return values
StreamInterface|null

Search results