Commit Graph

144 Commits

Author SHA1 Message Date
Jason Fowler e2236bac8c MDL-29231 - Course, Resource - Fix so that the correct icon is displayed for courses that have had two or more files uploaded to them - Thanks Michael D for the patch 2011-10-24 14:36:09 +08:00
David Mudrak 6ca0ba0104 MDL-28221 resource: fixed a typo in variable names 2011-07-11 12:04:18 +02:00
Andrew Davis (andyjdavis) b38e2e28a1 MDL-27829 blocks: altered the algorithm used to find plugin page types 2011-06-27 12:27:41 +08:00
Dongsheng Cai b1627a92e5 MDL-26105 Block settings should contains less options, and be more user friendly
AMOS BEGIN
    MOV [page-blog-index, pagetype], [page-blog-index, blog]
    MOV [page-blog-x, pagetype], [page-blog-x, blog]
    MOV [page-tag-x, pagetype], [page-tag-x, tag]
    MOV [page-course-view-weeks, pagetype], [page-course-view-weeks, format_weeks]
    MOV [page-course-view-weeks-x, pagetype], [page-course-view-weeks-x, format_weeks]
    MOV [page-course-view-topics, pagetype], [page-course-view-topics, format_topics]
    MOV [page-course-view-topics-x, pagetype], [page-course-view-topics-x, format_topics]
AMOS END
2011-06-09 13:51:14 +08:00
Sam Hemelryk 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
Petr Skoda 3d8f1d3abc MDL-26616 fix broken resource modinfo caused by invalid sortorder upgrade 2011-02-27 22:54:41 +01:00
Petr Skoda 516c5eca68 MDL-24698 hopefully fixed all completion_info problems 2010-11-17 06:23:56 +00:00
Petr Skoda 9815cceee8 improved coding style of last commit 2010-10-18 11:43:09 +00:00
Petr Skoda fe3c5daede adding support for directory links in file resource 2010-10-18 11:41:11 +00:00
Petr Skoda b4ff85aa38 fixed incorrect comparison 2010-10-18 10:52:57 +00:00
Petr Skoda ce459060fe MDL-14627 new mod/resource:view capability 2010-10-14 19:36:19 +00:00
Petr Skoda 39790bd805 MDL-24321 switching to stdClass in /mod/ 2010-09-21 08:37:36 +00:00
Andrew Davis 4eaa964f24 filter MDL-23810 adding a flag to indicate when we're working in an embedded resource to prevent winding up with nested Moodles 2010-09-16 07:06:29 +00:00
Ashley Holman d57a462103 MDL-23905 fix regression in mod_resource pluginfile.php migration 2010-08-25 01:40:10 +00:00
Petr Skoda ede7252234 MDL-23784 finally getting rid of all legacy .gif and .png extensions, yay! fixing issues with incorrect & in JS code 2010-08-12 20:37:24 +00:00
Petr Skoda 702ab58c08 MDL-21249 improved php docs and adding copyright blocks in mod/resource 2010-07-25 11:25:02 +00:00
Petr Skoda 64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Petr Skoda f1b8bcf70a MDL-22630 adding missing path component into file download link 2010-05-31 18:45:23 +00:00
Dongsheng Cai f79321f1b8 MDL-22548, added sortorder field to files table, drop mainfile field from resource table, use sortorder to decide main file 2010-05-28 07:29:11 +00:00
Petr Skoda 9b56a34f7d MDL-16089 some resource lib and lang pack cleanup
AMOS START
 MOV [displayauto,mod_resource],[resourcedisplayauto,core]
 MOV [displaydownload,mod_resource],[resourcedisplaydownload,core]
 MOV [displayembed,mod_resource],[resourcedisplayembed,core]
 MOV [displayframe,mod_resource],[resourcedisplayframe,core]
 MOV [displaynew,mod_resource],[resourcedisplaynew,core]
 MOV [displayopen,mod_resource],[resourcedisplayopen,core]
 MOV [displaypopup,mod_resource],[resourcedisplaypopup,core]

