31 Commits

Author SHA1 Message Date
samhemelryk
f5b5a82203 navigation MDL-20521 Fixed caching issue with admin tree
Added methods that allow a navigation cache to be marked as volatile so that it is destroyed on shutdown, forcing the next page to load to completely regenerate the navigation structure.
Caches are marked as volatile automatically if the load is within the system context, and can optionally be marked as volatile by calling PAGE->navigation->clear_cache() if desired.
2009-10-12 05:39:32 +00:00
samhemelryk
c705a24eb2 simpletest-navigation MDL-20395 Fixed up regressions in the simpletest caused by recent changes to upgrades to navigation lib.
Also fixed issue whereby PAGE->set_url was being called by testdeprecatedlib but not being reset to the original value causing several flow on errors through simpletests
2009-10-01 02:31:42 +00:00
samhemelryk
ceebb2ec5f core MDL-19799 Upgraded deprecated calls and minor documentation improvement 2009-09-30 06:14:58 +00:00
samhemelryk
a4bead671a navigation MDL-20324 Frame busting now occurs for every nav link if framename is not _top 2009-09-23 09:32:03 +00:00
samhemelryk
dfca6e9968 navigation MDL-20324 Quick fix to a regression caused by last update 2009-09-23 06:24:14 +00:00
samhemelryk
fa42a689cd navigation MDL-20324 Quick fix to a regression caused by last update 2009-09-23 06:17:52 +00:00
samhemelryk
bf6c37c786 navigation MDL-20332 MDL-20324 Modifications to fix the following issues:
* If no active node is found when the navigation is called upon then we attempt to find a best match active node
 * Links are now produced with frame breakout actions
 * Links ending with / are presumed index.php for matching purposes
2009-09-23 06:05:36 +00:00
samhemelryk
dfab77a26e navigation MDL-14632 Added and implemented course report callback function 2009-09-21 07:22:57 +00:00
samhemelryk
785669995e navigation MDL-14632 Fixed bug when viewing participants list and incorrect navbar 2009-09-17 04:08:35 +00:00
samhemelryk
4881edc9d2 navigation MDL-14632 Moved course participants and reports from settings navigation to global navigation 2009-09-16 09:07:39 +00:00
samhemelryk
152fdf934d navigation MDL-14632 Gave Front page settings a named key so that it can be closed if someone ever wants to close it by default 2009-09-16 08:04:59 +00:00
samhemelryk
a6e34701cb navigation MDL-14632 Added prepend method to settings navigation class to allow for the addition of branches to the top of the settings navigation block 2009-09-16 07:52:36 +00:00
samhemelryk
d755d8c3bd navigation MDL-14632 Fixed bug whereby if someone called PAGE->set_course() on a page outside of a course and then a user browsed to it they would be shown the course content in the navigation 2009-09-11 08:26:36 +00:00
samhemelryk
b14ae498b9 mod-chat MDL-20243 Upgrade chat module to make use of the two navigation callbacks
Note: I also took the oppertunity to extend navigation_node action handling, so that navigation nodes can accepts
moodle_url, html_link, or strings for actions
2009-09-10 03:50:51 +00:00
samhemelryk
95b97515d5 navigation MDL-14632 Improve simpletest for navigationlib 2009-09-10 02:19:12 +00:00
samhemelryk
3b7a763c18 navigation MDL-20227 Fixed simpletest regression 2009-09-09 08:50:49 +00:00
samhemelryk
5afb01e899 navigation MDL-20242 Fixed bug whereby sections that no longer exist were shown 2009-09-09 07:36:02 +00:00
samhemelryk
0a8e8b6fd8 navigation MDL-14632 Added title tags for navigation items that are trimmed but do not have an action 2009-09-09 06:16:09 +00:00
samhemelryk
2e7f1f79e2 navigation MDL-14632 Added Participants item to front page branch in settings block 2009-09-09 04:21:20 +00:00
samhemelryk
fdd35767f3 navigation MDL-20227 Added compare function
This allows us to compare the modinfo stored in the cache with that against that active course
2009-09-08 08:49:12 +00:00
samhemelryk
3175908906 navigation MDL-20235 Added ignore_active method for navbar and corrected user/view 2009-09-08 08:43:44 +00:00
samhemelryk
be6c8dfe5a navigation MDL-14632 Fixed bug whereby active module may not be marked as active 2009-09-07 03:16:52 +00:00
samhemelryk
d972bad1b0 navigationMDL-20216 Moved type argument to third argument 2009-09-04 08:43:49 +00:00
samhemelryk
c73e37e0ef navigation MDL-14632 Wrapping if in brackets just to be safe 2009-09-04 07:41:21 +00:00
samhemelryk
05c039e564 navigation MDL-20218 global_navigation::load_for_user now looks for course id from PAGE first 2009-09-04 03:58:05 +00:00
samhemelryk
91152a3518 navigation MDL-20216 Refactored add arguments
Moved $action argument from arg5 to arg2
2009-09-04 03:12:01 +00:00
samhemelryk
72b3485eab navigation MDL-14632 Fixed navbar bug whereby if no active pages were found in either navigation or settings
`home` was not added to the navbar
2009-09-02 07:08:33 +00:00
samhemelryk
a4397489c1 navigation MDL-14632 Fixed bug with deprecated build_navigation function 2009-09-01 04:13:00 +00:00
samhemelryk
9da1ec271f navigation MDL-14632 Minor tweaking as suggested on this issue.
* Fixed focus on search closing tab
 * Added spacing to refresh/moveto icons
 * Made all text in navigation tree's expandable
 * Final element on navbar no longer a link
2009-08-31 03:58:17 +00:00
skodak
459e384ef2 MDL-14632 fixed forbidden use of Call-time pass-by-reference 2009-08-29 11:15:27 +00:00
samhemelryk
7d2a049292 navigation MDL-14632 Very significant navigation commit
This patch introduces two new blocks global_navigation_tree and settings_navigation_tree
both of which have been designed to make full use of the new navigation objects available through
the $PAGE object.
Bulk of this code is within lib/navigationlib.php
2009-08-28 08:47:31 +00:00