ColorArray Class Reference
[CAPTCHA's implementation]

List of all members.

Public Member Functions

 add (Color $color)
 
Returns:
ColorArray

 clear ()
 
Returns:
ColorArray

 getRandomTextColor ()
 
Exceptions:
MissingElementException 

 getColors ()
 isEmpty ()

Private Attributes

 $colors = array()


Detailed Description

Definition at line 16 of file ColorArray.class.php.


Member Function Documentation

ColorArray::add ( Color color  ) 

Returns:
ColorArray

Definition at line 23 of file ColorArray.class.php.

ColorArray::clear (  ) 

Returns:
ColorArray

Definition at line 33 of file ColorArray.class.php.

ColorArray::getRandomTextColor (  ) 

Exceptions:
MissingElementException 

Returns:
Color

Definition at line 44 of file ColorArray.class.php.

References isEmpty().

Here is the call graph for this function:

ColorArray::getColors (  ) 

Definition at line 52 of file ColorArray.class.php.

ColorArray::isEmpty (  ) 

Definition at line 57 of file ColorArray.class.php.

Referenced by getRandomTextColor().


Member Data Documentation

ColorArray::$colors = array() [private]

Definition at line 18 of file ColorArray.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:03 2007 for onPHP by  doxygen 1.5.4