AttributesListener
in package
FinalYes
Table of Contents
Constants
- DIRECTION_PREFIX = 'prefix'
- DIRECTION_SUFFIX = 'suffix'
Properties
- $allowList : array<int, string>
- $allowUnsafeLinks : bool
Methods
- __construct() : mixed
- processDocument() : void
- findTargetAndDirection() : array<string|int, Node|string|null>
- getNext() : Node|null
- Get any previous block (sibling or parent) this might apply to
- getPrevious() : Node|null
- Get any previous block (sibling or parent) this might apply to
- isAttributesNode() : bool
Constants
DIRECTION_PREFIX
private
mixed
DIRECTION_PREFIX
= 'prefix'
DIRECTION_SUFFIX
private
mixed
DIRECTION_SUFFIX
= 'suffix'
Properties
$allowList
private
array<int, string>
$allowList
$allowUnsafeLinks
private
bool
$allowUnsafeLinks
Methods
__construct()
public
__construct([array<int, string> $allowList = [] ][, bool $allowUnsafeLinks = true ]) : mixed
Parameters
- $allowList : array<int, string> = []
- $allowUnsafeLinks : bool = true
processDocument()
public
processDocument(DocumentParsedEvent $event) : void
Parameters
- $event : DocumentParsedEvent
findTargetAndDirection()
private
static findTargetAndDirection(Attributes|AttributesInline $node) : array<string|int, Node|string|null>
Parameters
- $node : Attributes|AttributesInline
Return values
array<string|int, Node|string|null>getNext()
Get any previous block (sibling or parent) this might apply to
private
static getNext([Node|null $node = null ]) : Node|null
Parameters
- $node : Node|null = null
Return values
Node|nullgetPrevious()
Get any previous block (sibling or parent) this might apply to
private
static getPrevious([Node|null $node = null ]) : Node|null
Parameters
- $node : Node|null = null
Return values
Node|nullisAttributesNode()
private
static isAttributesNode(Node $node) : bool
Parameters
- $node : Node