martinlanghoff
6c2f585f85
dmllib: introducing the rcache_* functions for record cache handling
...
Abstracted Sam's initial work with $record_cache into a series of functions
that abstract things _just enough_ that we can use an internal
in-memory-array implementation or something that is shared across
processes, like memcached or the turckmmcache/eaccelerator caches.
Also
- added hit/miss stats tracking and reporting
- removed max entries limiting as it was buggy - var names mismatches
and not counting unset()s
2006-12-27 22:39:32 +00:00
martinlanghoff
247035f8fc
redirect(): fix protocol name in redirection header()
2006-12-27 01:49:14 +00:00
martinlanghoff
76f3815be9
raise_memory_limit() earlier -- resolves OOM on 64-bit platforms
...
On 64-bit platforms the in-memory footprint of our libraries is quite a bit
larger than usual, and we hit the 8MB default memory limit before we call
raise_memory_limit(). This patch moves raise_memory_limit() and
get_realsize() to setuplib so we can call them earlier, and moves the
call to _before_ we include the libraries.
On AMD64, for MOODLE_17_STABLE the footprint is about 9.5MB. Diet time? :-)
2006-12-26 22:48:36 +00:00
stronk7
2f078622af
Now excel can be generated under iso-8859-1 (safer) based on the
...
$CFG->excelisofiles (true/false) value. It allows iso-8859-1
compatible sites to use better Excel generation. MDL-7993.
2006-12-25 19:51:17 +00:00
skodak
aef5c10d7c
MDL-7996 Add ods export support - basic functions needed for 1.8 release should be all working fine, more improvements later ;-)
2006-12-25 18:22:28 +00:00
skodak
c4f72672c5
MDL-7996 Add ods export support - more formatting improvements and other fixes
2006-12-22 22:30:11 +00:00
tjhunt
9dae915acb
New param type: PARAM_NUMBER, for floating point numbers.
2006-12-22 13:29:20 +00:00
skodak
f748220f0f
MDL-7996 Add ods export support - row height implemented
2006-12-22 10:37:02 +00:00
skodak
25ea2ad6c3
MDL-7996 Add ods export support - column width fixed
2006-12-22 10:26:34 +00:00
skodak
b0a945fc44
MDL-7996 Add ods export support - added changing of column width
2006-12-22 10:04:50 +00:00
moodler
5e87b920e3
Added CDATA to Javascript
2006-12-22 04:52:13 +00:00
moodler
a4e2f9e9bb
Add CDATA to Javascript
2006-12-22 04:35:06 +00:00
moodler
5f60ed9b6a
Added CDATA to Javascript
2006-12-22 04:25:00 +00:00
moodler
ce926cb8d8
Added CDATA to Javascript
2006-12-22 04:19:52 +00:00
moodler
ad897001c2
Added CDATA to Javascript
2006-12-22 04:17:56 +00:00
skodak
09b14fec34
MDL-7996 Add ods export support - better xml from KSpread 1.6.1 :-)
2006-12-21 22:18:17 +00:00
martinlanghoff
ccc776694d
debugging(): our errors must be passed to PHP as E_USER_NOTICE
2006-12-21 21:56:49 +00:00
skodak
77c7f0f549
MDL-7996 Add ods export support - quiz report and number value, call time pass by ref... warnings fixed; fix in ods export lib
2006-12-21 20:34:51 +00:00
skodak
ea49a66cea
MDL-7996 Add ods export support - added ods to course logs with other minor fixes, implemented date support and added missing stub functions for better excel class compatibility
2006-12-21 10:58:18 +00:00
skodak
9c61ba4d88
MDL-7996 Add ods export support
2006-12-21 08:12:10 +00:00
martinlanghoff
47b8b9eb80
Introducing $CFG->debugdisplay -- mimics PHPs display_errors, controls debugging()
2006-12-21 04:30:03 +00:00
martinlanghoff
4bd0ddeafa
debugging(): use CFG->debugdisplay instead of PHPs display_errors
2006-12-21 04:03:21 +00:00
martinlanghoff
c7533061ef
debugging(): use trigger_error() when !display_errors -- now you can debug stuff without breaking HTTP headers, HTML and JS
2006-12-21 02:51:20 +00:00
vyshane
9e2679e395
Added missing html closing tags in function redirect() before the die call. MDL-7861.
2006-12-20 05:56:38 +00:00
jamiesensei
da43c002ff
fix for MDL-7937 'Fatal error: Call to a member function on a non-object in /var/www/dev/lib/pear/HTML/QuickForm.php on line 602 error'
2006-12-19 11:18:06 +00:00
toyomoyo
b2603953be
MDL-7861, taking out <br/>s in title tag
2006-12-19 07:19:13 +00:00
jamiesensei
a23f0aaf95
* Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
...
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
2006-12-19 07:03:08 +00:00
toyomoyo
64034641cf
MDL-7861, adding third param to error() function to print correct admin footer
2006-12-19 06:58:20 +00:00
toyomoyo
92a6d3f510
MDL-7861, adding third param to notice() function, so that the right footer is printed. Currently missing admin footer
2006-12-19 06:49:45 +00:00
skodak
b91b1f9297
MDL-7974 Weekend Days Settings Chooses Wrong Day after Saving
2006-12-18 18:07:03 +00:00
sam_marshall
ad9947a857
MDL-7969 Documented requirement for first column in get_records_sql etc to be a unique field such as id.
2006-12-18 13:54:31 +00:00
skodak
fd9b61e04f
MDL-7861 added proper s() quoting into user image alt text and popup title
2006-12-18 08:08:15 +00:00
vyshane
9f4dff704b
Merged from 1.7.
2006-12-18 06:26:23 +00:00
vyshane
bc75cc5210
Added 2 new functions: question_get_feedback_image() and question_get_feedback_class().
2006-12-18 06:07:44 +00:00
moodler
0a5872450a
Commented out header.php because it's not in CVS yet
2006-12-18 04:43:12 +00:00
moodler
2ae2200286
Removed bad character
2006-12-18 04:38:53 +00:00
tjhunt
0dae5d33a7
MDL-7926 - set_field_select function. Merged from MOODLE_17_STABLE.
2006-12-15 18:23:31 +00:00
jamiesensei
19194f825a
added setAdvanced MoodleQuickForm method. And added closeHeaderAfter method
2006-12-14 12:44:10 +00:00
vyshane
67c0e16eed
Merged from 1.7.
2006-12-14 08:10:41 +00:00
vyshane
53a4443bae
Merged from 1.7.
2006-12-14 07:48:40 +00:00
toyomoyo
3f5abcb20a
accessibility fixes
2006-12-14 07:48:40 +00:00
vyshane
e9880ed208
Merged from 1.7.
2006-12-14 04:47:29 +00:00
toyomoyo
077f381461
accessiblity, associating <th> with respective row or col
2006-12-13 08:24:23 +00:00
skodak
7850588ab8
MDL-7909 add optional id parameter to choose_from_menu() and print_textarea() + minor quoting improvement in choose_from_menu()
2006-12-12 22:06:37 +00:00
sam_marshall
dc268b2f24
MDL-7904: Trivial change to load_capability_def (so it works if run multiple times for the same file during one PHP run)
2006-12-12 17:23:31 +00:00
toyomoyo
62fb666445
making default scope col for <th>
2006-12-12 08:11:49 +00:00
moodler
27f79fdab0
Added changes suggested by Nick in MDL-7883 to help debug XHTML strict
...
It only affects DEBUG_DEVELOPER mode, and causes the browser to break when it encounters non-strict XHTML.
I took out the changes for DEBUG_NORMAL for now, might be premature.
2006-12-12 07:24:32 +00:00
skodak
049bd7dbbd
fixed cleantext producing two spaces between element attributes instead of one MDL-7894
2006-12-11 22:07:53 +00:00
sam_marshall
ae628043a0
MDL-7401 Course format database/backup/lang/stylesheet/capability support
2006-12-11 15:47:23 +00:00
nfreear
fb132873d9
Fixes MDL-7884 "XML well-formed bug, need space before 'checked' attribute." (Merged from MOODLE_18_GROUPS)
2006-12-11 11:29:19 +00:00