◆ filter()
| static filter |
( |
|
$data, |
|
|
|
$search |
|
) |
| |
|
staticabstract |
Returns an array of information for the found element. Following informations (key: description) are necessary
- name: The name of the object
- url: The url to send the user to when he clicks the link
Additional informations are:
- additional: Subtitle for the hit
- expand: Url if the user further expands the search
- img: Avatar for the
- Parameters
-
| $data | One row returned from getSQL SQL Query |
| $search | The searchstring (Use for markup e.g. self::mark) |
- Returns
- mixed Information Array
Reimplemented in GlobalSearchMyCourses, GlobalSearchCourses, GlobalSearchForum, GlobalSearchUsers, GlobalSearchFiles, GlobalSearchInstitutes, GlobalSearchMessages, GlobalSearchModules, GlobalSearchResources, GlobalSearchRoomAssignments, and GlobalSearchCalendar.
◆ getName()
Returns the displayname for this module
- Returns
- mixed
Reimplemented in GlobalSearchCalendar, GlobalSearchCourses, GlobalSearchFiles, GlobalSearchForum, GlobalSearchInstitutes, GlobalSearchMessages, GlobalSearchModules, GlobalSearchMyCourses, GlobalSearchResources, GlobalSearchRoomAssignments, and GlobalSearchUsers.
◆ getSearchURL()
| static getSearchURL |
( |
|
$searchterm | ) |
|
|
static |
◆ getSQL()
Has to return a SQL Query that discovers all objects. All retrieved data is passed row by row to getGlobalSearchFilter
- Parameters
-
| $search | the input query string |
- Returns
- String SQL Query to discover elements for the search
Reimplemented in GlobalSearchCalendar, GlobalSearchCourses, GlobalSearchFiles, GlobalSearchForum, GlobalSearchInstitutes, GlobalSearchMessages, GlobalSearchModules, GlobalSearchMyCourses, GlobalSearchResources, GlobalSearchRoomAssignments, and GlobalSearchUsers.
◆ mark()
| static mark |
( |
|
$string, |
|
|
|
$query, |
|
|
|
$longtext = false, |
|
|
|
$filename = true |
|
) |
| |
|
static |
Function to mark a querystring in a resultstring
- Parameters
-
| $string | |
| $query | |
| bool | true | $filename | |
- Returns
- mixed
The documentation for this class was generated from the following file: