|
ILIAS
trunk Revision v12.0_alpha-16-g3e876e53c80
|
This class provides some pre-processing for search terms provided by a user when searching for users. More...
Collaboration diagram for ILIAS\User\Search\AutocompleteQuery:Public Member Functions | |
| __construct (private readonly int $required_search_term_length, private readonly string $search_term,) | |
| checkSearchTermLength (?string $search_term) | |
| getUnprocessedSearchTerm () | |
| The returned search term might contain wild cards or any other input. More... | |
| getSearchTermQueryString () | |
| getLastnameQueryString () | |
| getFirstnameQueryString () | |
Private Attributes | |
| string | $processed_search_term |
| string | $lastname_search_term = null |
| string | $firstname_search_term = null |
This class provides some pre-processing for search terms provided by a user when searching for users.
It treats strings containing one comma as being of the form lastname, firstname and parses them correspondingly.
Definition at line 28 of file AutocompleteQuery.php.
| ILIAS\User\Search\AutocompleteQuery::__construct | ( | private readonly int | $required_search_term_length, |
| private readonly string | $search_term | ||
| ) |
Definition at line 34 of file AutocompleteQuery.php.
References ILIAS\User\Search\AutocompleteQuery\$firstname_search_term, and ILIAS\User\Search\AutocompleteQuery\$lastname_search_term.
| ILIAS\User\Search\AutocompleteQuery::checkSearchTermLength | ( | ?string | $search_term | ) |
Definition at line 61 of file AutocompleteQuery.php.
| ILIAS\User\Search\AutocompleteQuery::getFirstnameQueryString | ( | ) |
Definition at line 106 of file AutocompleteQuery.php.
References ILIAS\User\Search\AutocompleteQuery\$firstname_search_term.
| ILIAS\User\Search\AutocompleteQuery::getLastnameQueryString | ( | ) |
Definition at line 93 of file AutocompleteQuery.php.
References ILIAS\User\Search\AutocompleteQuery\$lastname_search_term.
| ILIAS\User\Search\AutocompleteQuery::getSearchTermQueryString | ( | ) |
Definition at line 83 of file AutocompleteQuery.php.
| ILIAS\User\Search\AutocompleteQuery::getUnprocessedSearchTerm | ( | ) |
The returned search term might contain wild cards or any other input.
Please make sure to process the string to avoid any privacy issues.
Definition at line 73 of file AutocompleteQuery.php.
|
private |
Definition at line 32 of file AutocompleteQuery.php.
Referenced by ILIAS\User\Search\AutocompleteQuery\__construct(), and ILIAS\User\Search\AutocompleteQuery\getFirstnameQueryString().
|
private |
Definition at line 31 of file AutocompleteQuery.php.
Referenced by ILIAS\User\Search\AutocompleteQuery\__construct(), and ILIAS\User\Search\AutocompleteQuery\getLastnameQueryString().
|
private |
Definition at line 30 of file AutocompleteQuery.php.