\WebinoDraw\DomText

Extended DOMText

Summary

Methods
Properties
Constants
setOnReplace()
getOwnerDocument()
getParentNode()
replaceWith()
getProperties()
isEmpty()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$onReplace
N/A

Properties

$onReplace

$onReplace : array<mixed,callable>

Type

array<mixed,callable>

Methods

setOnReplace()

setOnReplace(callable  $callback) : $this

Parameters

callable $callback

Returns

$this

replaceWith()

replaceWith(string  $html) : \WebinoDraw\Dom\NodeInterface

Parameters

string $html

Throws

\WebinoDraw\Exception\LogicException

Returns

\WebinoDraw\Dom\NodeInterface

getProperties()

getProperties(string  $prefix = null) : array

Returns the node text value and attributes in the array

Parameters

string $prefix

Returns

array

isEmpty()

isEmpty() : boolean

Returns

boolean