Пример #1
0
 /**
  * @return string
  *   Rendered table html.
  */
 function render()
 {
     $colAttributes = $this->colAttributes->staticCopy();
     $columns = $this->columns->takeSnapshot();
     $html = '';
     $html .= $this->thead->render($columns, $colAttributes);
     $html .= $this->tfoot->render($columns, $colAttributes);
     $html .= $this->renderTBody($columns, $colAttributes);
     foreach ($this->tbodies as $tbody) {
         $html .= $tbody->render($columns, $colAttributes);
     }
     return $this->renderTag('table', "\n" . $html) . "\n";
 }
Пример #2
0
 /**
  * @param Axis $columns
  * @param StaticAttributesMap $tableColAttributes
  *
  * @return string
  */
 function renderTBody(Axis $columns, StaticAttributesMap $tableColAttributes)
 {
     return $this->tbody->render($columns, $tableColAttributes);
 }