Copied!

InputHandlerInterface

InputHandlerInterface.php : 13
Interface

Methods

publicfromDocument()

InputHandlerInterface.php : 30

Converts a 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 : 22

Converts a 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 : 37

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

public getRelations(DOMDocument $document) : array<int, array{locationIds: array, contentIds: array}>

Parameters

Name Type Default value Description
$document DOMDocument - -

Return values

array<int, array{locationIds: array, contentIds: array}>

publicvalidate()

InputHandlerInterface.php : 44

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

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

Parameters

Name Type Default value Description
$document DOMDocument - -

Return values

array<int, string>