2 ====================================================================
5 This directory (lib/pear) contains unmodified copies of some
6 libraries from the standard PEAR distribution (http://pear.php.net).
8 We include these in Moodle solely for the convenience of sites that
9 may not have PEAR installed.
11 If this directory is DELETED from Moodle then Moodle will search
12 the standard PHP directories and use the PEAR libraries there instead.
15 In detail, the libraries added here are:
17 - PEAR Spreadsheet_Excel_Writer classes:
18 - Current version: 0.9.0
19 - by Xavier Noguer and Mika Tuupola
21 - http://pear.php.net/package/Spreadsheet_Excel_Writer
23 - Current version: 0.5
25 - License: PHP (Permission given to Moodle to redistribute under GPL)
26 - http://pear.php.net/package/OLE
27 - PEAR HTML_Quickform:
28 - Current version: 3.2.6
29 - by Bertrand Mansion, Adam Daniel, Alexey Borzov
30 - License: PHP (Permission given to Moodle to redistribute under GPL)
31 - http://pear.php.net/package/HTML_Quickform
32 - PEAR HTML_Quickform_Renderer_Tableless:
33 - Current version: 0.3.4
35 - License: PHP (Permission given to Moodle to redistribute under GPL)
36 - http://pear.php.net/package/HTML_QuickForm_Renderer_Tableless
37 - PEAR HTML_QuickForm_DHTMLRulesTableless:
38 - Current version: 0.1.2
39 - by Alexey Borzov, Adam Daniel, Bertrand Mansion, Justin Patrin, Mark Wiesemann
40 - License: PHP (Permission given to Moodle to redistribute under GPL)
41 - http://pear.php.net/package/HTML_QuickForm_DHTMLRulesTableless
43 - Current version: 1.2.2
44 - by Adam Daniel, Bertrand Mansion, Klaus Guenther, Alexey Borzov,
45 - License: PHP (Permission given to Moodle to redistribute under GPL)
46 - http://pear.php.net/package/HTML
48 - Current version: 1.4.5
49 - by Stig Bakken, Thomas V.V.Cox, Pierre-Alain Joye,
50 Greg Beaver and Martin Jansen
52 - http://pear.php.net/package/PEAR
56 ----------------------------------------------------------------
58 ================================================================
60 We must not use these classes directly ever. Instead we must build
61 and use wrapper classes to isolate Moodle code from internal PEAR
62 implementations, allowing us to migrate if needed to other
63 libraries in the future. For an example of wrapped classes,
64 see the excel.class.lib file, that includes code to build
65 Excel files using the cool library inside PEAR, but using
66 the old calls used before Moodle 1.6 to maintain compatibility.
68 Please, don't forget it! Always use wrapper classes/functions!
71 Eloy Lafuente, 2005-12-17 :-)
75 ----------------------------------------------------------------
76 A NOTE ON THE PHP LICENSE AND MOODLE
77 ================================================================
79 Everything in Moodle in pure GPL. This pear directory is the only
80 part of the distribution that is not.
82 There is some question about how PHP-licensed software can be
83 included within a GPL-licensed distribution like Moodle, specifically
84 the clause that annoyingly says no derivative of the software can
87 We don't intend to rename Moodle to anything of the sort, obviously,
88 but to help people downstream who could possibly want to do so,
89 we have sought special permission from the authors of these classes
90 to allow us an exemption on this point so that we don't need to
91 change our nice clean GPL license.
93 Several authors have given Moodle explicit permission to distribute
94 their PHP-licensed PEAR classes in the Moodle distribution, allowing
95 anybody using these classes ONLY as part of the Moodle distribution
96 exemption from clauses of the PHP license that could cause
97 conflict with the main GNU Public License that Moodle uses.
99 We are still waiting to hear back from the others but we assume
100 for now that it will likewise be OK.
102 If you are at all worried about this situation you can simply delete
103 this directory from Moodle and it will use your installed PEAR
107 Martin Dougiamas, 2 April 2006