public function insertNewRowBefore($pBefore = 1, $pNumRows = 1)
    {
        if ($pBefore >= 1) {
            $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance();
            $objReferenceHelper->insertNewBefore('A' . $pBefore, 0, $pNumRows, $this);
        } else {
            throw new PHPExcel_Exception("Rows can only be inserted before at least row 1.");
        }
        return $this;
    }
public function insertNewRowBefore($pBefore = 1, $pNumRows = 1)
    {
        if ($pBefore >= 1) {
            $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance();
            $objReferenceHelper->insertNewBefore('A' . $pBefore, 0, $pNumRows, $this);
        } else {
            throw new PHPExcel_Exception("Rows can only be inserted before at least row 1.");
        }
        return $this;
    }
public function insertNewRowBefore ( $ pBefore = 1 , $ pNumRows = 1 ) { if ( $ pBefore >= 1 ) { $ objReferenceHelper = PHPExcel_ReferenceHelper :: getInstance ( ) ; $ objReferenceHelper -> insertNewBefore ( 'A' . $ pBefore , 0 , $ pNumRows , $ this ) ; } else { throw new PHPExcel_Exception ( "Rows can only be inserted before at least row 1." ) ; } return $ this ; }
Insert a new row, updating all possible related data

@param int $pBefore    Insert before this one
@param int $pNumRows    Number of rows to insert
@throws    PHPExcel_Exception
@return PHPExcel_Worksheet
Insert a new row updating all possible related data