SaveFileWithBackup Method    
Navigation: CS File Writer for PHP > Methods >

CalyxFile->SaveFileWithBackup Method 

Saves the Calyx Point® file with any updates made to the file using the SetFieldValue method . This method will copy the original (unmodified) Calyx Point® file to a new file name with a ".bak" extension. It will then save the modified Calyx Point® information with the original file name.

[PHP]
public function SaveFileWithBackup(
);

Code Examples

[PHP]

require './CalyxFile.php';

$clxFile = new CalyxFile( 'johnsmith.brw');

$clxFile->SetFieldValue(100, 'Steve');  //Update the borrower's first name field with a new value

$clxFile->SaveFileWithBackup(); //Creates file named "johnsmith.bak" in the same directory and updates the Calyx Point® file immediately


  Copyright (c) 2010 Cite Systems, Inc.