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

Public Member Functions

 __construct (Title $title, Parser $parser)
 
 setParser (Parser $parser)
 
 setRevision (Revision $revision=null)
 
 getTitle ()
 
 getOutput ()
 
 getErrors ()
 
 skipInTextAnnotationParser ()
 
 parse ( $text=null)
 

Protected Attributes

 $title
 
 $parser = null
 
 $parserOutput = null
 
 $revision = null
 
 $errors = []
 

Detailed Description

Fetches the ParserOutput either by parsing an invoked text component, re-parsing a text revision, or accessing the ContentHandler to generate a ParserOutput object

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\ContentParser::__construct ( Title  $title,
Parser  $parser 
)
Since
1.9
Parameters
Title$title
Parser$parser

Member Function Documentation

◆ getErrors()

SMW\ContentParser::getErrors ( )
Since
1.9
Returns
array

◆ getOutput()

SMW\ContentParser::getOutput ( )
Since
1.9
Returns
ParserOutput|null

◆ getTitle()

SMW\ContentParser::getTitle ( )
Since
1.9
Returns
Title

◆ parse()

SMW\ContentParser::parse (   $text = null)

Generates or fetches the ParserOutput object from an appropriate source

Since
1.9
Parameters
string | null$text
Returns
ContentParser

◆ setParser()

SMW\ContentParser::setParser ( Parser  $parser)
Since
2.3
Returns
Parser $parser

◆ setRevision()

SMW\ContentParser::setRevision ( Revision  $revision = null)
Since
1.9.1
Returns
ContentParser

◆ skipInTextAnnotationParser()

SMW\ContentParser::skipInTextAnnotationParser ( )
Since
1.9

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

About | General disclaimer | Privacy policy