Copied!

InputHandlerInterface

InputHandlerInterface.php : 13

Methods

publicfromDocument()

InputHandlerInterface.php : 38

Converts given DOMDocument to the internal Rich Text representation.

public fromDocument(DOMDocument $inputValue) : DOMDocument

Parameters

Name Type Default value Description
$inputValue DOMDocument - -

Return values

DOMDocument

Tags
Throws
NotFoundException
Throws
InvalidArgumentException

publicfromString()

InputHandlerInterface.php : 26

Converts given XML String to the internal Rich Text representation.

public fromString([string|null $inputValue = null ]) : DOMDocument

Parameters

Name Type Default value Description
$inputValue string|null null -

Return values

DOMDocument

Tags
Throws
NotFoundException
Throws
InvalidArgumentException
Throws
InvalidXmlException

publicgetRelations()

InputHandlerInterface.php : 47

Returns relation data extracted from given $document (internal representation).

public getRelations(DOMDocument $document) : array<string|int, mixed>

Parameters

Name Type Default value Description
$document DOMDocument - -

Return values

array<string|int, mixed>

publicvalidate()

InputHandlerInterface.php : 56

Validate the given $document (internal representation) and returns list of errors.

public validate(DOMDocument $document) : array<string|int, mixed>

Parameters

Name Type Default value Description
$document DOMDocument - -

Return values

array<string|int, mixed>