public function setRow($row, $values)
    {

        if (!\is_array($values)) {
            \trigger_error("Values must be an array.", E_USER_ERROR);
            return false;
        }
        if (intval($row) < 1) {
            \trigger_error("Row number must be an integer greater than 1.", E_USER_ERROR);
            return false;
        }

        $i = 0;
        foreach ($values as $value) {
            $this->setCell(array($row - 1, $i), $value);
            $i++;
        }

        return true;
    }
public function setRow($row, $values)
    {

        if (!\is_array($values)) {
            \trigger_error("Values must be an array.", E_USER_ERROR);
            return false;
        }
        if (intval($row) < 1) {
            \trigger_error("Row number must be an integer greater than 1.", E_USER_ERROR);
            return false;
        }

        $i = 0;
        foreach ($values as $value) {
            $this->setCell(array($row - 1, $i), $value);
            $i++;
        }

        return true;
    }
public function setRow ( $ row , $ values ) { if ( ! \ is_array ( $ values ) ) { \ trigger_error ( "Values must be an array." , E_USER_ERROR ) ; return false ; } if ( intval ( $ row ) < 1 ) { \ trigger_error ( "Row number must be an integer greater than 1." , E_USER_ERROR ) ; return false ; } $ i = 0 ; foreach ( $ values as $ value ) { $ this -> setCell ( array ( $ row - 1 , $ i ) , $ value ) ; $ i ++ ; } return true ; }
Set the values for a row

@param integer The Excel row number to place these values
@param array An array of values
@return boolean Success
Set the values for a row