tjhunt
8954245a1b
themes: MDL-19077 start implementing moodle_core_renderer
...
Only a couple of methods implemented. Please review the API and
tell me if you are not happy with the direction I am taking.
2009-06-23 10:41:22 +00:00
stronk7
db3a1eb8fd
MDL-19579 code coverage - prepare ddl & moodlelib tests to support code coverage
2009-06-23 09:30:59 +00:00
tjhunt
73af8b1139
Fix notice in blockmanager unit tests.
2009-06-22 07:26:50 +00:00
tjhunt
8e8b806600
Fix some problems with the filelib unit tests, and stop hiding the true cause of another failure.
2009-06-22 07:17:59 +00:00
tjhunt
b44b6c4599
Fix accesslib unit tests.
2009-06-22 07:16:26 +00:00
tjhunt
9fa62210e8
Fix pagelib unit tests.
2009-06-22 06:30:21 +00:00
nicolasconnault
31c2087d1e
MDL-19566 Refactored some of the more complex regular expressions in their own function and added unit tests for them.
2009-06-22 06:07:56 +00:00
tjhunt
64208b5de5
MDL-16438 fix string manager unit tests.
2009-06-22 06:03:53 +00:00
nicolasconnault
6dbcaceef1
MDL-19418 Replaced ereg* by preg*
2009-06-22 01:22:37 +00:00
tjhunt
571fa82824
themes: MDL-19077 implement the renderer_factory instrastructure.
...
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F
The concept is that all the print_... functions in weblib get replaced by methods
on a moodle_core_renderer class. Then, the theme can choose whether to
use the standard moodle_core_renderer class, or another implemenatation of
its own choosing, to generate different HTML.
Also, becuase Moodle is modular, we may need a moodle_mod_forum_renderer
and so on.
In order for the theme to be able to choose which renderers get created, we
introduce the concept of a renderer factory, as in the factory design pattern.
The theme will choose which factory should be used, and that then creates
the renderer objects based on the module name.
This commit includes 4 types of factory:
* standard_renderer_factory
* custom_corners_renderer_factory
* theme_overridden_renderer_factory
* template_renderer_factory
All this with unit tests and PHP doc comments.
Note, this new code is not actually used yet. Still todo:
1. actually define the moodle_core_renderer class, and deprecate a lot of weblib functions.
2. make theme_setup initialise everything, so it is used.
2009-06-18 10:43:13 +00:00
tjhunt
32941d74c8
Move extra ajaxlib unit tests to the right place.
2009-06-17 07:35:33 +00:00
tjhunt
1ee9d0d764
Fix boilerplate.
2009-06-17 07:32:18 +00:00
fmarier
3e83641fdc
MDL-2794 testweblib: adapt the unit tests to the output of new html2text library
2009-06-15 06:08:42 +00:00
jerome
2b06294b9a
authentication MDL-19182 split auth.php lang file into multiple files separate for each plugin
2009-06-11 03:34:46 +00:00
skodak
bf8e93d704
MDL-18293 $DB->somethiong is using exceptions, no need for ifs tehre, removing useless strings
2009-06-03 20:00:08 +00:00
skodak
1aa01caf90
MDL-16231 reimplemented deleting of files + cron cleanup
2009-06-03 08:10:21 +00:00
skodak
4eef139962
MDL-14589 file browsing refactoring - moving url encoding to filelib.php for now
2009-05-20 22:32:02 +00:00
tjhunt
bb46a4fa2a
blocklib: MDL-19010 refactor blocklib to use block_manager to get the blocks for rendering
2009-05-06 09:15:05 +00:00
tjhunt
08eab89703
blocklib: MDL-19010 add block and get_blocks methods
2009-05-06 09:14:42 +00:00
tjhunt
86b5ea0f85
blocklib: MDL-19010 start of block_manager - get and set regions
2009-05-06 09:14:01 +00:00
tjhunt
c33db6e690
moodle_page: MDL-12212 clarify some comments
2009-05-06 09:13:40 +00:00
tjhunt
93d4a373f9
blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere
2009-05-06 09:13:16 +00:00
tjhunt
5ed70539f9
moodle_page: MDL-12212 ->subpage field
2009-05-06 09:03:49 +00:00
tjhunt
5ec434a9c2
moodle_page: MDL-12212 ->cm and ->activityrecord fields
2009-05-06 09:03:33 +00:00
tjhunt
934524d70b
moodle_page: MDL-12212 new implementation of user_allowed_editing
2009-05-06 09:01:42 +00:00
tjhunt
830dd6e9cd
moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting
2009-05-06 08:59:29 +00:00
tjhunt
ad52c04f4c
moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
...
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
tjhunt
75781f879c
moodle_page: MDL-12212 ->url and cleanup init of $FULLME, etc.
2009-05-06 08:50:32 +00:00
tjhunt
82611d8d33
moodle_page: MDL-12212 ->docspath
2009-05-06 08:48:13 +00:00
tjhunt
d7ab887938
moodle_page: MDL-14306 (part of MDL-12212) class name on body with ->category
...
If ->allowcategorythemes is set, includes all parent categories too
2009-05-06 08:46:48 +00:00
tjhunt
948203a5e8
moodle_page: MDL-12212 ->category and ->categories
2009-05-06 08:46:05 +00:00
tjhunt
89fbdca300
moodle_page: MDL-14305 (and MDL-12212) class on body based on ->wwwroot
2009-05-06 08:44:58 +00:00
tjhunt
753debd2ab
moodle_page: MDL-12212 ->bodyclasses and initialise_standard_body_classes
2009-05-06 08:42:13 +00:00
tjhunt
e88462a055
moodle_page: MDL-12212 eliminate the two different interpretations of
...
pagetype
2009-05-06 08:41:02 +00:00
tjhunt
f230ce19ea
moodle_page: MDL-12212 implement ->pagetype
2009-05-06 08:34:32 +00:00
tjhunt
2afe21eea3
moodle_page: MDL-12212 implement ->context
2009-05-06 08:30:25 +00:00
tjhunt
6db66ba11c
Disable the bloody eventslib unit tests until someone fixes them!
2009-04-24 09:49:43 +00:00
nicolasconnault
577d5f9e32
MDL-15931 More unit tests of file_info_* classes
2009-04-23 09:06:59 +00:00
nicolasconnault
a196c5ace7
MDL-15931 More unit tests of file_info_* classes
2009-04-23 09:02:21 +00:00
nicolasconnault
ce75fef1c6
MDL-15931 More unit tests of file_info_* classes
2009-04-23 08:58:49 +00:00
nicolasconnault
d263168375
MDL-15931 Using $CFG->unittestprefix now for filelib unit tests. MUCH slower but safe(r)
2009-04-21 12:22:36 +00:00
nicolasconnault
f91a05e0e1
MDL-15931 More unit tests of file_info_* classes
2009-04-20 14:42:17 +00:00
nicolasconnault
2b726e9f3a
MDL-15931 More unit tests of file_info_* classes
2009-04-20 13:10:42 +00:00
nicolasconnault
dd13271188
MDL-15931 refactored file_browser.php
2009-04-20 08:18:33 +00:00
nicolasconnault
edfbf2fe81
MDL-15931 Adding testfilelib.php and a few comments in file API code
2009-04-18 15:16:13 +00:00
tjhunt
9434fef401
filters: MDL-18879 filter data not deleted when a context is deleted
...
Missed when implementing MDL-7336
Also, fix minor issues with deleting filters
2009-04-17 02:49:07 +00:00
poltawski
668fa0d667
simplepie: fix class name caseing: MDL-7946, MDL-13932
2009-04-13 16:00:44 +00:00
poltawski
80d72d56bc
Adding SimplePie feed parsing library MDL-7946, MDL-13932
...
To replace unmaintained magipie. Simplepie is actively maintained has some
nice features such as feed autodisovery. Implemented a simple extended class
which uses the Moodle core curl class from filelib.
Added unit test using the moodle.org sample files. Please note these tests will
fail if moodle can't make http connections out, so ensure proxy settings
etc are correct.
2009-04-13 15:29:08 +00:00
tjhunt
a042675877
filters: MDL-7336 function to get the information the local settings page will need.
2009-04-13 07:07:03 +00:00
tjhunt
3058afd429
filters: MDL-7336 performance testing script
2009-04-13 07:06:44 +00:00