Class html_table

Description

Class to build an HTML table

Located in /lib/Roundcube/html.php (line 661)

html
   |
   --html_table
Variable Summary
 mixed $allowed
 mixed $tagname
Method Summary
 html_table __construct ([array $attrib = array()])
 void add (array $attr, string $cont)
 void add_header (array $attr, string $cont)
 void add_row ([array $attr = array()])
 array get_row_attribs ([int $index = null])
 void remove_body ()
 void remove_column (string $class)
 void set_row_attribs ([array $attr = array()], [int $index = null])
 string show ([array $attrib = null])
 The size ()
Variables
mixed $allowed = array('id','class','style','width','summary',
'cellpadding','cellspacing','border')
(line 664)
  • access: protected

Redefinition of:
html::$allowed
mixed $tagname = 'table' (line 663)
  • access: protected

Redefinition of:
html::$tagname

Inherited Variables

Inherited from html

html::$attrib
html::$common_attrib
html::$containers
html::$content
html::$doctype
html::$lc_tags
Methods
Constructor __construct (line 677)

Constructor

  • access: public
html_table __construct ([array $attrib = array()])
  • array $attrib: Named tag attributes

Redefinition of:
html::__construct()
Constructor
add (line 694)

Add a table cell

  • access: public
void add (array $attr, string $cont)
  • array $attr: Cell attributes
  • string $cont: Cell content
add_header (line 718)

Add a table header cell

  • access: public
void add_header (array $attr, string $cont)
  • array $attr: Cell attributes
  • string $cont: Cell content
add_row (line 762)

Jump to next row

  • access: public
void add_row ([array $attr = array()])
  • array $attr: Row attributes
get_row_attribs (line 797)

Get row attributes

  • return: Row attributes
  • access: public
array get_row_attribs ([int $index = null])
  • int $index: Row index
remove_body (line 865)

Remove table body (all rows)

  • access: public
void remove_body ()
remove_column (line 736)

Remove a column from a table Useful for plugins making alterations

  • access: public
void remove_column (string $class)
  • string $class
set_row_attribs (line 777)

Set row attributes

  • access: public
void set_row_attribs ([array $attr = array()], [int $index = null])
  • array $attr: Row attributes
  • int $index: Optional row index (default current row index)
show (line 812)

Build HTML output of the table data

  • return: The final table HTML code
  • access: public
string show ([array $attrib = null])
  • array $attrib: Table attributes

Redefinition of:
html::show()
Return the tag code
size (line 857)

Count number of rows

  • return: number of rows
  • access: public
The size ()

Inherited Methods

Inherited From html

 html::__construct()
 html::a()
 html::attrib_string()
 html::br()
 html::div()
 html::doctype()
 html::iframe()
 html::img()
 html::label()
 html::p()
 html::parse_attrib_string()
 html::quote()
 html::script()
 html::show()
 html::span()
 html::tag()

Documentation generated on Fri, 03 May 2013 12:44:55 +0200 by phpDocumentor 1.4.4