Documentation and Support for PEAR extensions

Documentation and Support for PEAR extensions

by Marc Grober -
Number of replies: 2
I tried to do a little research on Moodle's ability to use PEAR extenions and what I find is confusing in that it seems that Moodle supports use of PEAR in some cases and not in others (e.g. XMLRPC)

Does someone have a table of what is needed, what can be used from PEAR and what can't that can be posted to the documentation.?

Additionally, is there an internal commitment to make use of PEAR in that PEAR arguably makes it so much easier to manage extensions? And if so, what is the situation on employing PEAR xmlrpc for moodle networking?
Average of ratings: -
In reply to Marc Grober

Re: Documentation and Support for PEAR extensions

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Our general policy is to make Moodle standalone and independent of PEAR. PEAR has not been as reliable as you might think (eg not included on cheap web hosts etc).

Where we've used PEAR extensions we've included copies in Moodle core, and gone through some trouble to allow them to be licensed as GPL to make this legal:

http://docs.moodle.org/en/Credits

Most of the PEAR libraries are accessed by some other API in /lib, and sometimes these will go to the trouble of checking and using a real separate PEAR version if it exists, and only falling back to the included version if necessary. This is the preferred way to handle these things.
Average of ratings: Useful (1)