phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Public Member Functions | |
__construct ($objects=NULL) | |
addResult ($object) | |
addResults ($objects) | |
_search ($query, $field="title") | |
search ($query, $field="title") | |
__toString () | |
count () | |
getResponse () | |
fromDatabaseObjects ($objects, $function) | |
Loads results from a collection of DB objects. | |
Protected Member Functions | |
fromDatabaseObject ($object, $function) | |
Private Attributes | |
$elements | |
Definition at line 7 of file SearchResults.php.
__construct | ( | $objects = NULL | ) |
Definition at line 10 of file SearchResults.php.
__toString | ( | ) |
Definition at line 74 of file SearchResults.php.
_search | ( | $query, | |
$field = "title" |
|||
) |
Definition at line 46 of file SearchResults.php.
addResult | ( | $object | ) |
Definition at line 21 of file SearchResults.php.
addResults | ( | $objects | ) |
Definition at line 33 of file SearchResults.php.
count | ( | ) |
Definition at line 79 of file SearchResults.php.
|
protected |
Reimplemented from AbstractSearchResult.
Definition at line 96 of file SearchResults.php.
fromDatabaseObjects | ( | $objects, | |
$function | |||
) |
Loads results from a collection of DB objects.
array | $objects | the collection of objects |
callable | $function | return an array or an instance of SearchResult |
Reimplemented from AbstractSearchResult.
Definition at line 92 of file SearchResults.php.
getResponse | ( | ) |
Implements ISearch.
Definition at line 83 of file SearchResults.php.
search | ( | $query, | |
$field = "title" |
|||
) |
Implements ISearch.
Definition at line 67 of file SearchResults.php.
|
private |
Definition at line 8 of file SearchResults.php.