PreParseDocument
in package
FinalYes
This event is called before the parsing of each document is passed to the responsible extension.
It can be used to manipulate the content passed to the parser by calling PreParseDocument::setContents
Table of Contents
Properties
Methods
- __construct() : mixed
- getContents() : string
- getFileName() : string
- getParser() : Parser
- setContents() : void
Properties
$contents
private
string
$contents
$fileName read-only
private
string
$fileName
$parser read-only
private
Parser
$parser
Methods
__construct()
public
__construct(Parser $parser, string $fileName, string $contents) : mixed
Parameters
- $parser : Parser
- $fileName : string
- $contents : string
getContents()
public
getContents() : string
Return values
stringgetFileName()
public
getFileName() : string
Return values
stringgetParser()
public
getParser() : Parser
Return values
ParsersetContents()
public
setContents(string $contents) : void
Parameters
- $contents : string