-
property
string
$outertext
Get dom node's outer html (alias for "outerHtml").
-
property
string
$outerhtml
Get dom node's outer html.
-
property
string
$innertext
Get dom node's inner html (alias for "innerHtml").
-
property
string
$innerhtml
Get dom node's inner html.
-
property
string
$innerhtmlKeep
Get dom node's inner html + keep fix for broken html.
-
property
string
$plaintext
Get dom node's plain text.
-
property
string
$class
Get dom node's class attribute.
-
property
string
$id
Get dom node's id attribute.
-
property
voku
\helper $classList\SimpleHtmlAttributes Get dom node attributes.
-
property-read
string
$tag
Get dom node name.
-
property-read
string
$attr
Get dom node attributes.
-
property-read
string
$text
Get dom node name.
-
property-read
string
$html
Get dom node's outer html.
- extends \IteratorAggregate<int, \DOMNode>
-
Implements
IteratorAggregate Stringable Traversable
Methods |
public
abstract
__call
(
$name
,
$arguments
)
|
public
abstract
__get
(
$name
)
|
public
abstract
__invoke
(
$selector
,
$idx
=
NULL
)
|
public
abstract
__isset
(
$name
)
|
public
abstract
__toString
() :
string
|
public
abstract
childNodes
(
int
$idx
=
-1
) Returns children of node.
|
public
abstract
delete
() Delete
|
public
abstract
find
(
string
$selector
,
$idx
=
NULL
) Find list of nodes with a CSS selector.
|
public
abstract
findMulti
(
string
$selector
) :
voku Find nodes with a CSS selector.
|
public
abstract
findMultiOrFalse
(
string
$selector
) Find nodes with a CSS selector or false, if no element is found.
|
public
abstract
findOne
(
string
$selector
) :
self
Find one node with a CSS selector.
|
public
abstract
findOneOrFalse
(
string
$selector
) Find one node with a CSS selector or false, if no element is found.
|
public
abstract
firstChild
() Returns the first child of node.
|
public
abstract
getAllAttributes
() Returns an array of attributes.
|
public
abstract
getAttribute
(
string
$name
) :
string
Return attribute value.
|
public
abstract
getElementByClass
(
string
$class
) Return elements by ".class".
|
public
abstract
getElementById
(
string
$id
) :
self
Return element by "#id".
|
public
abstract
getElementByTagName
(
string
$name
) :
self
Return element by tag name.
|
public
abstract
getElementsById
(
string
$id
,
$idx
=
NULL
) Returns elements by "#id".
|
public
abstract
getElementsByTagName
(
string
$name
,
$idx
=
NULL
) Returns elements by tag name.
|
public
abstract
getHtmlDomParser
() :
voku Create a new "HtmlDomParser"-object from the current context.
|
public
abstract
getIterator
() :
voku Retrieve an external iterator.
|
public
abstract
getNode
() :
DOMNode
|
public
abstract
getTag
() :
string
Return the tag of node
|
public
abstract
hasAttribute
(
string
$name
) :
bool
Determine if an attribute exists on the element.
|
public
abstract
html
(
bool
$multiDecodeNewHtmlEntity
=
false
) :
string
Get dom node's outer html.
|
public
abstract
innerHtml
(
bool
$multiDecodeNewHtmlEntity
=
false
,
bool
$putBrokenReplacedBack
=
true
) :
string
Get dom node's inner html.
|
public
abstract
innerXml
(
bool
$multiDecodeNewHtmlEntity
=
false
) :
string
Get dom node's inner html.
|
public
abstract
isRemoved
() :
bool
Nodes can get partially destroyed in which they're still an
|
public
abstract
lastChild
() Returns the last child of node.
|
public
abstract
nextNonWhitespaceSibling
() Returns the next sibling of node, and it will ignore whitespace elements.
|
public
abstract
nextSibling
() Returns the next sibling of node.
|
public
abstract
parentNode
() :
self
Returns the parent of node. |
public
abstract
previousNonWhitespaceSibling
() Returns the previous sibling of node, and it will ignore whitespace elements.
|
public
abstract
previousSibling
() Returns the previous sibling of node.
|
public
abstract
removeAttribute
(
string
$name
) :
self
Remove attribute.
|
public
abstract
removeAttributes
() :
self
Remove all attributes |
public
abstract
setAttribute
(
string
$name
,
$value
=
NULL
,
bool
$strictEmptyValueCheck
=
false
) :
self
Set attribute value.
|
public
abstract
text
() :
string
Get dom node's plain text.
|
public
abstract
val
(
$value
=
NULL
)
|