Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SRFValueRank Class Reference
Inheritance diagram for SRFValueRank:
Inheritance graph
[legend]
Collaboration diagram for SRFValueRank:
Collaboration graph
[legend]

Public Member Functions

 getName ()
 
 getResultText (SMWQueryResult $results, $outputMode)
 
 getParamDefinitions (array $definitions)
 

Protected Member Functions

 getValueRank (array $tags)
 
 getFormatOutput (array $tags)
 
 addTemplateOutput ( $name, $rank, &$rownum)
 

Protected Attributes

 $tagsHtml = []
 

Detailed Description

Result printer that prints query results as a valuerank. In other words, it prints a list of all occuring values, with duplicates removed, together with their occurrence count.

Build out of Tag Cloud Format by Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

For example, this result set: foo bar baz foo bar bar ohi Will be turned into

Since
1.7

GNU GPL v2

Author
DaSch < dasch.nosp@m.@das.nosp@m.chmed.nosp@m.ia.d.nosp@m.e >
mwjames

Member Function Documentation

◆ addTemplateOutput()

SRFValueRank::addTemplateOutput (   $name,
  $rank,
$rownum 
)
protected

Create a template output

Since
1.8
Parameters
string$name
integer$rank
integer$rownum
Returns
string

◆ getFormatOutput()

SRFValueRank::getFormatOutput ( array  $tags)
protected

Format the output representation

Since
1.8
Parameters
array$tags
Returns
string

◆ getName()

SRFValueRank::getName ( )
See also
SMWResultPrinter::getName
Returns
string

◆ getParamDefinitions()

SRFValueRank::getParamDefinitions ( array  $definitions)
See also
SMWResultPrinter::getParamDefinitions
Since
1.8
Parameters
$definitionsarray of IParamDefinition
Returns
array of IParamDefinition|array

◆ getResultText()

SRFValueRank::getResultText ( SMWQueryResult  $results,
  $outputMode 
)
See also
SMWResultPrinter::getResultText
Since
1.7
Parameters
SMWQueryResult$results
$outputMode
Returns
string

◆ getValueRank()

SRFValueRank::getValueRank ( array  $tags)
protected

Determine ranks

Since
1.7
Parameters
array$tags
Returns
array

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

About | General disclaimer | Privacy policy