void setCallback(
string
$title, string
$name,
$callback, int
$rank, int
$total, string
$function)
Sets a callback function that provides another source for results.
The function will be passed two parameters, $offset and $limit, which will determine how many results are requested. The callback function should then return a multidimensional array containing the results. This provides an alternative to the setQuery() function as results can be sourced from anywhere.
Tags:
access:
public
Parameters:
string
$title
The text that's displayed to the user
string
$name
The local name given to the query
string
$function
Any callable function, method or lambda
int
$rank
The rating that determins how many results will be returned