protected function renderArea($ids, $area = 'tbody', $cell = 'td')
    {
        $output = [];
        $output[] = '<' . $area . ">\n";

        foreach ($ids as $id) {
            $output[] = "\t<tr" . $this->renderAttributes($this->rows[$id]['_row']) . ">\n";

            foreach ($this->getColumns() as $name) {
                if (isset($this->rows[$id][$name])) {
                    $column = $this->rows[$id][$name];
                    $output[] = "\t\t<" . $cell . $this->renderAttributes(
                        $column->attribs
                    ) . '>' . $column->content . '</' . $cell . ">\n";
                }
            }

            $output[] = "\t</tr>\n";
        }

        $output[] = '</' . $area . '>';

        return implode('', $output);
    }
protected function renderArea($ids, $area = 'tbody', $cell = 'td')
    {
        $output = [];
        $output[] = '<' . $area . ">\n";

        foreach ($ids as $id) {
            $output[] = "\t<tr" . $this->renderAttributes($this->rows[$id]['_row']) . ">\n";

            foreach ($this->getColumns() as $name) {
                if (isset($this->rows[$id][$name])) {
                    $column = $this->rows[$id][$name];
                    $output[] = "\t\t<" . $cell . $this->renderAttributes(
                        $column->attribs
                    ) . '>' . $column->content . '</' . $cell . ">\n";
                }
            }

            $output[] = "\t</tr>\n";
        }

        $output[] = '</' . $area . '>';

        return implode('', $output);
    }
protected function renderArea ( $ ids , $ area = 'tbody' , $ cell = 'td' ) { $ output = [ ] ; $ output [ ] = '<' . $ area . ">\n" ; foreach ( $ ids as $ id ) { $ output [ ] = "\t<tr" . $ this -> renderAttributes ( $ this -> rows [ $ id ] [ '_row' ] ) . ">\n" ; foreach ( $ this -> getColumns ( ) as $ name ) { if ( isset ( $ this -> rows [ $ id ] [ $ name ] ) ) { $ column = $ this -> rows [ $ id ] [ $ name ] ; $ output [ ] = "\t\t<" . $ cell . $ this -> renderAttributes ( $ column -> attribs ) . '>' . $ column -> content . '</' . $ cell . ">\n" ; } } $ output [ ] = "\t</tr>\n" ; } $ output [ ] = '</' . $ area . '>' ; return implode ( '' , $ output ) ; }
Render an area of the table

@param   array  $ids  IDs of the rows to render
@param   string $area Name of the area to render. Valid: tbody, tfoot, thead
@param   string $cell Name of the cell to render. Valid: td, th

@return string The rendered table area

@since 2.1
Render an area of the table