BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
SRFValueRank Class Reference
Inheritance diagram for SRFValueRank:
Collaboration diagram for SRFValueRank:

Public Member Functions

 getName ()
 
 getResultText (SMWQueryResult $results, $outputMode)
 
 getParamDefinitions (array $definitions)
 
- Public Member Functions inherited from SMW\ResultPrinter
 __construct ($format, $inline=true, $useValidator=false)
 
 getQueryMode ($context)
 
 getName ()
 
 setShowErrors ($show)
 
 getParameters ()
 
 getParamDefinitions (array $definitions)
 
 getNamedParameters (array $definitions=array())
 
 isExportFormat ()
 
- Public Member Functions inherited from ContextSource
 getContext ()
 
 setContext (IContextSource $context)
 
 getConfig ()
 
 getRequest ()
 
 getTitle ()
 
 canUseWikiPage ()
 
 getWikiPage ()
 
 getOutput ()
 
 getUser ()
 
 getLanguage ()
 
 getSkin ()
 
 getTiming ()
 
 getStats ()
 
 msg ()
 
 exportSession ()
 
- Public Member Functions inherited from SMW\QueryResultPrinter
 getResult (QueryResult $results, array $fullParams, $outputMode)
 

Protected Member Functions

 getValueRank (array $tags)
 
 getFormatOutput (array $tags)
 
 addTemplateOutput ($name, $rank, &$rownum)
 
- Protected Member Functions inherited from SMW\ResultPrinter
 getResultText (SMWQueryResult $res, $outputMode)
 
 buildResult (SMWQueryResult $results)
 
 handleParameters (array $params, $outputMode)
 
 postProcessParameters ()
 
 getLinker ($firstcol=false)
 
 getFurtherResultsLink (SMWQueryResult $res, $outputMode)
 
 getErrorString (SMWQueryResult $res)
 
 escapeText ($text, $outputmode)
 
 getSearchLabel ($outputmode)
 
 linkFurtherResults (SMWQueryResult $results)
 
 addError ($errorMessage)
 
 textDisplayParameters ()
 
 exportFormatParameters ()
 

Protected Attributes

 $tagsHtml = []
 
- Protected Attributes inherited from SMW\ResultPrinter
 $m_params
 
 $params
 
 $fullParams
 
 $outputMode
 
 $results
 
 $mIntro = ''
 
 $mOutro = ''
 
 $mSearchlabel = null
 
 $mDefault = ''
 
 $mFormat
 
 $mLinkFirst
 
 $mLinkOthers
 
 $mShowHeaders = SMW_HEADERS_SHOW
 
 $mShowErrors = true
 
 $mInline
 
 $mLinker
 
 $mErrors = array()
 
 $isHTML = false
 
 $hasTemplates = false
 

Additional Inherited Members

- Static Public Attributes inherited from SMW\ResultPrinter
static $maxRecursionDepth = 2
 

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

  • bar (3)
  • foo (2)
  • baz (1)
  • ohi (1)
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

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

Create a template output

Since
1.8
Parameters
string$name
integer$rank
integer$rownum
Returns
string
SRFValueRank::getFormatOutput ( array  $tags)
protected

Format the output representation

Since
1.8
Parameters
array$tags
Returns
string
SRFValueRank::getName ( )
See Also
SMWResultPrinter::getName
Returns
string

Implements SMW\QueryResultPrinter.

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

Implements SMW\QueryResultPrinter.

SRFValueRank::getResultText ( SMWQueryResult  $results,
  $outputMode 
)
See Also
SMWResultPrinter::getResultText
Since
1.7
Parameters
SMWQueryResult$results
$outputMode
Returns
string
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: