Wordless
Stop writing themes like it's 1998.
Public Member Functions | List of all members
Cycle Class Reference

This module provides methods for cycling iteration inside views. More...

Public Member Functions

 __construct ($values)
 Build the class with the specified values. More...
 
 values ()
 Returns values. More...
 
 reset ()
 Reset the cycle index.
 
 current_value ()
 Returns the current value in iteration. More...
 
 value ()
 Returns the current value and iterate to the next value. More...
 
 next ()
 Goes to the next value in the iteration.
 

Detailed Description

This module provides methods for cycling iteration inside views.

Constructor & Destructor Documentation

◆ __construct()

Cycle::__construct (   $values)

Build the class with the specified values.

Parameters
mixed$valuesData through which class will cycle.

Member Function Documentation

◆ current_value()

Cycle::current_value ( )

Returns the current value in iteration.

Returns
mixed The current data in the iteration.

◆ value()

Cycle::value ( )

Returns the current value and iterate to the next value.

Returns
mixed The current data in the iteration.

◆ values()

Cycle::values ( )

Returns values.

Returns
mixed The values stored in the $this->values class variable.