Commit Graph

229 Commits

Author SHA1 Message Date
Sam Hemelryk 9f6eeb4abf Merged MDL-25805 Renamed property and function to be a little more descriptive 2011-05-03 15:43:20 +08:00
Aparup Banerjee 389235fb00 MDL-25805 Roles propagated ugly hack for parent seeing child activities into navigation lib to display nav node. 2011-05-02 20:21:51 +08:00
Petr Skoda c629aeabe3 MDL-25651 fix incorrect indentation 2011-04-04 10:01:30 +02:00
Jenny Gray bf8ff4889b MDL-25651 add capability check to my private files navigation link 2011-03-31 14:54:36 +01:00
Petr Skoda 61baea5d22 Merge branch 'MDL-26903' of git://github.com/samhemelryk/moodle 2011-03-21 18:00:07 +01:00
Sam Hemelryk c78262b542 navigation MDL-26903 Fixed regression to navigation ajax after CM changes 2011-03-21 10:22:28 +08:00
Petr Skoda 8f6c1f3488 MDL-26859 improve blog access control and prevent unnecessary blog includes 2011-03-20 13:34:51 +01:00
Eloy Lafuente (stronk7) 0dd8cb88e9 Merge branch 'w07_MDL-23939_20_completeuser' of git://github.com/skodak/moodle 2011-02-14 17:10:29 +01:00
Petr Skoda 44303ca67a MDL-25974 fix access to activities when role switched in hidden course and some coding style strict comparison fixes
The problem with strict comparison of numerical values fails badly if one is int and the other is string, moodle core apis do not guarantee return types much.
2011-02-13 16:17:47 +01:00
Petr Skoda cc10c0b979 MDL-23939 minor course_display coding style improvements and inline docs 2011-02-12 23:06:11 +01:00
Aparup Banerjee 13801a49a2 MDL-23939 lazy load course_display with new course_get_display()
This change speeds up user login and makes the session smaller.
2011-02-12 22:45:17 +01:00
Petr Skoda 81c29ae06d Merge branch 'MDL-26266' of git://github.com/samhemelryk/moodle 2011-02-07 23:05:08 +01:00
Dongsheng Cai 100e0d4989 NAVIGATION MDL-25468 remove optional_param from navigationlib.php, use override_active_url to help find the correct node 2011-02-07 16:25:58 +08:00
Sam Hemelryk f0dcc21259 navigation MDL-26266 Refactored code to ensure when loading activities is a cm_info object 2011-02-07 12:16:13 +08:00
Petr Skoda 46df3c6059 Merge branch 'MDL-25981' 2011-01-31 22:44:17 +01:00
Sam Hemelryk 7e90d3a450 navigation MDL-25291 Added a session variable so that admin tree is skipped if it is found to be empty. 2011-01-27 15:54:11 +08:00
sam marshall 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
Sam Hemelryk 8ad24c1a44 navigation MDL-25596 Fixed whitespace issue 2010-12-23 16:55:52 +08:00
Sam Hemelryk 48d8d09063 navigation MDL-25596 Improvements for the navigation blocks JS
The biggest change is that the navigation block has been converted to a proper YUI module.
The following are the other changes made at the same time:
 * A loading icon is displayed when a branch is being loaded by AJAX.
 * Fixed a bug where you could trigger multiple AJAX requests by rapidly clicking an unloaded branch.
 * Fixed a bug where empty branches weren't being marked as such after a successful AJAX load.
 * When docked the width of the blocks dock panel is now inspected an increased if required to try avoid horizontal scrolling.
 * Removed the no longer needed inclusion of the YUI2 dom library from the navigation and settings block.
 * Expandable nodes are now passed as JS data allowing the navigation JS to be initialised through block_navigation::get_required_javascript.
 * AJAX is now focused around the branch in question rather than the tree in general.
 * Expansion of branches is now delegated to the tree rather than being an individual event on all branches.
 * Tidied up the code in general removing unneeded-unused parameters.
