phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
SearchResults Class Reference
+ Inheritance diagram for SearchResults:

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
 

Detailed Description

Definition at line 7 of file SearchResults.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $objects = NULL)

Definition at line 10 of file SearchResults.php.

Member Function Documentation

◆ __toString()

__toString ( )

Definition at line 74 of file SearchResults.php.

◆ _search()

_search (   $query,
  $field = "title" 
)

Definition at line 46 of file SearchResults.php.

◆ addResult()

addResult (   $object)

Definition at line 21 of file SearchResults.php.

◆ addResults()

addResults (   $objects)

Definition at line 33 of file SearchResults.php.

◆ count()

count ( )

Definition at line 79 of file SearchResults.php.

◆ fromDatabaseObject()

fromDatabaseObject (   $object,
  $function 
)
protected

Reimplemented from AbstractSearchResult.

Definition at line 96 of file SearchResults.php.

◆ fromDatabaseObjects()

fromDatabaseObjects (   $objects,
  $function 
)

Loads results from a collection of DB objects.

Parameters
array$objectsthe collection of objects
callable$functionreturn an array or an instance of SearchResult

Reimplemented from AbstractSearchResult.

Definition at line 92 of file SearchResults.php.

◆ getResponse()

getResponse ( )

Implements ISearch.

Definition at line 83 of file SearchResults.php.

◆ search()

search (   $query,
  $field = "title" 
)

Implements ISearch.

Definition at line 67 of file SearchResults.php.

Field Documentation

◆ $elements

$elements
private

Definition at line 8 of file SearchResults.php.


The documentation for this class was generated from the following file: