AutorÃa | Ultima modificación | Ver Log |
PEAR Libraries====================================================================This directory (lib/pear) contains unmodified copies of somelibraries from the standard PEAR distribution (http://pear.php.net).We include these in Moodle solely for the convenience of sites thatmay not have PEAR installed.If this directory is DELETED from Moodle then Moodle will searchthe standard PHP directories and use the PEAR libraries there instead.In detail, the libraries added here are:- PEAR HTML_Quickform:- Current version: 3.2.6- by Bertrand Mansion, Adam Daniel, Alexey Borzov- License: PHP (Permission given to Moodle to redistribute under GPL)- http://pear.php.net/package/HTML_Quickform- PEAR HTML_Quickform_Renderer_Tableless:- Current version: 0.3.4- by Mark Wiesemann- License: PHP (Permission given to Moodle to redistribute under GPL)- http://pear.php.net/package/HTML_QuickForm_Renderer_Tableless- PEAR HTML_QuickForm_DHTMLRulesTableless:- Current version: 0.1.2- by Alexey Borzov, Adam Daniel, Bertrand Mansion, Justin Patrin, Mark Wiesemann- License: PHP (Permission given to Moodle to redistribute under GPL)- http://pear.php.net/package/HTML_QuickForm_DHTMLRulesTableless- PEAR HTML_Common:- Current version: 1.2.2- by Adam Daniel, Bertrand Mansion, Klaus Guenther, Alexey Borzov,- License: PHP (Permission given to Moodle to redistribute under GPL)- http://pear.php.net/package/HTML- PEAR main class:- Current version: 1.4.5- by Stig Bakken, Thomas V.V.Cox, Pierre-Alain Joye,Greg Beaver and Martin Jansen- License: PHP- http://pear.php.net/package/PEAR- PEAR HTML_AJAX:- Current version: 0.5.6- by Elizabeth Smith, Arpad Ray, Joshua Eichorn, David Coallier and Laurent Yaish- License: LGPL- http://pear.php.net/package/HTML_AJAX/----------------------------------------------------------------A NOTE TO DEVELOPERS================================================================We must not use these classes directly ever. Instead we must buildand use wrapper classes to isolate Moodle code from internal PEARimplementations, allowing us to migrate if needed to otherlibraries in the future. For an example of wrapped classes,see the excel.class.lib file, that includes code to buildExcel files using the cool library inside PEAR, but usingthe old calls used before Moodle 1.6 to maintain compatibility.Please, don't forget it! Always use wrapper classes/functions!Ciao,Eloy Lafuente, 2005-12-17 :-)----------------------------------------------------------------A NOTE ON THE PHP LICENSE AND MOODLE================================================================Everything in Moodle in pure GPL. This pear directory is the onlypart of the distribution that is not.There is some question about how PHP-licensed software can beincluded within a GPL-licensed distribution like Moodle, specificallythe clause that annoyingly says no derivative of the software caninclude the name PHP.We don't intend to rename Moodle to anything of the sort, obviously,but to help people downstream who could possibly want to do so,we have sought special permission from the authors of these classesto allow us an exemption on this point so that we don't need tochange our nice clean GPL license.Several authors have given Moodle explicit permission to distributetheir PHP-licensed PEAR classes in the Moodle distribution, allowinganybody using these classes ONLY as part of the Moodle distributionexemption from clauses of the PHP license that could causeconflict with the main GNU Public License that Moodle uses.We are still waiting to hear back from the others but we assumefor now that it will likewise be OK.If you are at all worried about this situation you can simply deletethis directory from Moodle and it will use your installed PEARlibraries instead.Cheers,Martin Dougiamas, 2 April 2006