Class

eZ\Publish\Core\FieldType\RichText\InternalLinkValidator

class InternalLinkValidator

Validator for RichText internal format links.

Methods

__construct(Handler $contentHandler, Handler $locationHandler)

InternalLinkValidator constructor.

array validateDocument(DOMDocument $xml)

Extracts and validate internal links.

bool validate(string $scheme, string $id)

Validates following link formats: 'ezcontent://', 'ezremote://', 'ezlocation://'.

Details

at line 37
public __construct(Handler $contentHandler, Handler $locationHandler)

InternalLinkValidator constructor.

Parameters

Handler $contentHandler
Handler $locationHandler

at line 49
public array validateDocument(DOMDocument $xml)

Extracts and validate internal links.

Parameters

DOMDocument $xml

Return Value

array

at line 87
public bool validate(string $scheme, string $id)

Validates following link formats: 'ezcontent://', 'ezremote://', 'ezlocation://'.

Parameters

string $scheme
string $id

Return Value

bool

Exceptions

InvalidArgumentException If given $scheme is not supported.