This is a very simple class that iterates over a set (of color codes or names maybe?) and returns the next element in the set on each iteration, coming to first element again.
It can be useful for generating listings with rows using alternated colors.
The class can take an array with an arbitrary number of colors names or values.
In the first iteration it returns the first color in the array. In the next iteration it returns the following color, and so on. When the end or the array is reached, it returns the first color again.
The comments in the class are in Spanish.
Atributes
+---- colores // Available Colors
+---- color // Actual color
Methods
+---- alternarColor( array("color1",...,"colorN") ) // Constructor
+---- imprimir () // Prints out value
|
|
| Name: |
AlternarColor array iterator |
| Base name: |
alternarcolor |
| Description: |
Loop an array endlesly, returns current element |
| Version: |
- |
| PHP version: |
- |
| License: |
GNU General Public License (GPL) |
| All time users: |
432 users |
| All time rank: |
5324 |
| Week users: |
0 users |
| Week rank: |
2354  |
| |
|
| There are not enough user ratings to display for this class. |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|