Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Query\ScoreSet Class Reference

Public Member Functions

 max_score ( $max_score)
 
 min_score ( $min_score)
 
 addScore ( $hash, $score, $pos=null)
 
 getScore ( $hash)
 
 getScores ()
 
 usort ( $usort)
 
 asTable ( $class='')
 

Detailed Description

Record scores for query results retrieved from stores that support the computation of relevance scores.

GNU GPL v2+

Since
3.0
Author
mwjames

Member Function Documentation

◆ addScore()

SMW\Query\ScoreSet::addScore (   $hash,
  $score,
  $pos = null 
)
Note
The hash is expected to match DIWikiPage::getHash to easily match result subjects available in an QueryResult instance.
Since
3.0
Parameters
DIWikiPage | string$hash
string | integer$score

◆ asTable()

SMW\Query\ScoreSet::asTable (   $class = '')
Since
3.0
Parameters
string$class
Returns
string

◆ getScore()

SMW\Query\ScoreSet::getScore (   $hash)
Since
3.0
Parameters
DIWikiPage | string$hash
Returns
string|integer|false

◆ getScores()

SMW\Query\ScoreSet::getScores ( )
Since
3.0
Returns
[]

◆ max_score()

SMW\Query\ScoreSet::max_score (   $max_score)
Since
3.0
Parameters
string | integer$max_score

◆ min_score()

SMW\Query\ScoreSet::min_score (   $min_score)
Since
3.0
Parameters
string | integer$min_score

◆ usort()

SMW\Query\ScoreSet::usort (   $usort)
Since
3.0
Parameters
boolean$usort

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

About | General disclaimer | Privacy policy