Helper for alternating between set of values

package Zend_View
subpackage Helper

 Methods

Add elements to alternate

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

Parameters

$data

array

$name

string

Returns

Cast to string

__toString() : string

Returns

string

Add elements to alternate

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

Parameters

$data

array

$name

string

Returns

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\AbstractHelper::getView()

Returns

Return iteration number

key() : int

Returns

int

Rewind pointer

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

Sets actual name of cycle

setName($name) : \Zend\View\Helper\Cycle

Parameters

$name

Returns

Set the View object

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

inherited_from \Zend\View\Helper\AbstractHelper::setView()

Parameters

Returns

Turn helper into string

toString() : string

Returns

string

Check if element is valid

valid() : bool

Returns

bool

 Properties

 

Array of values

$data : array

 

Actual name of cycle

$name : string

 

Pointers

$pointers : array

 

View object

$view : \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::$$view

 Constants

 

Default name

DEFAULT_NAME : string