Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (MessageLog &$messages=null) | |
parse ( $mwParser) | |
getBackend () | |
getLingoArray () | |
getLingoTree () | |
purgeGlossaryFromCache () | |
setBackend (Backend $backend) | |
setApiParams (array $params) | |
Static Public Member Functions | |
static | getInstance () |
static | purgeCache () |
Public Attributes | |
const | WORD_VALUE = 0 |
const | WORD_OFFSET = 1 |
$regex = null | |
Protected Member Functions | |
& | buildLingo () |
loadModules (&$parser) | |
shouldParse (&$parser) | |
This class parses the given text and enriches it with definitions for defined terms.
Contains a static function to initiate the parsing.
Lingo\LingoParser::__construct | ( | MessageLog & | $messages = null | ) |
Lingo constructor.
MessageLog | null | $messages |
|
protected |
Lingo\LingoParser::getBackend | ( | ) |
|
static |
Lingo\LingoParser::getLingoArray | ( | ) |
Returns the list of terms in the glossary
Lingo\LingoParser::getLingoTree | ( | ) |
|
protected |
Parser | $parser |
Lingo\LingoParser::parse | ( | $mwParser | ) |
Parser | $mwParser |
|
static |
Purges the lingo tree from the cache.
Lingo\LingoParser::purgeGlossaryFromCache | ( | ) |
Purges the lingo tree from the cache.
Lingo\LingoParser::setApiParams | ( | array | $params | ) |
Set parser options from API
array | $params |
|
protected |
Parser | $parser |