Commit Graph

40 Commits

Author SHA1 Message Date
2b04c41c58 MDL-27471 Adding mandatory component & ratingarea to the ratings API + other fixes
* Added the component and ratingarea fields and implemented it throughout
  the rating API as mandatory fields
* Cleanup rating indexes
* Upgrade forum/data/glossary ratings
* Moved the logic in the render_rating method to methods of the rating object.
* Added new callback for checking ratingareas
* Cleaned comments here and there
* Mark the xxx_get_participants methods as deprecated
* Refactor rate_ajax and ratingsuser_can_view_aggregate methods
* Cleaned up rating/index.php to use html_table object and moved inline styles to CSS.
* Added missing properties of the rating object that were being set throughout the rating
  API.
2011-05-23 12:35:39 +02:00
0d8b6a69ce lib MDL-25981 Improved modinfo
This commit:
a) moves modinfo code into new library modinfolib.php
b) uses classes instead of stdClass objects, allowing a huge amount of documentation (and IDE completion)
c) adds hooks so that plugins other than forum can display messages like forum's 'unread', and plugins other than label can display html (apart from/as well as their view.php link) on the course view page
d) removes current hacks for forum and label (mainly in print_section but also across the code), replacing with new 'content' and similar variables [this is the reason for the changes in blocks, etc]
e) reduces size of modinfo in database (only when rebuilt) by excluding empty fields

The change is intended to be backward compatible and does not affect the format of modinfo in database.
2011-01-26 10:29:16 +00:00
e83a6a22d4 MDL-26106 fix lable typo
credit goes to fautrero
2011-01-23 15:36:06 +01:00
39790bd805 MDL-24321 switching to stdClass in /mod/ 2010-09-21 08:37:36 +00:00
9516942ac6 MDL-21249 improved php docs and adding copyright blocks 2010-07-25 11:06:52 +00:00
f58a9e3707 MDL-22151 backup - added label module backup 2010-05-04 20:21:13 +00:00
9a9012dc8f MDL-21590 fixed icons in navigation lib + clean up of modinfo (planned removeal of legacy use of urlencode since 1.8 - we use serialize and utf8 is ok now) 2010-02-14 20:18:10 +00:00
31dadc6fee MDL-20204 more steps away from old popup_form 2010-02-10 11:25:17 +00:00
86342d631f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 15:03:10 +00:00
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
44a87f630a mod lib MDL-19294 Added boilerplate and phpdocs 2009-05-28 02:48:34 +00:00
43b44d5ea6 MDL-18910 full support for module intro editor with embedded images 2009-04-22 07:14:19 +00:00
dc5c2bd9eb MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:17:21 +00:00
42f103be4c MDL-18910 moving modedit features to modname_supports() 2009-04-21 08:57:20 +00:00
f432bebff2 MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks; merged from MOODLE_19_STABLE 2008-07-24 21:59:13 +00:00
c0a578c071 MDL-15304
Default name 'label' is looked up from language pack.

Merged from STABLE_19
2008-07-08 09:39:18 +00:00
8f829910d6 MDL-15304
Remove the item number from the created label name. It doesn't work for new labels.

Merged from STABLE_19
2008-07-08 08:45:26 +00:00
d02f193404 MDL-15304 fixed empty label names coming from restore; merged from MOODLE_19_STABLE 2008-07-05 09:37:30 +00:00
a38f12927e MDL-15304, MDL-15526 fixing regression; merged from MOODLE_19_STABLE 2008-07-03 23:01:32 +00:00
57eb939ee4 MDL-15304 fixed magic quotes issue merged from 19 2008-06-24 21:57:39 +00:00
376ca347ca MDL-15304
Handle empty names for labels (if only HTML tags in label text)
2008-06-18 15:31:47 +00:00
1b81b0a412 MDL-15111 label mod converted 2008-06-03 23:44:16 +00:00
c18269c7e5 MDL-14679 towards modform conversion 2008-06-01 21:36:11 +00:00
7cac0c4b2b MDL-14679 fixed references to mod.html 2008-06-01 19:09:13 +00:00
1ea543df62 MDL-7547 yet more speed improvements in rebuild_course_cache() ; merged from MOODLE_19_STABLE 2008-02-01 08:15:38 +00:00
f36cbf1d6e MDL-13214 rebuild_course_cache fixes and speed improvements; merged from MOODLE_19_STABLE 2008-02-01 07:48:26 +00:00
dd97c32868 MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker; merged from MOODLE_19_STABLE 2008-01-24 20:33:50 +00:00
0b5a80a1a5 MDL-7028 rewritten course reset + forum role_unassign cleanup fixes; merged from MOODLE_19_STABLE 2007-11-29 14:43:04 +00:00
89bfeee0d6 MDL-7742 added nested drop down box to add activities/resources to course, 3rd party mods can specify type
MDL-6987 preparation for migration of mod/assignment/mod.html
2007-01-02 09:33:07 +00:00
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
a8f5a8a2e4 Insert a Chinese charachter string to label resource result error MDL-6757 2006-10-08 10:07:03 +00:00
f3221af9e5 Initial checkin of stats (from processing the log table).
I will write up some information about it for the developers wiki.
2005-09-01 04:14:31 +00:00
2bf5b5d4fc Merged fixes from stable 2005-06-03 12:22:54 +00:00
885b6007c7 Now label->name is working with filterall.
(not really important because it is never shown, but...)
2005-04-06 15:20:33 +00:00
41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
9d361034ec Much requested: Uploaded resources are now shown using the relevant icon. 2004-04-26 15:31:22 +00:00
2185622e76 Removed unnecessary functions 2003-11-21 14:03:06 +00:00
8dddba42ce Modularised some of the processing for "extra" information such as
information for popup windows on resources and labels
2003-10-22 13:14:56 +00:00
2b9f062552 Added "graphical structure".
Added label_get_participants() function.
2003-09-14 15:47:36 +00:00
2c5c3e62a7 New module: Label.
This is a sort of "dummy" activity that allows HTML to be placed
anywhere in the course sections ...
2003-09-14 12:30:09 +00:00