|
CWIS Developer Documentation
|
Public Member Functions | |
| __construct () | |
| Constructs a GlobalSearchEngine object. More... | |
| Search ($SearchString, $StartingResult=0, $NumberOfResults=10) | |
| Performs a keyword search using a specified search string and returns the results, starting with the one numbered with the starting result (default 0) and continuing until reaching the desired number of results (default 10). More... | |
| NumberOfResults () | |
| Gets the number of results returned in the last search. More... | |
| SearchTime () | |
| Gets the time taken to perform the previous search, in microseconds. More... | |
Definition at line 18 of file GlobalSearchEngine.php.
| GlobalSearchEngine::__construct | ( | ) |
Constructs a GlobalSearchEngine object.
Definition at line 26 of file GlobalSearchEngine.php.
| GlobalSearchEngine::NumberOfResults | ( | ) |
Gets the number of results returned in the last search.
Definition at line 63 of file GlobalSearchEngine.php.
| GlobalSearchEngine::Search | ( | $SearchString, | |
$StartingResult = 0, |
|||
$NumberOfResults = 10 |
|||
| ) |
Performs a keyword search using a specified search string and returns the results, starting with the one numbered with the starting result (default 0) and continuing until reaching the desired number of results (default 10).
| string | $SearchString | The string to search for. |
| int | $StartingResult | The number of the starting result. (OPTIONAL) |
| int | $NumberOfResults | The number of results to return. (OPTIONAL) |
Definition at line 40 of file GlobalSearchEngine.php.
| GlobalSearchEngine::SearchTime | ( | ) |
Gets the time taken to perform the previous search, in microseconds.
Definition at line 72 of file GlobalSearchEngine.php.
References StdLib\SortCompare().