Juan Pablo de Castro
6aa8a3b6d0
MDL-14274 lib/evalmath: support of conditional math in formulas.
...
- Comparison operators >, ==, <, <=, >=
- "if(condition, valueiftrue, valueif false)" function.
(amended to keep non-related lines unmodified - whitespace & indent)
2018-06-26 10:25:44 +02:00
David Monllao
9e313e798f
MDL-51784 general: Adding missing php4 style constructors
...
Adding them to warn people calling the php4 constructor.
2015-12-11 14:02:42 +08:00
Marina Glancy
c4d0b752a2
MDL-51784 various: use __construct() for PHP7 compatibility
2015-12-11 12:48:24 +08:00
Andrew Davis
8c222e1768
MDL-33084 grade: made localize() and unlocalize() in lib/mathslib.php static as they are used as if they were static
2012-05-23 07:19:01 +07:00
Petr Skoda
4ca04fb58b
MDL-32569 remove remaining references to simpletest and improve events test
2012-04-21 17:08:30 +02:00
Petr Skoda
a3d5830a0a
MDL-32149 PHPUnit test support - part 2
...
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Petr Skoda
78bfb562a0
MDL-21249 improved php docs and adding direct access prevention in core libs
2010-07-25 13:35:05 +00:00
Petr Skoda
3c7e56c4b8
MDL-22050 removing moodle/langconfig duplicates
...
AMOS BEGIN
MOV [decsep,core],[decsep,core_langconfig]
MOV [listsep,core],[listsep,core_langconfig]
MOV [thousandsep,core],[thousandsep,core_langconfig]
AMOS END
2010-04-10 17:40:58 +00:00
Petr Skoda
117bd74897
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
2009-11-01 11:31:16 +00:00
samhemelryk
ce02a9bf94
lib MDL-19236 Added boilerplates and copyrights
2009-05-26 02:46:09 +00:00
tjhunt
0b94215637
Do not suppress errors from developers! it makes debugging a nightmare!
2007-12-10 16:53:17 +00:00
skodak
76317c73a2
MDL-10791 improve handling of localised floating point numbers in moodle; replaced/fixed some float_format() that were used instead of round(); expect some more patches soon
2007-08-10 15:00:35 +00:00
skodak
19e7f33384
MDL-9643 some more polishing
2007-05-26 13:11:54 +00:00
skodak
7458bee224
MDL-9643 some more polishing
2007-05-26 12:59:13 +00:00
skodak
ffaa6c4abd
MDL-9643 mathslib.php library, unit tests, removed e and pi constants
2007-05-25 06:50:09 +00:00