phpDocumentor base
[ class tree: base ] [ index: base ] [ all elements ]

Class: Rowcolor

Source Location: /myphp-1.9/myphp-1.9-base/html/util/Rowcolor.php

Class Rowcolor

Class Overview

Generates a new Row Color

  1. Usage:
  2. $html = new Rowcolor($count++);
  3. print $html->getHtml();
  4. Or
  5. $rowcolor = Rowcolor::get($count++);
  6. Or
  7. $imgcolor = Rowcolor::img($color);

Located in /myphp-1.9/myphp-1.9-base/html/util/Rowcolor.php [line 26]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
int   $count  

[ Top ]
Method Summary
Rowcolor   Rowcolor()   Constructor
String   get()   Get the rowcolor for the odd/even count
String   getHtml()   Get the complete html for a Row Color
String   img()   Returns 6 digits css color code from the supplied 3 digits hex color

[ Top ]
Properties
int   $count = 0 [line 30]

[ Top ]
Methods
Constructor Rowcolor  [line 36]

  Rowcolor Rowcolor( int $count  )

Constructor

Parameters:
int   $count:  The next row


[ Top ]
get  [line 105]

  String get( int $count  )

Get the rowcolor for the odd/even count

  1. Usage:
  2. Rowcolor::get($count++);

Parameters:
int   $count:  The next row

API Tags:
Return:  the html
Static:  


[ Top ]
getHtml  [line 46]

  String getHtml( )

Get the complete html for a Row Color


API Tags:
Return:  the html
See:  CSS_COLOR_DARK The css color Dark
See:  CSS_COLOR_LIGHT The css color Light


[ Top ]
img  [line 63]

  String img( int $hexcolor  )

Returns 6 digits css color code from the supplied 3 digits hex color

The color is hex I.e. 1F3 => 11FF34 (where the last color digit is counted one up) This function ia a bugfix for xhtml 1.0 strict compliant validator where <img border="0" ... /> is not allowed, however we must have it

  1. Usage:
  2. $imgcolor = Rowcolor::img($color);

Parameters:
int   $hexcolor:  The css hex color, i.e. a2b

API Tags:
Return:  the img css color (6 digits) i.e. 'aa22bc' (c=b+1)
Static:  


[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:16:53 +0100 by phpDocumentor 1.3.0RC3