Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
SMW\MediaWiki\MagicWordsFinder Class Reference

Public Member Functions

 __construct (ParserOutput $parserOutput=null)
 
 setOutput (ParserOutput $parserOutput)
 
 findMagicWordInText ( $magicWord, &$text)
 
 pushMagicWordsToParserOutput (array $words)
 
 getMagicWords ()
 

Protected Member Functions

 hasExtensionData ()
 

Detailed Description

GNU GPL v2+

Since
2.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\MagicWordsFinder::__construct ( ParserOutput  $parserOutput = null)
Since
2.0
Parameters
ParserOutput | null$parserOutput

Member Function Documentation

◆ findMagicWordInText()

SMW\MediaWiki\MagicWordsFinder::findMagicWordInText (   $magicWord,
$text 
)

Find the magic word and have it removed from the text

Since
2.0
Parameters
$magicWord
&$text
Returns
string

◆ getMagicWords()

SMW\MediaWiki\MagicWordsFinder::getMagicWords ( )
Since
2.0
Returns
array

◆ hasExtensionData()

SMW\MediaWiki\MagicWordsFinder::hasExtensionData ( )
protected

FIXME Remove when MW 1.21 becomes mandatory

◆ pushMagicWordsToParserOutput()

SMW\MediaWiki\MagicWordsFinder::pushMagicWordsToParserOutput ( array  $words)
Since
2.0
Parameters
array$words

◆ setOutput()

SMW\MediaWiki\MagicWordsFinder::setOutput ( ParserOutput  $parserOutput)
Since
2.0
Parameters
ParserOutput$parserOutput
Returns
self

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

About | General disclaimer | Privacy policy