Stud.IP  5.4
GlobalSearchRoomBookings Class Reference
Inheritance diagram for GlobalSearchRoomBookings:
GlobalSearchModule

Static Public Member Functions

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

Member Function Documentation

◆ filter()

static filter (   $res,
  $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
array$res
string$search
Returns
array

◆ getName()

static getName ( )
static

Returns the displayname for this module

Returns
string

◆ getSearchURL()

static getSearchURL (   $searchterm)
static

Returns the URL that can be called for a full search.

Parameters
string$searchtermwhat to search for?
Returns
string URL to the full search, containing the searchterm and the category

◆ getSQL()

static getSQL (   $search,
  $filter,
  $limit 
)
static

Search freetext resource bookings for the given search term.

Parameters
string$searchThe term or date to search for. You can either use part of the room bookings free text or a date.
array$filteran array with search limiting filter information (e.g. 'category', 'semester', etc.)
Returns
null|string

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