Helper for alternating between set of values

package Default
inherited_from \Zend\View\Helper\AbstractHelper

 Methods

Add elements to alternate

__invoke(array $data = array(), string $name = self::DEFAULT_NAME) : \Zend\View\Helper\Cycle

Parameters

$data

array

$name

string

Returns

\Zend\View\Helper\Cycle

Cast to string

__toString() : string

Returns

string

Add elements to alternate

assign(array $data, string $name = self::DEFAULT_NAME) : \Zend\View\Helper\Cycle

Parameters

$data

array

$name

string

Returns

\Zend\View\Helper\Cycle

Return current element

current() : mixed

Returns

mixed

Return all elements

getAll() : array

Returns

array

Gets actual name of cycle

getName() : string

Returns

string

Get the view object

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

Returns

null\Zend\View\Renderer\RendererInterface

Return iteration number

key() : integer

Returns

integer

Move to next value

next() : \Zend\View\Helper\Cycle

Returns

\Zend\View\Helper\Cycle

Move to previous value

prev() : \Zend\View\Helper\Cycle

Returns

\Zend\View\Helper\Cycle

Rewind pointer

rewind() : \Zend\View\Helper\Cycle

Returns

\Zend\View\Helper\Cycle

Sets actual name of cycle

setName($name = self::DEFAULT_NAME) : \Zend\View\Helper\Cycle

Parameters

$name

Returns

\Zend\View\Helper\Cycle

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

Turn helper into string

toString() : string

Returns

string

Check if element is valid

valid() : boolean

Returns

boolean

 Properties

 

Array of values

$data : array

Default

array(self::DEFAULT_NAME => array())
 

Actual name of cycle

$name : string

Default

self::DEFAULT_NAME
 

Pointers

$pointers : array

Default

array(self::DEFAULT_NAME => -1)
 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null

 Constants

 

Default name

DEFAULT_NAME = 'default' : string