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 | |
Definition at line 16 of file SRF_Graph.php.
| SRFGraph::handleParameters | ( | array $ | params, | |
| $ | outputmode | |||
| ) | [protected] |
(non-PHPdoc)
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.
| array | $row | |
| $outputmode |
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.
| SMWDataValue | $object | |
| $outputmode | ||
| boolean | $isName Is this the name that should be used for the node? | |
| string | $name | |
| string | $labelName |
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.
| string | $text | |
| integer | $charLimit |
Definition at line 243 of file SRF_Graph.php.
Referenced by getGVForDataValue(), and getGVForItem().
| SRFGraph::getName | ( | ) |
(non-PHPdoc)
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.
Reimplemented from SMWResultPrinter.
Definition at line 278 of file SRF_Graph.php.
References SMWResultPrinter::$params.
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.
1.5.6