TaniPHP
[ class tree: TaniPHP ] [ index: TaniPHP ] [ all elements ]

Class: HTML

Source Location: /html.php

Class Overview


HTML helper class


Author(s):

  • Dumitru Postoronca

Methods



Class Details

[line 18]
HTML helper class

HTML helper class




Tags:

author:  Dumitru Postoronca
static:  


[ Top ]


Class Methods


method cycle [line 35]

void cycle( mixed $array)

Will cycle thorough given array of values.

Will cycle thorough given array of values. Useful for nice table design. The following example will cycle the table row background making bluesh(#CCF) stripes

  1. <?php foreach($i as $j) { ?>
  2. <tr style="background-color: <?php echo HTML::cycle(array('#FFF', '#CCF'));?>">
  3. <td><!-- show data --></td>
  4. </tr>
  5. <?php } ?>




Tags:

static:  


[ Top ]

method echoURL [line 96]

void echoURL( [mixed $controller = ""], [mixed $action = ""], [mixed $params = array()])

Outputs an generated URL

Outputs an generated URL




Tags:

see:  HTML::getURL()
static:  


[ Top ]

method getURL [line 62]

void getURL( [string $controller = ""], [string $action = ""], [array $params = array()])

Generates an URL according to config file

Generates an URL according to config file




Tags:

static:  


Parameters:

string   $controller   Controller to link to. Will use default controller if not set.
string   $action   Action to link to. Will use default action if not set.
array   $params   Associative array of parameters to pass by URL.

[ Top ]

method humanize [line 48]

void humanize( string $word)

Will make a string more human-readable by replacing "_" with " ", and making words uppercase

Will make a string more human-readable by replacing "_" with " ", and making words uppercase




Tags:

static:  


Parameters:

string   $word   Word to "humanize"

[ Top ]

method load [line 107]

void load( string $file)

Loads a shared component into the view

Loads a shared component into the view




Tags:

static:  


Parameters:

string   $file   Component to load

[ Top ]


Documentation generated on Fri, 16 Dec 2005 13:16:42 +0200 by phpDocumentor 1.3.0RC4