public function removeRow($numberOrRow) {
        if ($numberOrRow instanceof Row) {
            $id = $numberOrRow->getRowNumber();
        } elseif (Row::isValidNumber($numberOrRow)) {
            $id = $numberOrRow;
        } else {
            throw new \InvalidArgumentException('Invalid row identifier');
        }

        $putData = array(
            'method' => 'shiftRow',
            'index' => $id - 1,
            'amount' => 1
        );

        $setId = $this->getDataSet()->id;
        $result = $this->getClient()->put('data/alter/' . $setId, $putData);

        return (isset($result['success']) && $result['success']);
    }
public function removeRow($numberOrRow) {
        if ($numberOrRow instanceof Row) {
            $id = $numberOrRow->getRowNumber();
        } elseif (Row::isValidNumber($numberOrRow)) {
            $id = $numberOrRow;
        } else {
            throw new \InvalidArgumentException('Invalid row identifier');
        }

        $putData = array(
            'method' => 'shiftRow',
            'index' => $id - 1,
            'amount' => 1
        );

        $setId = $this->getDataSet()->id;
        $result = $this->getClient()->put('data/alter/' . $setId, $putData);

        return (isset($result['success']) && $result['success']);
    }
public function removeRow ( $ numberOrRow ) { if ( $ numberOrRow instanceof Row ) { $ id = $ numberOrRow -> getRowNumber ( ) ; } elseif ( Row :: isValidNumber ( $ numberOrRow ) ) { $ id = $ numberOrRow ; } else { throw new \ InvalidArgumentException ( 'Invalid row identifier' ) ; } $ putData = array ( 'method' => 'shiftRow' , 'index' => $ id - 1 , 'amount' => 1 ) ; $ setId = $ this -> getDataSet ( ) -> id ; $ result = $ this -> getClient ( ) -> put ( 'data/alter/' . $ setId , $ putData ) ; return ( isset ( $ result [ 'success' ] ) && $ result [ 'success' ] ) ; }
Remove a row from the dataset

@param \ChartBlocks\DataSet\Row|int $numberOrRow
@return boolean
Remove a row from the dataset