getSchema(); $data = $dbSchema->getData(); $fileData = ''; if ( ! @file_put_contents( $file, (string) $fileData ) ) { throw new ezcBaseFilePermissionException( $file, ezcBaseFileException::WRITE ); } } /** * Saves the differences in $schemaDiff to the file $file * @todo throw exception when file can not be opened * * @param string $file * @param ezcDbSchemaDiff $dbSchemaDiff */ public function saveDiffToFile( $file, ezcDbSchemaDiff $dbSchemaDiff ) { $fileData = ''; if ( ! @file_put_contents( $file, (string) $fileData ) ) { throw new ezcBaseFilePermissionException( $file, ezcBaseFileException::WRITE ); } } } ?>