2009-05-20 06:35:46 +00:00
|
|
|
MOODLE-SPECIFIC PEAR MODIFICATIONS
|
|
|
|
==================================
|
|
|
|
|
|
|
|
|
|
|
|
Spreadsheet/Excel
|
|
|
|
=================
|
|
|
|
|
2009-11-18 10:25:53 +00:00
|
|
|
1/ These functions:
|
2007-07-28 00:17:25 +00:00
|
|
|
_calculateSharedStringsSizes()
|
|
|
|
_storeSharedStringsTable()
|
|
|
|
have been inserted, replacing the original functions in order to make the function
|
|
|
|
work with 2-byte data. The patch is discussed at this URL:
|
|
|
|
http://pear.php.net/bugs/bug.php?id=1572
|
|
|
|
and documented for Moodle at:
|
|
|
|
http://tracker.moodle.org/browse/MDL-9911
|
|
|
|
|
2009-11-18 10:25:53 +00:00
|
|
|
2/ Changed ereg_ to preg_
|
|
|
|
* http://cvs.moodle.org/moodle/lib/excel/Parser.php.diff?r1=1.1&r2=1.2
|
|
|
|
* http://cvs.moodle.org/moodle/lib/excel/Worksheet.php.diff?r1=1.1&r2=1.2
|
|
|
|
|
2007-07-28 00:17:25 +00:00
|
|
|
Such modifications should be carefuly each time the Excel PEAR package is updated
|
|
|
|
to a new release within Moodle.
|
|
|
|
|
2009-11-18 10:35:39 +00:00
|
|
|
XML/Parser
|
|
|
|
=================
|
|
|
|
1/ changed ereg_ to preg_
|
|
|
|
* http://cvs.moodle.org/moodle/lib/pear/XML/Parser.php.diff?r1=1.1&r2=1.2
|
|
|
|
|
2009-05-20 06:35:46 +00:00
|
|
|
|
|
|
|
PHP/CodeSniffer
|
|
|
|
===============
|
|
|
|
|
|
|
|
A whole Moodle coding standards definition sits in lib/pear/PHP/CodeSniffer/Standards/Moodle
|
|
|
|
|
|
|
|
To run the codesniffer, you can call the runsniffer script using your command-line php binary:
|
|
|
|
|
|
|
|
Example: /usr/bin/php lib/pear/PHP/runsniffer mod/forum
|
|
|
|
|
|
|
|
|