Fully Qualified Name: | Laminas\View\Helper\Cycle |
Extends: | AbstractHelper |
Implements: | Iterator |
Helper for alternating between set of values
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 |
Add elements to alternate
Parameter Name | Type | Description |
---|---|---|
$data | array | |
$name | string |
Returns: \Cycle
Cast to string
Returns: string
Add elements to alternate
Parameter Name | Type | Description |
---|---|---|
$data | array | |
$name | string |
Returns: \Cycle
Return current element
Returns: mixed
Return all elements
Returns: array
Gets actual name of cycle
Returns: string
Get the view object
Returns: null|\Renderer
Return iteration number
Returns: int
Move to next value
Returns: \Cycle
Move to previous value
Returns: \Cycle
Rewind pointer
Returns: \Cycle
Sets actual name of cycle
Parameter Name | Type | Description |
---|---|---|
$name | ||
$name |
Returns: \Cycle
Set the View object
Parameter Name | Type | Description |
---|---|---|
$view | \Renderer |
Returns: \AbstractHelper
Turn helper into string
Returns: string
Check if element is valid
Returns: bool