Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

Copyright: 1999 onwards Martin Dougiamas {@link http://moodle.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 400 lines (14 kb)
Included or required:0 times
Referenced: 5 times
Includes or requires: 1 file
 mod/forum/lib.php

Defines 3 functions


Functions that are not part of a class:

forum_print_big_search_form($course)   X-Ref
Print a full-sized search form for the specified course.

return: void The function prints the form.
param: stdClass $course The Course that will be searched.

forum_clean_search_terms($words, $prefix='')   X-Ref
This function takes each word out of the search string, makes sure they are at least
two characters long and returns an string of the space-separated search
terms.

return: string The filtered search terms, separated by spaces.
param: string $words String containing space-separated strings to search for.
param: string $prefix String to prepend to the each token taken out of $words.

forum_menu_list($course)   X-Ref
Retrieve a list of the forums that this user can view.

return: array A set of formatted forum names stored against the forum id.
param: stdClass $course The Course to use.