Hi,<br><br>The libFusionInventory (libFusInv) goal is to provide a basic and easy to use FusionInventory server (inventory only) for PHP application.<br><br>During the last weeks, I've spent some time to do some code refactoring. I tried to simplify the way we initialize the lib and did some code clean up:<br>
- the logger call are more simple and is just a wrapper one top for error_log. I don't know for the moment if it makes sens to just call error_log.<br> - DataFilter.class.php had been remove and is merged within StorageInventory.class.php<br>
- I fixed a lot of warnings<br> - we use PDO exception to catch error<br> - I started to write a very limited test-suite but this is something very import to do and I hope we will devote more time in the future on this<br>
<br>This branch is called "filter-clean". It will be merge in master once the FusionInventory for GLPI will get frozen. Hopefully, in the coming week.<br><a href="https://github.com/fusinv/libfusioninventory-server-php/tree/filter-clean">https://github.com/fusinv/libfusioninventory-server-php/tree/filter-clean</a><br>
<br>For those who code on the libFusInv, i will be <span style="visibility: visible;" id="search">thankfulness if you take the time to port your changes on this new branch.</span><br><br>We plan to use this branch to add remote VirtualMachine inventory (e.g: ESX/libvirt) and the new remote command execution module (Run command) for Uranos (<a href="http://uranos.sourceforge.net">http://uranos.sourceforge.net</a>).<br>
<br>Changes overview.<br> Classes/Storage/Inventory/DataFilter.class.php | 163 <br> Classes/Storage/Inventory/MySQLStorageInventory.class.php | 689 <br> b/.gitignore | 2 <br>
b/Classes/Action/InventoryAction.class.php | 105 <br> b/Classes/Action/PingAction.class.php | 7 <br> b/Classes/FusionLibServer.class.php | 25 <br>
b/Classes/Logger.class.php | 111 <br> b/Classes/LoggerTest.php | 20 <br> b/Classes/MyException.class.php | 2 <br>
b/Classes/Storage/Inventory/DirectoryStorageInventory.class.php | 132 <br> b/Classes/Storage/Inventory/DirectoryStorageInventoryTest.php | 42 <br> b/Classes/Storage/Inventory/MysqlStorageInventory.class.php | 730 <br>
b/Classes/Storage/Inventory/StorageInventory.class.php | 8 <br> b/README | 3 <br> b/resource/tosh-r630-2011-01-11-20-57-54.ocs |14825 ++++++++++<br>
b/user/applications/MyWebSite/FusInvHooks.class.php | 23 <br> b/user/applications/MyWebSite/index.php | 31 <br> b/user/configs.ini | 35 <br>
b/user/index.php | 11 <br> data/infos | 5 <br> 20 files changed, 15943 insertions(+), 1026 deletions(-)<br clear="all">
<br>Best regards,<br>-- <br> Gonéri Le Bouder<br>