[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/forum/ -> search.php (summary)

(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: 487 lines (20 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 1 file
 mod/forum/lib.php

Defines 3 functions

  forum_print_big_search_form()
  forum_clean_search_terms()
  forum_menu_list()

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.

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

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.

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.
return: string The filtered search terms, separated by spaces.

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

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



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1