Stud.IP  4.1 Revision
GlobalSearchRoomAssignments Class Reference
Inheritance diagram for GlobalSearchRoomAssignments:
Inheritance graph
Collaboration diagram for GlobalSearchRoomAssignments:
Collaboration graph

Static Public Member Functions

static getName ()
 
static getSQL ($search)
 
static filter ($res, $search)
 
- Static Public Member Functions inherited from GlobalSearchModule
static getName ()
 
static getSQL ($search)
 
static filter ($data, $search)
 
static getSearchURL ($searchterm)
 
static mark ($string, $query, $longtext=false, $filename=true)
 
static getActiveSearchModules ()
 

Member Function Documentation

◆ filter()

static filter (   $data,
  $search 
)
static

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
$dataOne row returned from getSQL SQL Query
$searchThe searchstring (Use for markup e.g. self::mark)
Returns
mixed Information Array

Reimplemented from GlobalSearchModule.

Here is the call graph for this function:

◆ getName()

static getName ( )
static

Returns the displayname for this module

Returns
mixed

Reimplemented from GlobalSearchModule.

◆ getSQL()

static getSQL (   $search)
static

Search freetext resource assignments for the given search term.

Parameters
string$searchThe term or date to search for. You can either use part of the room assignment free text or a date.
Returns
null|string

Reimplemented from GlobalSearchModule.

Here is the call graph for this function:

The documentation for this class was generated from the following file: