public function deleteRow($id)
    {
        unset($this->rows[$id]);

        if (in_array($id, $this->specialRows['header'])) {
            unset($this->specialRows['header'][array_search($id, $this->specialRows['header'])]);
        }

        if (in_array($id, $this->specialRows['footer'])) {
            unset($this->specialRows['footer'][array_search($id, $this->specialRows['footer'])]);
        }

        if ($this->activeRow == $id) {
            end($this->rows);
            $this->activeRow = key($this->rows);
        }

        return $this;
    }
public function deleteRow($id)
    {
        unset($this->rows[$id]);

        if (in_array($id, $this->specialRows['header'])) {
            unset($this->specialRows['header'][array_search($id, $this->specialRows['header'])]);
        }

        if (in_array($id, $this->specialRows['footer'])) {
            unset($this->specialRows['footer'][array_search($id, $this->specialRows['footer'])]);
        }

        if ($this->activeRow == $id) {
            end($this->rows);
            $this->activeRow = key($this->rows);
        }

        return $this;
    }
public function deleteRow ( $ id ) { unset ( $ this -> rows [ $ id ] ) ; if ( in_array ( $ id , $ this -> specialRows [ 'header' ] ) ) { unset ( $ this -> specialRows [ 'header' ] [ array_search ( $ id , $ this -> specialRows [ 'header' ] ) ] ) ; } if ( in_array ( $ id , $ this -> specialRows [ 'footer' ] ) ) { unset ( $ this -> specialRows [ 'footer' ] [ array_search ( $ id , $ this -> specialRows [ 'footer' ] ) ] ) ; } if ( $ this -> activeRow == $ id ) { end ( $ this -> rows ) ; $ this -> activeRow = key ( $ this -> rows ) ; } return $ this ; }
Delete a row from the object

@param   int $id ID of the row to be deleted

@return  static This object for chaining

@since   2.1
Delete a row from the object