class Parser extends ParserBase

Properties

protected array $config from  ParserBase
protected Parser $parser from  ParserBase

Methods

__construct(Parser $parser, array $config)

Constructor

void
setUp()

Plugin's setup

void
parse(string $text, array $matches)

No description

void
captureAttributes(Tag $tag, string $elName, string $str)

Capture all attributes in given string

Details

in ParserBase at line 30
final __construct(Parser $parser, array $config)

Constructor

Parameters

Parser $parser
array $config

in ParserBase at line 43
protected void setUp()

Plugin's setup

Return Value

void

at line 18
void parse(string $text, array $matches)

No description

Parameters

string $text
array $matches

If the config array has a "regexp" key, the corresponding matches are passed as second parameter. Otherwise, an empty array is passed

Return Value

void

at line 62
protected void captureAttributes(Tag $tag, string $elName, string $str)

Capture all attributes in given string

Parameters

Tag $tag

Target tag

string $elName

Name of the HTML element

string $str

String containing the attribute declarations

Return Value

void