public function setRowCell($name, $content, $attribs = [], $replace = true)
    {
        if ($replace || !isset($this->rows[$this->activeRow][$name])) {
            $cell = new \stdClass();
            $cell->attribs = $attribs;
            $cell->content = $content;
            $this->rows[$this->activeRow][$name] = $cell;
        } else {
            $this->rows[$this->activeRow][$name]->content .= $content;
            $this->rows[$this->activeRow][$name]->attribs = $attribs;
        }

        return $this;
    }
public function setRowCell($name, $content, $attribs = [], $replace = true)
    {
        if ($replace || !isset($this->rows[$this->activeRow][$name])) {
            $cell = new \stdClass();
            $cell->attribs = $attribs;
            $cell->content = $content;
            $this->rows[$this->activeRow][$name] = $cell;
        } else {
            $this->rows[$this->activeRow][$name]->content .= $content;
            $this->rows[$this->activeRow][$name]->attribs = $attribs;
        }

        return $this;
    }
public function setRowCell ( $ name , $ content , $ attribs = [ ] , $ replace = true ) { if ( $ replace || ! isset ( $ this -> rows [ $ this -> activeRow ] [ $ name ] ) ) { $ cell = new \ stdClass ( ) ; $ cell -> attribs = $ attribs ; $ cell -> content = $ content ; $ this -> rows [ $ this -> activeRow ] [ $ name ] = $ cell ; } else { $ this -> rows [ $ this -> activeRow ] [ $ name ] -> content .= $ content ; $ this -> rows [ $ this -> activeRow ] [ $ name ] -> attribs = $ attribs ; } return $ this ; }
Set cell content for a specific column for the
currently active row

@param   string $name    Name of the column
@param   string $content Content for the cell
@param   array  $attribs Associative array of attributes for the td-element
@param   bool   $replace If false, the content is appended to the current content of the cell

@return  static This object for chaining

@since 2.1
Set cell content for a specific column for the currently active row