Stud.IP  jlu_4.3 Revision 64286
GlobalSearchUsers Class Reference
Inheritance diagram for GlobalSearchUsers:
Inheritance graph
Collaboration diagram for GlobalSearchUsers:
Collaboration graph

Static Public Member Functions

static getName ()
 
static getSQL ($search, $filter, $limit)
 
static filter ($data, $search)
 
static getSearchURL ($searchterm)
 
static enable ()
 
static disable ()
 
static getFulltextSearch ($search)
 
static markMany ($string, $query)
 
- 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=true)
 
static getInstituteIdsForSQL ($institute_id)
 
static getSeminarTypesForSQL ($sem_class)
 
static getCurrentSemester ()
 
static getActiveSearchModules ()
 
static enable ()
 
static disable ()
 
static getFulltextSearch ($search)
 

Member Function Documentation

◆ disable()

static disable ( )
static

Disables fulltext (MATCH AGAINST) search by removing the corresponding indices.

Implements GlobalSearchFulltext.

Here is the call graph for this function:

◆ enable()

static enable ( )
static

Enables fulltext (MATCH AGAINST) search by creating the corresponding indices.

Implements GlobalSearchFulltext.

Here is the call graph for this function:

◆ 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
$id
$search
Returns
mixed

Reimplemented from GlobalSearchModule.

Here is the call graph for this function:

◆ getFulltextSearch()

static getFulltextSearch (   $search)
static

Executes a fulltext (MATCH AGAINST) search in database for the given search term.

Parameters
string$searchthe term to search for.
Returns
string SQL query.

Implements GlobalSearchFulltext.

Here is the call graph for this function:

◆ getName()

static getName ( )
static

Returns the displayname for this module

Returns
mixed

Reimplemented from GlobalSearchModule.

◆ getSearchURL()

static getSearchURL (   $searchterm)
static

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

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

Reimplemented from GlobalSearchModule.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSQL()

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

Transforms the search request into an sql statement, that provides the id (same as getId) as type and the object id, that is later passed to the filter.

This function is required to make use of the mysql union parallelism

Parameters
$searchthe input query string
$filteran array with search limiting filter information (e.g. 'category', 'semester', etc.)
Returns
String SQL Query to discover elements for the search

Reimplemented from GlobalSearchModule.

Here is the call graph for this function:

◆ markMany()

static markMany (   $string,
  $query 
)
static

Function to mark a querystring in a resultstring

Parameters
$string
$query
bool | true$filename
Returns
mixed
Here is the call graph for this function:
Here is the caller graph for this function:

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