Improve the management of file format when using FORMAT_AUTO #22

Merged
merged 1 commit into from Apr 2, 2013

Projects

None yet

2 participants

@lpotherat
Contributor

Improved the management of file format when using FORMAT_AUTO.
You can know load a file without specifying the format, and save it back to the same format without taking care of the actual format of the file.

  • Added "detectedFormat" class variable to keep track of the format when loaded with FORMAT_AUTO.
  • Added lines to affect "detectedFormat" in "load" and "parse" methods.
  • Added line to use "detectedFormat" in "save" when "format" is set to FORMAT_AUTO. 
@lpotherat lpotherat Update CFPropertyList.php
Improved the management of file format when using FORMAT_AUTO.
You can know load a file without specifying the format, and save it back to the same format without taking care of the actual format of the file.




- Added "detectedFormat" class variable to keep track of the format when loaded with FORMAT_AUTO.
- Added lines to affect "detectedFormat" in "load" and "parse" methods.
- Added line to use "detectedFormat" in "save" when "format" is set to FORMAT_AUTO. 
a4c95ed
@ckruse ckruse merged commit 3b3dcdc into rodneyrehm:master Apr 2, 2013
@ckruse
Collaborator
ckruse commented Apr 2, 2013

Thanks!

@lpotherat lpotherat deleted the lpotherat:patch-1 branch Feb 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment