Skip to content

Commit

Permalink
MDL-30976 navigation: fix a bunch of incorrect inline @see phpdoc tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 28, 2012
1 parent d0d5fd3 commit 93123b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions blocks/navigation/block_navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ function get_content() {
* Returns the attributes to set for this block
*
* This function returns an array of HTML attributes for this block including
* the defaults
* {@see block_tree::html_attributes()} is used to get the default arguments
* the defaults.
* {@link block_tree::html_attributes()} is used to get the default arguments
* and then we check whether the user has enabled hover expansion and add the
* appropriate hover class if it has.
*
Expand Down
26 changes: 13 additions & 13 deletions lib/navigationlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function has_children() {
* Marks this node as active and forces it open.
*
* Important: If you are here because you need to mark a node active to get
* the navigation to do what you want have you looked at {@see navigation_node::override_active_url()}?
* the navigation to do what you want have you looked at {@link navigation_node::override_active_url()}?
* You can use it to specify a different URL to match the active navigation node on
* rather than having to locate and manually mark a node active.
*/
Expand Down Expand Up @@ -916,7 +916,7 @@ public function getIterator() {
* and is then used by the settings nav and navbar to save on processing and DB calls
*
* See
* {@link lib/pagelib.php} {@see moodle_page::initialise_theme_and_output()}
* {@link lib/pagelib.php} {@link moodle_page::initialise_theme_and_output()}
* {@link lib/ajax/getnavbranch.php} Called by ajax
*
* @package core
Expand Down Expand Up @@ -1567,7 +1567,7 @@ protected function load_course(stdClass $course) {
* formats lib.php file to customise the navigation that is generated at this
* point for the course.
*
* By default (if not defined) the method {@see global_navigation::load_generic_course_sections()} is
* By default (if not defined) the method {@link global_navigation::load_generic_course_sections()} is
* called instead.
*
* @param stdClass $course Database record for the course
Expand Down Expand Up @@ -1725,7 +1725,7 @@ public function load_generic_course_sections(stdClass $course, navigation_node $
*
* @param navigation_node $sectionnode
* @param int $sectionnumber
* @param array $activities An array of activites as returned by {@see global_navigation::generate_sections_and_activities()}
* @param array $activities An array of activites as returned by {@link global_navigation::generate_sections_and_activities()}
* @param stdClass $course The course object the section and activities relate to.
* @return array Array of activity nodes
*/
Expand Down Expand Up @@ -1832,8 +1832,8 @@ protected function load_stealth_activity(navigation_node $coursenode, $modinfo)
*
* The callback is a method: {modulename}_extend_navigation()
* Examples:
* * {@see forum_extend_navigation()}
* * {@see workshop_extend_navigation()}
* * {@link forum_extend_navigation()}
* * {@link workshop_extend_navigation()}
*
* @param cm_info|stdClass $cm
* @param stdClass $course
Expand Down Expand Up @@ -2429,9 +2429,9 @@ public function set_expansion_limit($type) {
* This function only looks at this nodes children, it does NOT look recursivily.
* If the node can't be found then false is returned.
*
* If you need to search recursivily then use the {@see global_navigation::find()} method.
* If you need to search recursivily then use the {@link global_navigation::find()} method.
*
* Note: If you are trying to set the active node {@see navigation_node::override_active_url()}
* Note: If you are trying to set the active node {@link navigation_node::override_active_url()}
* may be of more use to you.
*
* @param string|int $key The key of the node you wish to receive.
Expand All @@ -2453,9 +2453,9 @@ public function get($key, $type = null) {
* found or there are no more nodes to search.
*
* If you know that the node being searched for is a child of this node
* then use the {@see global_navigation::get()} method instead.
* then use the {@link global_navigation::get()} method instead.
*
* Note: If you are trying to set the active node {@see navigation_node::override_active_url()}
* Note: If you are trying to set the active node {@link navigation_node::override_active_url()}
* may be of more use to you.
*
* @param string|int $key The key of the node you wish to receive.
Expand Down Expand Up @@ -3429,7 +3429,7 @@ protected function add_course_editing_links($course) {
* This only gets called if there is a corrosponding function in the modules
* lib file.
*
* For examples mod/forum/lib.php {@see forum_extend_settings_navigation()}
* For examples mod/forum/lib.php {@link forum_extend_settings_navigation()}
*
* @return navigation_node|false
*/
Expand Down Expand Up @@ -3594,7 +3594,7 @@ public function extend_for_user($userid) {
}

/**
* This function gets called by {@see settings_navigation::load_user_settings()} and actually works out
* This function gets called by {@link settings_navigation::load_user_settings()} and actually works out
* what can be shown/done
*
* @param int $courseid The current course' id
Expand Down Expand Up @@ -4290,7 +4290,7 @@ protected function garbage_collection() {
* Marks the cache as being volatile (likely to change)
*
* Any caches marked as volatile will be destroyed at the on shutdown by
* {@see navigation_node::destroy_volatile_caches()} which is registered
* {@link navigation_node::destroy_volatile_caches()} which is registered
* as a shutdown function if any caches are marked as volatile.
*
* @param bool $setting True to destroy the cache false not too
Expand Down

0 comments on commit 93123b1

Please sign in to comment.