AMOS END
2010-05-22 13:54:41 +00:00
Eloy Lafuente a345de6e59 MDL-22151 backup - added resource (file) module backup 2010-05-04 22:19:22 +00:00
Sam Marshall c15a60e6be MDL-21687 Completion 'on view' not working on resource types after resource was rewritten 2010-02-23 13:10:45 +00:00
Petr Skoda 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
skodak aa54ed7b02 MDL-20065 new implementation of File module, modules sub-types are being migrated to separate modules; remaining issues to be listed as sub-tasks in tracker 2009-08-13 20:45:50 +00:00
tjhunt d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
skodak db4ecf4c7f MDL-16438 dixed resource borking install - no code execution in lib.php files! 2009-07-02 15:01:22 +00:00
tjhunt fa98e6d15a Kill some debug code. 2009-06-25 06:56:41 +00:00
skodak 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
skodak a8c31db2a3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:47:18 +00:00
samhemelryk 6b60b0004e resource MDL-18691 Implemented resource_get_name in one more place for dropdowns 2009-06-09 05:13:48 +00:00
samhemelryk 28f672b2df mod lib MDL-19294 Added boilerplate and phpdocs 2009-05-28 05:30:46 +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 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
skodak dc5c2bd9eb MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:17:21 +00:00
skodak 42f103be4c MDL-18910 moving modedit features to modname_supports() 2009-04-21 08:57:20 +00:00
fmarier c93dae38f0 mod/resource: MDL-18641 ability for resource type plugins to specify their own icon 2009-04-03 01:13:42 +00:00
fmarier 13ca1e06b8 mod/resource: MDL-18691 allow custom resource types to specify their name in their own lang directory
Before this change, the full name of the resource type had to be stored in the "resource" namespace (for example in /mod/resource/lang/en_utf8/resource.php).

Now it can be put in the "resource_foo" namespace:

e.g. in /mod/resource/type/foo/lang/en_utf8/resource_foo.php:

<?php
  $string['resourcetypefoo'] = 'Link to a Foo Bar document';
?>
2009-03-27 03:21:10 +00:00
skodak c5b8b31ad5 MDL-17617 removed some uses of snoopy library 2009-01-08 15:01:19 +00:00
skodak 214b1cf7a8 MDL-17428 Do not include in the middle of file in global scope 2008-11-27 22:46:34 +00:00
mjollnir_ 96a38422e1 MDL-16541 - text resource portfolio implementation - send as .html since we're formatting that way 2008-10-22 10:45:05 +00:00
mjollnir_ 6be1dcae99 MDL-16587 bit of a large refactor of the portfolio formats. still more to come. 2008-10-11 17:33:20 +00:00
nicolasconnault 5d1381c2c3 MDL-16486 Implemented the proxy DB class. Sort of working, but still some issues to sort out, like fix_course_sort_order, which updates a record NOT inserted by the unit test. 2008-09-19 14:28:22 +00:00
mjollnir_ 759204f88d MDL-16517 - fix regression i introduced in resource mod portfolio implementation 2008-09-15 19:39:46 +00:00
mjollnir_ c50466705e MDL-15666 - fixing bugs in resource unit test implementation 2008-09-15 16:08:59 +00:00
mjollnir_ 0d06b6fda7 MDL-16423 - big refactor of the way callers interact with the portfolio code
added two new contract methods to the caller class, load_data and expected_callbackargs (static)
this means that the base class is the only place that needs a constructor
and that no data loading happens in the constructor
this in turn means we can check callback argument validity much more lightly

also completely remoted portfolio_add_button function and replaced with a class
as the argument list was getting out of control.  it's now much more readable.
2008-09-11 13:42:58 +00:00
mjollnir_ e4af1deef4 MDL-15833 - added some commented out hints for upload resource (not implemented yet) 2008-09-10 09:36:42 +00:00
mjollnir_ 8f95364733 MDL-16391 - plain text resources are now PORTFOLIO_FORMAT_TEXT. 2008-09-09 11:01:29 +00:00
mjollnir_ d8606b2078 MDL-15833 - make the portfolio callers use the helper functions to detect expected time. 2008-09-09 09:32:16 +00:00
mjollnir_ ea0de12f10 MDL-16360 - added support for mime-style subformat detection for portfolio supported formats
works well with flickr plugin (tested by uploading an image as a forum attachment and being offered flickr plugin but not for normal attachments)
2008-09-05 17:07:22 +00:00
mjollnir_ 3bb8a2c75c MDL-16322 - switch calls to print_error to throw exceptions in portfolio callers 2008-09-04 10:38:44 +00:00