| 
|   | __construct ($search, $title="", $avatarLike="user_id", $presets=[]) | 
|   | 
|   | getResults ($input, $contextual_data=[], $limit=PHP_INT_MAX, $offset=0) | 
|   | 
|   | includePath () | 
|   | 
|   | __construct ($query, $title="", $avatarLike="") | 
|   | 
|   | getTitle () | 
|   | 
|   | getAvatar ($id) | 
|   | 
|   | getAvatarImageTag ($id, $size=Avatar::SMALL, $options=[]) | 
|   | 
|   | getResults ($input, $contextual_data=[], $limit=PHP_INT_MAX, $offset=0) | 
|   | 
|   | includePath () | 
|   | 
|   | getTitle () | 
|   | 
|   | getAvatar ($id) | 
|   | 
|   | getAvatarImageTag ($id) | 
|   | 
|   | getResults ($keyword, $contextual_data=[], $limit=PHP_INT_MAX, $offset=0) | 
|   | 
|   | includePath () | 
|   | 
Class of type SearchType used for searches with QuickSearch (lib/classes/QuickSearch.class.php). You can search for people with a given Stud.IP permission level, either globally or at an institute.
- Author
 - Thomas Hackl 
 
 
◆ __construct()
      
        
          | __construct  | 
          ( | 
            | 
          $search,  | 
        
        
           | 
           | 
            | 
          $title = "",  | 
        
        
           | 
           | 
            | 
          $avatarLike = "user_id",  | 
        
        
           | 
           | 
            | 
          $presets = []  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | string | $query, | SQL with at least ":input" as parameter  | 
    | array | $presets, | variables from the same form that should be used in this search. array("input_name" => "placeholder_in_sql_query")  | 
  
   
- Returns
 - void 
 
 
 
◆ getResults()
      
        
          | getResults  | 
          ( | 
            | 
          $input,  | 
        
        
           | 
           | 
            | 
          $contextual_data = [],  | 
        
        
           | 
           | 
            | 
          $limit = PHP_INT_MAX,  | 
        
        
           | 
           | 
            | 
          $offset = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
returns the results of a search Use the contextual_data variable to send more variables than just the input to the SQL. QuickSearch for example sends all other variables of the same <form>-tag here. 
- Parameters
 - 
  
    | input | string: the search-word(s)  | 
    | contextual_data | array: an associative array with more variables  | 
    | limit | int: maximum number of results (default: all)  | 
    | offset | int: return results starting from this row (default: 0)  | 
  
   
- Returns
 - array: array(array(), ...) 
 
Reimplemented from SQLSearch.
 
 
◆ includePath()
A very simple overwrite of the same method from SearchType class. returns the absolute path to this class for autoincluding this class. 
- Returns
 - : path to this class 
 
Reimplemented from SQLSearch.
 
 
The documentation for this class was generated from the following file: