SRFGraph Class Reference

Inherits SMWResultPrinter.

List of all members.

Public Member Functions

 getName ()
 (non-PHPdoc)
 getParameters ()
 A function to describe the allowed parameters of a query using any specific format - most query printers should override this function.

Static Public Attributes

static $NODE_SHAPES

Protected Member Functions

 handleParameters (array $params, $outputmode)
 (non-PHPdoc)
 getResultText (SMWQueryResult $res, $outputmode)
 Return serialised results in specified format.
 getGVForItem (array $row, $outputmode)
 Returns the GV for a single subject.
 getGVForDataValue (SMWDataValue $object, $outputmode, $isName, $name, $labelName)
 Returns the GV for a single SMWDataValue.
 getWordWrappedText ($text, $charLimit)
 Returns the word wrapped version of the provided text.

Protected Attributes

 $m_graphName
 $m_graphLabel
 $m_graphColor
 $m_graphLegend
 $m_graphLink
 $m_rankdir
 $m_graphSize
 $m_labelArray = array()
 $m_graphColors = array( 'black', 'red', 'green', 'blue', 'darkviolet', 'gold', 'deeppink', 'brown', 'bisque', 'darkgreen', 'yellow', 'darkblue', 'magenta', 'steelblue2' )
 $m_nameProperty
 $m_nodeShape
 $m_parentRelation
 $m_wordWrapLimit


Detailed Description

Definition at line 16 of file SRF_Graph.php.


Member Function Documentation

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

(non-PHPdoc)

See also:
SMWResultPrinter::handleParameters()

Reimplemented from SMWResultPrinter.

Definition at line 73 of file SRF_Graph.php.

SRFGraph::getResultText ( SMWQueryResult res,
outputmode 
) [protected]

Return serialised results in specified format.

Implemented by subclasses.

Reimplemented from SMWResultPrinter.

Definition at line 95 of file SRF_Graph.php.

References getGVForItem().

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

Returns the GV for a single subject.

Since:
1.5.4
Parameters:
array $row
$outputmode 
Returns:
string

Definition at line 150 of file SRF_Graph.php.

References getGVForDataValue(), and getWordWrappedText().

Referenced by getResultText().

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 $isName Is this the name that should be used for the node?
string $name
string $labelName
Returns:
string

Definition at line 187 of file SRF_Graph.php.

References SMWDataValue::getShortText(), and getWordWrappedText().

Referenced by getGVForItem().

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

Definition at line 243 of file SRF_Graph.php.

Referenced by getGVForDataValue(), and getGVForItem().

SRFGraph::getName (  ) 

(non-PHPdoc)

See also:
SMWResultPrinter::getName()

Reimplemented from SMWResultPrinter.

Definition at line 274 of file SRF_Graph.php.

SRFGraph::getParameters (  ) 

A function to describe the allowed parameters of a query using any specific format - most query printers should override this function.

TODO: refactor non-printer params up to the query processor and do all param handling there.

Since:
1.5
Returns:
array of Parameter

Reimplemented from SMWResultPrinter.

Definition at line 278 of file SRF_Graph.php.

References SMWResultPrinter::$params.


Member Data Documentation

SRFGraph::$NODE_SHAPES [static]

Definition at line 18 of file SRF_Graph.php.

SRFGraph::$m_graphName [protected]

Definition at line 55 of file SRF_Graph.php.

SRFGraph::$m_graphLabel [protected]

Definition at line 56 of file SRF_Graph.php.

SRFGraph::$m_graphColor [protected]

Definition at line 57 of file SRF_Graph.php.

SRFGraph::$m_graphLegend [protected]

Definition at line 58 of file SRF_Graph.php.

SRFGraph::$m_graphLink [protected]

Definition at line 59 of file SRF_Graph.php.

SRFGraph::$m_rankdir [protected]

Definition at line 60 of file SRF_Graph.php.

SRFGraph::$m_graphSize [protected]

Definition at line 61 of file SRF_Graph.php.

SRFGraph::$m_labelArray = array() [protected]

Definition at line 62 of file SRF_Graph.php.

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

Definition at line 63 of file SRF_Graph.php.

SRFGraph::$m_nameProperty [protected]

Definition at line 64 of file SRF_Graph.php.

SRFGraph::$m_nodeShape [protected]

Definition at line 65 of file SRF_Graph.php.

SRFGraph::$m_parentRelation [protected]

Definition at line 66 of file SRF_Graph.php.

SRFGraph::$m_wordWrapLimit [protected]

Definition at line 67 of file SRF_Graph.php.


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

Generated on Sun Mar 18 07:15:45 2012 for Semantic MediaWiki by  doxygen 1.5.6