PHP Classes
Icontem

Class: AlternarColor array iterator


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Alfredo Rahn  >  AlternarColor array iterator  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: AlternarColor array iterator Support forum
Base name: alternarcolor
Description: Loop an array endlesly, returns current element
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
All time users: 378 users
All time rank: 4034
Week users: 1 user
Week rank: 3753
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Alfredo Rahn
Name: Alfredo Rahn <e-mail contact>
Published packages: 4 Browse this author's classes Browse this author's classes
Country: Venezuela Venezuela - PHP jobs in Venezuela
Home page: http://alfredorahn.com/
Age: 35
All time rank: 721
Week rank: 1012

Groups

Group folder image Graphics Colors, images, charts and picture formats View top rated classes

Detailed description

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

User ratings

There are not enough user ratings to display for this class.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Accessible without login Plain text file alternarColor.php Class This is the main class
Plain text file example.php Example Example illustrating use of the class
Download all files: alternarcolor.tar.gz alternarcolor.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products