Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Helper for alternating between set of values
array $_data = 'array'Array of values
Detailsstring $_name = 'self'Actual name of cycle
Detailsarray $_pointers = 'array'Pointers
Details__toString(
)
:
stringCast to string
Detailsassign(
array $data, string $name
=
self
)
:
Zend_View_Helper_CycleAdd elements to alternate
Detailscurrent(
)
:
mixedReturn current element
Detailscycle(
array $data
=
array, string $name
=
self
)
:
Zend_View_Helper_CycleAdd elements to alternate
DetailsgetAll(
)
:
arrayReturn all elements
DetailsgetName(
)
:
stringGets actual name of cycle
Detailskey(
)
:
intReturn iteration number
Detailsnext(
)
:
Zend_View_Helper_CycleMove to next value
Detailsprev(
)
:
Zend_View_Helper_CycleMove to previous value
Detailsrewind(
)
:
Zend_View_Helper_CycleRewind pointer
DetailssetName(
$name
=
self
)
:
Zend_View_Helper_CycleSets actual name of cycle
DetailstoString(
)
:
stringTurn helper into string
Detailsvalid(
)
:
boolCheck if element is valid
Details