KarlReyesCatalyst
86a5027502
MDL-79215 lib/graphlib: Typecasting round() function to INT.
2024-08-22 10:20:47 -04:00
Meirza
97ff68fd6b
MDL-78159 lib: Added missing properties for core libraries
...
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-06-21 15:39:53 +07:00
Meirza
bf3a9c3b3f
MDL-75945 core: Convert a floating value to an integer.
...
In PHP 8.1, any implicit conversion of float to int, which leads to a loss in precision, is now deprecated.
To avoid the error warning, the code must explicitly convert a floating value to an integer.
2023-01-24 16:49:10 +07:00
Andrew Nicols
5b2e04f301
MDL-75945 core: Update uses of ImagePolygon
...
A new signature was introduced to ImagePolygon functions from PHP 8.0
with the previous signature deprecated in 8.1.
For PHP versions 8.0 and later we should use the new signature. Once PHP
8.0 is the required minimum version, the legacy version should be
removed.
2023-01-20 18:41:26 +07:00
Ilya Tregubov
6ecfb59077
MDL-70750 mod_survey: Fix warning for undefined offset.
2021-06-21 08:41:48 +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
Nadav Kavalerchik
94e2dc1daf
MDL-19270 - Quiz graph - Fix reverse display of Hebrew legend text in RTL mode
2014-07-09 14:57:31 +03:00
Petr Škoda
2f1e464a88
MDL-40438 migrate all collatorlib:: and textlib:: uses
2013-08-06 21:04:35 +02:00
Petr Skoda
f8311defeb
MDL-31301 use static textlib methods
2012-03-03 11:46:13 +01: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
Tim Hunt
085e842a35
graphlib MDL-21371: Legend layout issue when different legend texts had different heights.
2010-01-18 15:24:13 +00:00
Tim Hunt
2d0d78befd
graphlib - MDL-20855 fix alignemnt issue with the x-axis.
...
Labels with a descender (e.g. May) appeared lower than ones without (e.g. Jun).
Text is drawn baseline aligned, not bottom aligned,and so the code was computing the position wrongly.
2009-11-19 16:56:47 +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
tjhunt
be1463394f
graphlib: NOBUG previous Moodle-specific hack had a bug when y_max was very small. This would round, e.g. 10^-5 to 0 which would break the axis.
2009-10-06 17:49:47 +00:00
samhemelryk
aaeba37197
lib MDL-19236 Corrected PhpDoc
2009-05-26 06:57:19 +00:00
jmg324
d42342f2a3
MDL-15183 defaulting a couple of variables in the graph class rather than every graph object needing to do it.
2008-06-11 08:22:38 +00:00
jmg324
73ee9fd8f9
MDL-15183 reverting previous change
2008-06-09 10:09:29 +00:00
skodak
223f34f6b4
fixed incorrect merging
2008-06-06 13:58:00 +00:00
jmg324
26925762b8
init_y_axis parameter not set up correctly
2008-06-06 08:50:45 +00:00
nicolasconnault
b9b17c8a30
Indenting the code properly
2008-05-19 05:20:48 +00:00
skodak
810944af7f
we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left
2006-11-11 17:23:20 +00:00
skodak
9c1cd39de5
Bug #5937 - Fix nonascii chars in graphs:
...
* text is converted to unicode - no html entities anymore
* then all nonascii chars are converted to decimal number entites
* default.ttf is searched in dataroot/lang and local language packs too
* removed lang_decode() - obsoleded by proper entity converison above
* updated documentation in lang/en_utf8/fonts/README.txt
merged from MOODLE_16_STABLE
2006-06-29 21:22:16 +00:00
stronk7
768cf7d5d1
Now graphlib also works with ttf fonts installed under
...
moodledata/lang dir. Rest of functionality not modified.
2006-04-05 23:03:18 +00:00
moodler
01dc6ab67a
Various little tweaks here and there
2005-03-11 14:56:34 +00:00
gustav_delius
dcb1bd3c9a
towards XHTML compliance
2004-09-12 13:21:01 +00:00
gustav_delius
78d7fa79cf
implemented a provisional hack by roger to avoid division by zero reported in bug 1231.
2004-05-08 21:27:33 +00:00
moodler
b3fc547b68
Allow a big catch-all Unicode font to be placed in lib/default.ttf
...
eg ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbit.ZIP
2004-04-28 15:39:32 +00:00
moodler
6ebd2c691b
Uses iconv by default to convert texts into UTF-8 to keep GD happier.
2004-04-28 14:18:25 +00:00
moodler
8fad496688
Still trying to get this retun situation sorted out
2003-05-26 02:42:49 +00:00
moodler
c451c1f6bd
Removed mystery character?
2003-05-26 02:40:26 +00:00
moodler
c8ddb345b9
DOS format
2003-05-26 02:32:11 +00:00
moodler
d60131c3c9
Changes to use fonts in language packs, and also to use a language
...
decoding function if necessary
2003-01-21 09:17:10 +00:00
moodler
f6e653e06a
Moved fonts into language pack so that other languages can have
...
proper displays in graphs
2003-01-21 07:27:01 +00:00
moodler
47f1da80d0
More little fixups for robustness
2002-12-30 05:13:43 +00:00
martin
4c26ac16d3
Orange
2002-08-14 05:58:36 +00:00
martin
fb8418d9bc
Added some new colours
2002-08-14 05:27:35 +00:00
martin
f21a723827
If the array y_tick_labels is defined, then these are used instead of
...
numbers on the left-hand y-axis. See mod/survey/graph.php for usage.
2002-04-13 02:49:21 +00:00
martin
c4bb2bd0ee
Added "$factor = round($factor * 1000.0) / 1000.0;"
...
to function find_range ... it fixes some strange rounding
errors that were happening with Moodle surveys.
2002-04-12 13:20:17 +00:00
martin
b6d402a6d6
No functional changes, just fixed comments to make the Moodle mods clearer.
2001-12-01 09:47:30 +00:00
martin
f9903ed0a4
Initial revision
2001-11-22 06:23:56 +00:00