Commit graph

412 commits

Author SHA1 Message Date
Tim Hunt
836c47d7fe MDL-22155 useful new method html_writer::nonempty_tag.
It outputs a tag only if the contents you pass is non-empty.

Also, unit tests for the basic parts of html_writer.
2010-04-23 10:34:07 +00:00
Sam Hemelryk
3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00
Andrew Davis
11cca21ec3 unit tests MDL-22017 made test_usergetdate() work on machines in different timezones 2010-04-16 07:47:39 +00:00
Petr Skoda
cae07b1cdc MDL-22052 pruning pre-amos string related code 2010-04-10 19:28:34 +00:00
Petr Skoda
98da60215e MDL-22033 groupings now enabled unconditionally, groupmembersonly kept as experimental - this simplifies groups code logic a bit, user interface changes should not be significant because the groupings are not visible much until at least one created; hopefully the new description of groupmembersonly will have to preventsome gradebook complaints 2010-04-07 07:37:12 +00:00
Petr Skoda
ef330d9533 MDL-22015 AMOS - making room for new string manager 2010-04-01 18:50:28 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
David Mudrak
e6cf48d42a MDL-21694 re-enabling all get_string() performance tests 2010-03-29 15:20:40 +00:00
David Mudrak
e16f75bde3 Unit test did not preserve session 2010-03-21 19:44:57 +00:00
Eloy Lafuente
d294000348 MDL-21666 backup & restore caps - moving to new naming schema. More to come. 2010-02-19 17:50:14 +00:00
Petr Skoda
3e4735f459 MDL-21361 removed invalid unit tests for features that were removed or significantly redesigned 2010-02-18 18:24:26 +00:00
Sam Hemelryk
a3bbac8b76 navigation MDL-21604 Corrected simpletests after recent modifications 2010-02-18 06:42:29 +00:00
Petr Skoda
5be262b66f MDL-20204 converting html_list 2010-02-17 17:56:26 +00:00
Petr Skoda
929d7a8362 MDL-20204 converted paging_bar to new coding style + fixed regressions from recent commits 2010-02-17 16:59:41 +00:00
Petr Skoda
3ea5951efb MDL-20204 converting some more html_links 2010-02-16 15:27:16 +00:00
jerome mouneyrac
5a18a8fa74 file API MDL-20616 remove bad php doc comment 2010-02-16 09:17:39 +00:00
jerome mouneyrac
5db608f435 file API MDL-20616 added support for multiple array POST parameters in the function download_file_content(). Also added unit tests. 2010-02-16 09:04:55 +00:00
Petr Skoda
75015e5fc1 MDL-20204 converting link to html_writer or action_link 2010-02-11 16:27:53 +00:00
Petr Skoda
4ed857901a MDL-20204 fianl cleanup - removing obsolete renderer stuff 2010-02-11 10:32:39 +00:00
Petr Skoda
2849ddc667 MDL-21577 removing tests for removed features 2010-02-10 16:27:49 +00:00
Petr Skoda
78bdac6449 MDL-20204 converting yes_no selects 2010-02-10 14:05:07 +00:00
Petr Skoda
5509254c25 MDL-21233 prepare_url obsoleted by new html_writer and changes in moodle_url 2010-01-17 10:59:07 +00:00
Petr Skoda
eb7880654f MDL-21233 finally removed the omitquerystring parameters from the out method because: 1/ the least used parameter should nto be first, 2/ it is colliding with the other two paramters, now we have separate funtion for that instead 2010-01-17 09:37:30 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Rossiani Wijaya
34d2b19a15 MDL-16919 - Convert uppercase to lowercase for param_username and updating test result in testmoodlelib. 2010-01-14 07:18:06 +00:00
Andrew Davis
0ae98120ae weblib MDL-21183 Commented out some unreasonable unit tests 2010-01-14 02:17:24 +00:00
Rossiani Wijaya
07ed083e4e MDL-16919 - Allow username to contain alphanumeric lowercase characters, underscore (_), hyphen (-), period (.) or at symbol (@) 2010-01-13 06:23:54 +00:00
Petr Skoda
5f0baa43a5 MDL-21149 preparation for renaming of old standard to standardold 2010-01-12 17:21:52 +00:00
Eloy Lafuente
ecbeab1a95 MDL-21296 - Adding timing info to test in order to compare results ; merged from 19_STABLE 2010-01-12 14:08:50 +00:00
Eloy Lafuente
9dd05f1db7 MDL-21168 - Added test for URLs with encoded paths and queries and fixed some onew. Merged from 19_STABLE 2010-01-12 13:33:25 +00:00
Andrew Davis
330cc667b0 weblib MDL-21168 Added some more unit tests 2010-01-11 06:26:59 +00:00
Eloy Lafuente
fd81d5bd37 MDL-21168 avoid http://www.whatever to be linked twice ; merged from 19_STABLE 2010-01-08 22:25:13 +00:00
Eloy Lafuente
0559076a3c MDL-21168 convert_urls_into_links() - minor changes to tests (code formatting,
utf_decode() out and properly escape % chars. Merged from 19_STABLE
2010-01-08 16:44:11 +00:00
Andrew Davis
24d38a6e6d moodlelib MDL-20918 usergetdate was returning an array in a different order depending on whether or not timezone was set 2010-01-08 06:56:29 +00:00
Petr Skoda
5c2ed7e215 MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements 2010-01-03 15:46:14 +00:00
Petr Skoda
4bcc51185c MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions 2009-12-30 15:19:55 +00:00
Petr Skoda
812dbaf7d5 MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars 2009-12-27 19:47:21 +00:00
Andrew Davis
c013b31695 weblib MDL-21168 improved convert_urls_into_links 2009-12-24 06:44:51 +00:00
Andrew Davis
53ad47f22b weblib MDL-20826 made convert_urls_into_links() produce xhtml compliant links 2009-12-18 04:13:35 +00:00
Andrew Davis
9c7a301b4d weblib MDL-20826 improved convert_urls_into_links() 2009-12-17 07:52:56 +00:00
Petr Skoda
4454447d56 MDL-20700 whitespace terror returns 2009-12-16 22:14:17 +00:00
Petr Skoda
c39e5ba20f MDL-20787 renaming image_url() to pix_url() to be more consistent with the actual image location ;-) 2009-12-16 20:33:37 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
Penny Leach
5fb2911515 portfolio MDL-21079 updated a few more portfolio_callers
fixed a few more that were pointing to lib.php rather than locallib.php
2009-12-15 12:37:06 +00:00
Sam Hemelryk
d54343ef28 portfolio MDL-21079 Fixed missing requirement in portfolio simpletests 2009-12-14 05:56:55 +00:00
Sam Hemelryk
477969b6b4 portfolio MDL-21079 Fixed missing requirement in portfolio simpletests 2009-12-14 02:23:36 +00:00
Sam Hemelryk
460232f302 navigation MDL-14632 Attempting to fix navigation simpletests 2009-12-11 02:40:57 +00:00
Penny Leach
59dd457e4b portfolio: MDL-21030 - leap2a portfolio format support.
This commit includes:

- leap2a portfolio format, and xml writer
- proof of concept implementation in forum and assignment modules
- a lot of refactoring of the portfolio formats in general:
    - addition of "abstract" formats - this is necessary for plugins to be able to support groups of formats
    - addition of the idea of portfolio formats conflicting with eachother - eg richhtml & plainhtml

it touches modules other than assignment and forum, because the format api
changed and now each place in moodle that exports portfolio content has to deal
with the formats it supports slightly differently.

At the moment the Mahara portfolio still doesn't support this format, because I
haven't done the Mahara side yet. The "file download" plugin supports it
though.

Still todo:

- Add support for the other places in Moodle (glossary, data, etc)
- Write tests, once the rest of the portfolio tests have been updated to use the new DB mocking stuff
- Fix a bunch of TODOs
2009-12-03 14:26:37 +00:00
Eloy Lafuente
8eb321419f MDL-21015 migrate testsimpletestlib to UnitTestCaseUsingDatabase 2009-12-01 23:00:45 +00:00
Eloy Lafuente
2d786d9bfb MDL-21015 migrating conditionlib test from FakeDBUnitTestCase to UnitTestCaseUsingDatabase 2009-12-01 22:31:22 +00:00