You are here

function crumbs_UI_Table::render in Crumbs, the Breadcrumbs suite 7.2

Return value

string Rendered table html.

File

lib/UI/Table.php, line 148

Class

crumbs_UI_Table
A class to render HTML tables.

Code

function render() {
  $html = '';
  $html .= $this->thead
    ->render('thead');
  $html .= $this->tfoot
    ->render('tfoot');
  $html .= $this->tbody
    ->render('tbody');
  foreach ($this->tbodies as $tbody) {
    $html .= $tbody
      ->render('tbody');
  }
  return '<table>' . $html . '</table>';
}