package Default
inherited_from \Zend\View\Helper\AbstractHelper

 Methods

Render the provided pages. This checks if $view->paginator is set and, if so, uses that. Also, if no scrolling style or partial are specified, the defaults will be used (if set).

__invoke(\Zend\Paginator\Paginator $paginator = null, string $scrollingStyle = null, string $partial = null, array|string $params = null) : string

Parameters

$paginator

\Zend\Paginator\Paginator

(Optional)

$scrollingStyle

string

(Optional) Scrolling style

$partial

string

(Optional) View partial

$params

arraystring

(Optional) params to pass to the partial

Exceptions

\Zend\View\Exception\RuntimeException if no paginator or no view partial provided
\Zend\View\Exception\InvalidArgumentException if partial is invalid array

Returns

string

Gets the default scrolling style

getDefaultScrollingStyle() : string
Static

Returns

string

Gets the default view partial

getDefaultViewPartial() : string | array
Static

Returns

stringarray

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from \Zend\View\Helper\HelperInterface::getView()

Returns

null\Zend\View\Renderer\RendererInterface

Sets the default Scrolling Style

setDefaultScrollingStyle(string $style) 
Static

Parameters

$style

string

string 'all' | 'elastic' | 'sliding' | 'jumping'

Sets the default view partial.

setDefaultViewPartial(string|array $partial) 
Static

Parameters

$partial

stringarray

View partial

Set the View object

setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from \Zend\View\Helper\HelperInterface::setView()

Parameters

$view

\Zend\View\Renderer\RendererInterface

Returns

\Zend\View\Helper\AbstractHelper

 Properties

 

Default Scrolling Style

$defaultScrollingStyle : string

Default

'sliding'
Static
 

Default view partial

$defaultViewPartial : string | array

Default

null
Static
 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null