2010-12-23 11:21:07 +08:00
Sam Hemelryk afc45eb160 navigation MDL-25578 Fixed up navbar when viewing categories. 2010-12-08 02:03:07 +00:00
Sam Hemelryk 480f906e25 block-navigation MDL-23838 There is now an option that you can enable so that categories in the navigation are links as well. 2010-12-02 07:13:07 +00:00
Sam Hemelryk ed6af5425c navigation MDL-25397 Converted use of can_edit_category to check capabilities instead. 2010-11-26 06:07:46 +00:00
Sam Hemelryk c55e1d2945 navigation MDL-25410 Fixed up marking of active item/items and fixed blog links on navigation so they only display for current user. 2010-11-26 06:04:59 +00:00
Sam Hemelryk ca787a923f navigation MDL-25364 Fixed up AJAX loading for guest users within a course. 2010-11-22 10:19:39 +00:00
Sam Hemelryk 1b32bc234a categories MDL-24936 Added turn editing on/off links to the category settings in the settings block 2010-11-22 05:31:46 +00:00
Sam Hemelryk 9a424c711e navigation MDL-25247 Fixed regression in the navigation. 2010-11-17 02:20:05 +00:00
Sam Hemelryk 09ecc227a3 navigation MDL-24990 Wrapped link to assign roles in categories within proper capability check. 2010-11-11 08:58:46 +00:00
Sam Hemelryk ed1d72ea70 navigation MDL-25142 Fixed up differences in navigation between guest and normal user.
As part of this patch I also introduced a new method in accesslib can_access_course that can be used
to check a users access to a course.
I also fixed a minor issue with guest access flag caching in require_login
2010-11-11 03:37:56 +00:00
Sam Hemelryk e0be5f1f34 NOBUG: Fixed minor navigation issue 2010-11-05 08:40:45 +00:00
Dongsheng Cai d0da42d1b7 MDL-24917, display activity backup area in restore-pre ui 2010-11-02 02:29:21 +00:00
Sam Hemelryk 00c11469c2 navigation MDL-24745 Removed unneeded capability check when adding a users forum posts link to the navigation. 2010-10-22 03:00:01 +00:00
Sam Hemelryk dbe5050d94 navigation MDL-24599 Sections no longer link 2010-10-21 09:43:31 +00:00
Sam Hemelryk 6c91565447 navigation MDL-24599 Sections no longer restrict course view to just the one section. 2010-10-21 09:37:18 +00:00
Petr Skoda 2a62743c40 MDL-24316 "reenabling" access to stealth activities 2010-10-13 18:51:37 +00:00
Sam Hemelryk fab0a39fe3 navigation MDL-24571 Fixed issue with course where availability prevents access 2010-10-11 07:43:51 +00:00
Sam Hemelryk 241ce9c4b4 mod-forum MDL-24569 Improved forum posts/discussions links within navigation 2010-10-11 06:28:41 +00:00
Petr Skoda b68e1bc521 MDL-16349 we can now safely switch to the guest role 2010-10-09 19:55:18 +00:00
Sam Hemelryk b475cf4cbc navigation MDL-1001 Fixed wrong capability during context call 2010-10-06 06:50:36 +00:00
Sam Hemelryk 83a5e4fc92 navigation MDLSITE-1023 Fixed up navigation regression when viewing site pages and not being logged in. 2010-10-05 02:38:40 +00:00
Sam Hemelryk 02848cbf4a navigation MDLSITE-970 Check module support function exists before calling it 2010-10-01 06:22:08 +00:00
Sam Hemelryk d69e84b7fe navigation MDL-23902 Added format_string call to cm->name when adding modules to navigation 2010-09-21 01:57:53 +00:00
Sam Hemelryk 12f701f173 navigation MDL-24216 Tweaked the navigation clear cache method to remove all navigation caches 2010-09-15 08:32:15 +00:00
Sam Hemelryk 1433768899 navigation MDL-24214 Hidden categories are now dealt with correctly by the navigation 2010-09-15 06:02:02 +00:00
Sam Hemelryk 1fa692ede1 navigation MDL-24164 Fixed bug whereby site pages was being loaded twice 2010-09-10 03:13:45 +00:00
Sam Hemelryk ee9ff05953 navigation MDL-22709 Implemented use of section names in course editing links code. Thanks Brandon for the patch. 2010-09-08 08:44:16 +00:00
Petr Skoda 57ebd15e1d MDL-23308 reverting previously reverted deprecation of legacy course files - we have agreed during the meeting on Thursday that we add new setting to allow this, not keeping the course files everywhere forever 2010-09-03 19:14:33 +00:00
Dongsheng Cai e921afa874 "MDL-23308, bring course files back" 2010-08-30 08:22:14 +00:00
Sam Hemelryk abaece1e26 navigation MDL-23981 Fixed up simpletests for the navigation 2010-08-30 02:50:22 +00:00
Sam Hemelryk 39ae5e541f navigation MDL-23953 initialise signature of global_navigation_for_ajax is the same as the class it extends 2010-08-27 02:09:07 +00:00
Sam Hemelryk f5c1e62149 navigation MDL-23852 Added is_role_switched method to accesslib and implemented use of it 2010-08-27 01:44:25 +00:00