Static Public Member Functions | |
| static | getFactboxText (SMWSemanticData $semdata, $showfactbox=SMW_FACTBOX_NONEMPTY) |
| This function creates wiki text suitable for rendering a Factbox for a given SMWSemanticData object that holds all relevant data. | |
| static | getFactboxTextFromOutput (ParserOutput $parseroutput, Title $title) |
| This function creates wiki text suitable for rendering a Factbox based on the information found in a given ParserOutput object. | |
| static | onOutputPageParserOutput (OutputPage $outputpage, ParserOutput $parseroutput) |
| This hook copies SMW's custom data from the given ParserOutput object to the given OutputPage object, since otherwise it is not possible to access it later on to build a Factbox. | |
| static | onOutputPageBeforeHTML (OutputPage $outputpage, &$text) |
| This hook is used for inserting the Factbox text directly after the wiki page. | |
| static | onSkinAfterContent (&$data, Skin $skin=null) |
| This hook is used for inserting the Factbox text after the article contents (including categories). | |
Definition at line 13 of file SMW_Factbox.php.
| static SMWFactbox::getFactboxText | ( | SMWSemanticData $ | semdata, | |
| $ | showfactbox = SMW_FACTBOX_NONEMPTY | |||
| ) | [static] |
This function creates wiki text suitable for rendering a Factbox for a given SMWSemanticData object that holds all relevant data.
It also checks whether the given setting of $showfactbox requires displaying the given data at all.
| SMWSemanticData | $semdata | |
| boolean | $showfactbox |
NOTE: the preg_replace is a slight hack to ensure that the left column does not get too narrow
Definition at line 25 of file SMW_Factbox.php.
References SMWSemanticData::getPropertyValues(), SMWInfolink::newBrowsingLink(), SMWDataValueFactory::newDataItemValue(), SMWInfolink::newInternalLink(), and SMWOutputs::requireResource().
Referenced by getFactboxTextFromOutput().
| static SMWFactbox::getFactboxTextFromOutput | ( | ParserOutput $ | parseroutput, | |
| Title $ | title | |||
| ) | [static] |
This function creates wiki text suitable for rendering a Factbox based on the information found in a given ParserOutput object.
If the required custom data is not found in the given ParserOutput, then semantic data for the provided Title object is retreived from the store.
| ParserOutput | $parseroutput | |
| Title | $title |
Definition at line 125 of file SMW_Factbox.php.
References $smwgShowFactbox, $smwgShowFactboxEdit, getFactboxText(), SMWDIWikiPage::newFromTitle(), and smwfGetStore().
Referenced by onOutputPageParserOutput().
| static SMWFactbox::onOutputPageParserOutput | ( | OutputPage $ | outputpage, | |
| ParserOutput $ | parseroutput | |||
| ) | [static] |
This hook copies SMW's custom data from the given ParserOutput object to the given OutputPage object, since otherwise it is not possible to access it later on to build a Factbox.
| OutputPage | $outputpage | |
| ParserOutput | $parseroutput |
Definition at line 164 of file SMW_Factbox.php.
References $wgTitle, SMWOutputs::commitToOutputPage(), getFactboxTextFromOutput(), and SMWOutputs::requireFromParserOutput().
| static SMWFactbox::onOutputPageBeforeHTML | ( | OutputPage $ | outputpage, | |
| &$ | text | |||
| ) | [static] |
This hook is used for inserting the Factbox text directly after the wiki page.
| OutputPage | $outputpage | |
| string | $text |
Definition at line 188 of file SMW_Factbox.php.
| static SMWFactbox::onSkinAfterContent | ( | &$ | data, | |
| Skin $ | skin = null | |||
| ) | [static] |
This hook is used for inserting the Factbox text after the article contents (including categories).
| string | $data | |
| Skin|null | $skin |
Definition at line 204 of file SMW_Factbox.php.
1.5.6