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
Sam Hemelryk
136ca7c87d
NOBUG: Tidied up coding style in navigationlib
2010-08-26 06:23:14 +00:00
Sam Hemelryk
022d66485a
restore MDL-23862 Course restore link in front page settings is now active again
2010-08-24 03:52:52 +00:00
Sam Hemelryk
93ea1294e3
navigation MDL-23881 Labels are now added to the navigation but the display property is set to false.
2010-08-23 02:03:54 +00:00
Petr Skoda
99f9f85f00
MDL-23489 auth plugins can specify own edit profile url - patch submitted by Jay Knight + tweaking change password url to use new moodle_url at the same time, it is backwards compatible, custom plugins may still use string url for now
2010-08-18 22:07:00 +00:00
David Mudrak
370d793c98
MDL-23318 Consistent usage of 'pluginadministration' string for the Settings block
...
AMOS BEGIN
MOV [assignmentadministration,mod_assignment],[pluginadministration,mod_assignment]
MOV [dataadministration,mod_data],[pluginadministration,mod_data]
MOV [feedbackadministration,mod_feedback],[pluginadministration,mod_feedback]
MOV [folderadministration,mod_folder],[pluginadministration,mod_folder]
MOV [forumadministration,mod_forum],[pluginadministration,mod_forum]
MOV [glossaryadministration,mod_glossary],[pluginadministration,mod_glossary]
MOV [chatadministration,mod_chat],[pluginadministration,mod_chat]
MOV [choiceadministration,mod_choice],[pluginadministration,mod_choice]
MOV [imscpadministration,mod_imscp],[pluginadministration,mod_imscp]
MOV [labeladministration,mod_label],[pluginadministration,mod_label]
MOV [lessonadministration,mod_lesson],[pluginadministration,mod_lesson]
MOV [pageadministration,mod_page],[pluginadministration,mod_page]
MOV [quizadministration,mod_quiz],[pluginadministration,mod_quiz]
MOV [resourceadministration,mod_resource],[pluginadministration,mod_resource]
MOV [scormadministration,mod_scorm],[pluginadministration,mod_scorm]
MOV [surveyadministration,mod_survey],[pluginadministration,mod_survey]
MOV [urladministration,mod_url],[pluginadministration,mod_url]
MOV [wikiadministration,mod_wiki],[pluginadministration,mod_wiki]
MOV [workshopadministration,mod_workshop],[pluginadministration,mod_workshop]
AMOS END
2010-08-17 17:35:12 +00:00
Petr Skoda
3f873af7bf
MDL-23842 cohort UI now linked from course category settings block too
2010-08-17 13:05:33 +00:00
Sam Hemelryk
e44d2cad8f
navigation MDL-23832 Labels are no longer shown on the navigation
2010-08-17 02:47:17 +00:00
Sam Hemelryk
ad93ddd5f7
course-import MDL-23752 Implemented course import functionality back into Moodle 2.0
...
The course import now makes use of the backup and restore processed and the backup UI to allow the user to import one course into another.
The new UI is much the same as the backup ui except preceeded by a course selector to choose the course to import from.
2010-08-17 02:07:30 +00:00
Petr Skoda
4f622c38a1
MDL-23774 only administrators may edit administartor accounts
2010-08-12 09:44:28 +00:00
Tim Hunt
633c0843b3
navigation NOBUG clone the URL passed to override_active_url
...
Grrr! just spent ages debugging a really subtle bugs because moodle_urls can
change, and override_active_url was keeping a reference to the caller's URL
rathern than taking a private copy.
2010-08-06 16:12:31 +00:00
Sam Hemelryk
d0cfbab331
NOBUG: Updating PHP docs for navigation - make_active and override_active_url
2010-08-05 08:17:27 +00:00