Zend Framework
1.12
|
Public Member Functions | |
cycle (array $data=array(), $name=self::DEFAULT_NAME) | |
Add elements to alternate. | |
assign (Array $data, $name=self::DEFAULT_NAME) | |
Add elements to alternate. | |
setName ($name=self::DEFAULT_NAME) | |
Sets actual name of cycle. | |
getName () | |
Gets actual name of cycle. | |
getAll () | |
Return all elements. | |
toString () | |
Turn helper into string. | |
__toString () | |
Cast to string. | |
next () | |
Move to next value. | |
prev () | |
Move to previous value. | |
key () | |
Return iteration number. | |
rewind () | |
Rewind pointer. | |
valid () | |
Check if element is valid. | |
current () | |
Return current element. | |
Public Attributes | |
const | DEFAULT_NAME = 'default' |
Protected Attributes | |
$_pointers = array(self::DEFAULT_NAME =>-1) | |
$_data = array(self::DEFAULT_NAME=>array()) | |
$_name = self::DEFAULT_NAME | |
__toString | ( | ) |
Cast to string.
assign | ( | Array | $data, |
$name = self::DEFAULT_NAME |
|||
) |
current | ( | ) |
Return current element.
cycle | ( | array | $data = array() , |
$name = self::DEFAULT_NAME |
|||
) |
getAll | ( | ) |
Return all elements.
getName | ( | ) |
Gets actual name of cycle.
key | ( | ) |
Return iteration number.
next | ( | ) |
Move to next value.
prev | ( | ) |
Move to previous value.
rewind | ( | ) |
Rewind pointer.
setName | ( | $name = self::DEFAULT_NAME | ) |
toString | ( | ) |
Turn helper into string.
valid | ( | ) |
Check if element is valid.
|
protected |
|
protected |
|
protected |
const DEFAULT_NAME = 'default' |