package Default
inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin

 Methods

Grabs a param from route match by default.

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

Parameters

$param

string

$default

mixed

Returns

mixed

Return all files or a single file.

fromFiles(string $name = null, mixed $default = null) : 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 = null, mixed $default = null) : 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

null\Zend\Http\Header\HeaderInterface

Return all post parameters or a single post parameter.

fromPost(string $param = null, mixed $default = null) : 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 = null, mixed $default = null) : 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 = null, mixed $default = null) : 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\PluginInterface::getController()

Returns

null\Zend\Stdlib\DispatchableInterface

Set the current controller instance

setController(\Zend\Stdlib\DispatchableInterface $controller) : void
Inherited
inherited_from \Zend\Mvc\Controller\Plugin\PluginInterface::setController()

Parameters

$controller

\Zend\Stdlib\DispatchableInterface

 Properties

 

$controller

$controller : null | \Zend\Stdlib\DispatchableInterface

Default