|
| | __construct ($query, $title='', $avatarLike='') |
| |
| | getResults ($input, $contextual_data=array(), $limit=PHP_INT_MAX, $offset=0) |
| |
| | getAvatarImageTag ($id, $size=Avatar::SMALL, $options=[]) |
| |
| | setQsName ($qs_name) |
| |
| | __construct ($query, $title="", $avatarLike="") |
| |
| | getTitle () |
| |
| | getAvatar ($id) |
| |
| | getAvatarImageTag ($id, $size=Avatar::SMALL, $options=array()) |
| |
| | getResults ($input, $contextual_data=array(), $limit=PHP_INT_MAX, $offset=0) |
| |
| | includePath () |
| |
| | getTitle () |
| |
| | getAvatar ($id) |
| |
| | getAvatarImageTag ($id) |
| |
| | getResults ($keyword, $contextual_data=array(), $limit=PHP_INT_MAX, $offset=0) |
| |
| | includePath () |
| |
◆ __construct()
| __construct |
( |
|
$query, |
|
|
|
$title = '', |
|
|
|
$avatarLike = '' |
|
) |
| |
- Parameters
-
| string | $query | SQL with at least ":input" as parameter |
| string | $title | |
| string | $avatarLike | in this search. array("input_name" => "placeholder_in_sql_query") |
- Returns
- void
Reimplemented from SQLSearch.
◆ getAvatarImageTag()
returns an html tag of the image of the searched item (if avatar enabled)
- Parameters
-
| string | $id | id of the item which can be username, user_id, Seminar_id or Institut_id |
| constant | $size | enum(NORMAL, SMALL, MEDIUM): size of the avatar |
- Returns
- string like "<img src="...avatar.jpg" ... >"
Reimplemented from SQLSearch.
◆ getResults()
| getResults |
( |
|
$input, |
|
|
|
$contextual_data = array(), |
|
|
|
$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
-
| string | $input | the search-word(s) |
| array | $contextual_data | an associative array with more variables |
| int | $limit | maximum number of results (default: all) |
| int | $offset | return results starting from this row (default: 0) |
- Returns
- array array(array(), ...)
Reimplemented from SQLSearch.
◆ setQsName()
The documentation for this class was generated from the following file: