Methods

Grabs a param from route match by default.

__invoke(string $param, mixed $default) : mixed

Parameters

$param

string

$default

mixed

Returns

mixed

Return all files or a single file.

fromFiles(string $name, mixed $default) : array | \ArrayAccess | null

Parameters

$name

string

File name to retrieve, or null to get all.

$default

mixed

Default value to use when the file is missing.

Returns

array\ArrayAccessnull

Return all header parameters or a single header parameter.

fromHeader(string $header, mixed $default) : null | \Zend\Http\Header\HeaderInterface

Parameters

$header

string

Header name to retrieve, or null to get all.

$default

mixed

Default value to use when the requested header is missing.

Returns

Return all post parameters or a single post parameter.

fromPost(string $param, mixed $default) : mixed

Parameters

$param

string

Parameter name to retrieve, or null to get all.

$default

mixed

Default value to use when the parameter is missing.

Returns

mixed

Return all query parameters or a single query parameter.

fromQuery(string $param, mixed $default) : mixed

Parameters

$param

string

Parameter name to retrieve, or null to get all.

$default

mixed

Default value to use when the parameter is missing.

Returns

mixed

Return all route parameters or a single route parameter.

fromRoute(string $param, mixed $default) : mixed

Parameters

$param

string

Parameter name to retrieve, or null to get all.

$default

mixed

Default value to use when the parameter is missing.

Exceptions

\Zend\Mvc\Exception\RuntimeException

Returns

mixed

Get the current controller instance

getController() : null | \Zend\Stdlib\DispatchableInterface
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::getController()

Returns

Set the current controller instance

setController(\Zend\Stdlib\DispatchableInterface $controller) : void
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::setController()

Parameters

 Properties

 

$controller

$controller : null | \Zend\Stdlib\DispatchableInterface
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::$$controller