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

Public Member Functions

 getName ()
 
 getParamDefinitions (array $definitions)
 

Static Public Attributes

static $NODE_SHAPES
 

Protected Member Functions

 handleParameters (array $params, $outputmode)
 
 getResultText (SMWQueryResult $res, $outputmode)
 
 getGVForItem (array $row, $outputmode)
 
 getGVForDataValue (SMWDataValue $object, $outputmode, $isName, $name, $labelName)
 
 getWordWrappedText ( $text, $charLimit)
 

Protected Attributes

 $m_graphName
 
 $m_graphLabel
 
 $m_graphColor
 
 $m_graphLegend
 
 $m_graphLink
 
 $m_rankdir
 
 $m_graphSize
 
 $m_labelArray = []
 
 $m_graphColors
 
 $m_nameProperty
 
 $m_nodeShape
 
 $m_parentRelation
 
 $m_wordWrapLimit
 

Member Function Documentation

◆ getGVForDataValue()

SRFGraph::getGVForDataValue ( SMWDataValue  $object,
  $outputmode,
  $isName,
  $name,
  $labelName 
)
protected

Returns the GV for a single SMWDataValue.

Since
1.5.4
Parameters
SMWDataValue$object
$outputmode
boolean$isNameIs this the name that should be used for the node?
string$name
string$labelName
Returns
string

◆ getGVForItem()

SRFGraph::getGVForItem ( array  $row,
  $outputmode 
)
protected

Returns the GV for a single subject.

Since
1.5.4
Parameters
array$row
$outputmode
Returns
string

◆ getName()

SRFGraph::getName ( )

(non-PHPdoc)

See also
SMWResultPrinter::getName()

◆ getParamDefinitions()

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

◆ getWordWrappedText()

SRFGraph::getWordWrappedText (   $text,
  $charLimit 
)
protected

Returns the word wrapped version of the provided text.

Since
1.5.4
Parameters
string$text
integer$charLimit
Returns
string

◆ handleParameters()

SRFGraph::handleParameters ( array  $params,
  $outputmode 
)
protected

(non-PHPdoc)

See also
SMWResultPrinter::handleParameters()

Member Data Documentation

◆ $m_graphColors

SRFGraph::$m_graphColors
protected
Initial value:
= [
'black',
'red',
'green',
'blue',
'darkviolet',
'gold',
'deeppink',
'brown',
'bisque',
'darkgreen',
'yellow',
'darkblue',
'magenta',
'steelblue2' ]

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

About | General disclaimer | Privacy policy