browscap/browscap — pull request #66 by mimmi20 (2014-01-11 23:09:13+00:00)
Title: Issue 61

Hello,

I reworked the IniGenerator, to make it posible to remove the duplicates, I also added Generators for xml and csv files.

The changed workflow is now:
- the data collection is not used by the Generator directly anymore
- the data collection is put into a CollectionParser (you may rename this class if you like)
- this class is extracted from the IniGenerator to avoid lots of duplicate code
- if an entry has the parent property and that parent could not be found, the entry is skipped from the output
- if a property has the same value like the property of the parent entry that property is skipped from the output in the ini files
- the collection parser returns an array in the format array($key => $properties)
- this array is used by the three Generators
- the Generators also get now arrays with comments and the version information
- the xml/csv files contain all properties, like the full asp/php files

There are some additonal changes
- the sorting is changed a little bit, the versions are sorted with their numeric value (1,2,3,...19,20..)
- I added some new versions for some browsers

Notice: in the xml and csv files which were created with old system are properties (like "agentID" or "MasterParent") which I could not really create with the new system. So I faked these properties. You should look into this and tell if you dont like it.