Stud.IP
6.0
|
Public Member Functions | |
__construct ($search, $search_settings=[]) | |
getTitle () | |
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) | |
__toString () | |
includePath () | |
Data Fields | |
$search | |
$search_settings | |
![]() | |
$extendedLayout = false | |
Additional Inherited Members | |
![]() | |
static | get () |
![]() | |
$sql | |
$avatarLike | |
$title | |
Class of type SearchType used for searches with QuickSearch (lib/classes/QuickSearch.php). You can search with a sql-syntax in the database. You just need to give in a query like for a PDB-prepare statement and at least the variable ":input" in the query (the :input will be replaced with the input of the QuickSearch userinput. [code] $search = new SQLSearch("username"); [/code]
__construct | ( | $search, | |
$search_settings = [] |
|||
) |
string | $search | The search type. |
Array | $search_settings | Settings for the selected seach type. Depending on the search type different settings are possible which can change the output or the display of the output of the search. The array must be an associative array with the setting as array key. The following settings are implemented: Search type 'room':
|
getTitle | ( | ) |
returns the title/description of the searchfield
includePath | ( | ) |
A very simple overwrite of the same method from SearchType class. returns the absolute path to this class for autoincluding this class.
$search |
$search_settings |