Class Cycle

Summary

Fully Qualified Name: Zend\View\Helper\Cycle
Extends: AbstractHelper
Implements: Iterator

Description

Helper for alternating between set of values

Methods

Name Description Defined By
__invoke() Add elements to alternate Cycle
__toString() Cast to string Cycle
assign() Add elements to alternate Cycle
current() Return current element Cycle
getAll() Return all elements Cycle
getName() Gets actual name of cycle Cycle
getView() Get the view object AbstractHelper
key() Return iteration number Cycle
next() Move to next value Cycle
prev() Move to previous value Cycle
rewind() Rewind pointer Cycle
setName() Sets actual name of cycle Cycle
setView() Set the View object AbstractHelper
toString() Turn helper into string Cycle
valid() Check if element is valid Cycle

Method Details

__invoke()

Add elements to alternate

Parameter Name Type Description
$data array
$name string

Returns: \Cycle

__toString()

Cast to string

Returns: string

assign()

Add elements to alternate

Parameter Name Type Description
$data array
$name string

Returns: \Cycle

current()

Return current element

Returns: mixed

getAll()

Return all elements

Returns: array

getName()

Gets actual name of cycle

Returns: string

getView()

Get the view object

Returns: null|\Renderer

key()

Return iteration number

Returns: int

next()

Move to next value

Returns: \Cycle

prev()

Move to previous value

Returns: \Cycle

rewind()

Rewind pointer

Returns: \Cycle

setName()

Sets actual name of cycle

Parameter Name Type Description
$name
$name

Returns: \Cycle

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

toString()

Turn helper into string

Returns: string

valid()

Check if element is valid

Returns: bool

Top