[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/dao/ -> searchresult.class.php (sommaire)

(pas de description)

Poids: 95 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 0 fichiers

Définit 1 class

SearchResult:: (6 méthodes):
  SearchResult()
  getResult()
  getArticle()
  getRelevance()
  getType()
  getSearchTerms()


Classe: SearchResult  - X-Ref

represents a result from a search query.

Includes things like the relevance and a reference to the article object
that matched the query

\ingroup DAO
SearchResult( $result, $type, $searchTerms = "", $relevance = 0 )   X-Ref
Constructor

param: result The DbObject that was returned by the search
param: type Whether the search result is coming from an article, comment or custom field
param: relevance The relevance factor        

getResult()   X-Ref
returns the Article object, if any

return: an Article object

getArticle()   X-Ref
Alias for getResult()


getRelevance()   X-Ref
returns the relevance of the result

return: an integer specfying the relevance of the result

getType()   X-Ref
returns the type of the result.

return: The returned result is one of the following values:

getSearchTerms()   X-Ref
Returns the search terms that generated this result

return: A string



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics