Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (ParserData $parserData, LinksProcessor $linksProcessor, MagicWordsFinder $magicWordsFinder, RedirectTargetFinder $redirectTargetFinder) | |
isLinksInValues ( $isLinksInValues) | |
showErrors ( $showErrors) | |
getSemanticData () | |
parse (&$text) | |
setStripMarkerDecoder (StripMarkerDecoder $stripMarkerDecoder) | |
setRedirectTarget (Title $redirectTarget=null) | |
getRegexpPattern ( $linksInValues=false) | |
preprocess (array $semanticLink) | |
Static Public Member Functions | |
static | hasMarker ( $text) |
static | hasPropertyLink ( $text) |
static | decodeSquareBracket ( $text) |
static | obfuscateAnnotation ( $text) |
static | removeAnnotation ( $text) |
Public Attributes | |
const | OFF = '[[SMW::off]]' |
const | ON = '[[SMW::on]]' |
Protected Member Functions | |
addRedirectTargetAnnotationFromText ( $text) | |
getModules () | |
process (array $semanticLink) | |
addPropertyValue ( $subject, array $properties, $value, $valueCaption) | |
doStripMagicWordsFromText (&$text) | |
Protected Attributes | |
$isEnabledNamespace | |
$isAnnotation = true | |
Class collects all functions for wiki text parsing / processing that are relevant for SMW
This class is contains all functions necessary for parsing wiki text before it is displayed or previewed while identifying SMW related annotations.
GNU GPL v2+
SMW\Parser\InTextAnnotationParser::__construct | ( | ParserData | $parserData, |
LinksProcessor | $linksProcessor, | ||
MagicWordsFinder | $magicWordsFinder, | ||
RedirectTargetFinder | $redirectTargetFinder | ||
) |
ParserData | $parserData | |
LinksProcessor | $linksProcessor | |
MagicWordsFinder | $magicWordsFinder | |
RedirectTargetFinder | $redirectTargetFinder |
|
protected |
Adds property values to the ParserOutput instance
array | $properties |
|
static |
string | $text |
|
protected |
Returns required resource modules
SMW\Parser\InTextAnnotationParser::getRegexpPattern | ( | $linksInValues = false | ) |
SMW\Parser\InTextAnnotationParser::getSemanticData | ( | ) |
|
static |
string | $text |
|
static |
string | $text |
SMW\Parser\InTextAnnotationParser::isLinksInValues | ( | $isLinksInValues | ) |
boolean | $isLinksInValues |
|
static |
string | $text |
SMW\Parser\InTextAnnotationParser::parse | ( | & | $text | ) |
Parsing text before an article is displayed or previewed, strip out semantic properties and add them to the ParserOutput object
string | &$text |
SMW\Parser\InTextAnnotationParser::preprocess | ( | array | $semanticLink | ) |
array | $semanticLink | expects (linktext, properties, value|caption) |
|
protected |
array | $semanticLink | expects (linktext, properties, value|caption) |
|
static |
string | $text |
SMW\Parser\InTextAnnotationParser::setRedirectTarget | ( | Title | $redirectTarget = null | ) |
Title | null | $redirectTarget |
SMW\Parser\InTextAnnotationParser::setStripMarkerDecoder | ( | StripMarkerDecoder | $stripMarkerDecoder | ) |
StripMarkerDecoder | $stripMarkerDecoder |
SMW\Parser\InTextAnnotationParser::showErrors | ( | $showErrors | ) |
boolean | $showErrors |
const SMW\Parser\InTextAnnotationParser::OFF = '[[SMW::off]]' |