Copied!
  • property string $outertext
  • property string $outerhtml
  • property string $innertext
  • property string $innerhtml
  • property string $innerhtmlKeep
  • property string $plaintext
  • property string $class
  • property string $id
  • property \SimpleHtmlAttributes $classList
  • property-read string $tag
  • property-read string $attr
  • property-read string $text
  • property-read string $html
  • extends \IteratorAggregate<int, \DOMNode>
AbstractInterface
Methods
public abstract __call( $name, $arguments)
 
  • param string $name
  • param array $arguments
  • throws \BadMethodCallException
  • return \SimpleHtmlDomInterface|string|null
public abstract __get( $name)
 
  • param string $name
  • return array|string|null
public abstract __invoke( $selector, $idx = NULL)
 
  • param string $selector
  • param int $idx
  • return \SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract __isset( $name)
 
  • param string $name
  • return bool
public abstract __toString() : string
 
  • return string
public abstract childNodes(int $idx = -1)
 

Returns children of node.

  • param int $idx
  • return \SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface|null
public abstract delete()
 

Delete

  • return mixed
public abstract find(string $selector, $idx = NULL)
 

Find list of nodes with a CSS selector.

  • param string $selector
  • param int|null $idx
  • return \SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract findMulti(string $selector) : voku\helper\SimpleHtmlDomNodeInterface
 

Find nodes with a CSS selector.

  • param string $selector
  • return \SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract findMultiOrFalse(string $selector)
 

Find nodes with a CSS selector or false, if no element is found.

  • param string $selector
  • return false|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract findOne(string $selector) : self
 

Find one node with a CSS selector.

  • param string $selector
  • return \SimpleHtmlDomInterface
public abstract findOneOrFalse(string $selector)
 

Find one node with a CSS selector or false, if no element is found.

  • param string $selector
  • return false|\SimpleHtmlDomInterface
public abstract firstChild()
 

Returns the first child of node.

  • return \SimpleHtmlDomInterface|null
public abstract getAllAttributes()
 

Returns an array of attributes.

  • return string[]|null
public abstract getAttribute(string $name) : string
 

Return attribute value.

  • param string $name
  • return string
public abstract getElementByClass(string $class)
 

Return elements by ".class".

  • param string $class
  • return \SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract getElementById(string $id) : self
 

Return element by "#id".

  • param string $id
  • return \SimpleHtmlDomInterface
public abstract getElementByTagName(string $name) : self
 

Return element by tag name.

  • param string $name
  • return \SimpleHtmlDomInterface
public abstract getElementsById(string $id, $idx = NULL)
 

Returns elements by "#id".

  • param string $id
  • param int|null $idx
  • return \SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract getElementsByTagName(string $name, $idx = NULL)
 

Returns elements by tag name.

  • param string $name
  • param int|null $idx
  • return \SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract getHtmlDomParser() : voku\helper\HtmlDomParser
 

Create a new "HtmlDomParser"-object from the current context.

  • return \HtmlDomParser
public abstract getIterator() : voku\helper\SimpleHtmlDomNodeInterface
 

Retrieve an external iterator.

  • see http://php.net/manual/en/iteratoraggregate.getiterator.php
  • return \SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract getNode() : DOMNode
 
  • return \DOMNode
public abstract getTag() : string
 

Return the tag of node

  • return string
public abstract hasAttribute(string $name) : bool
 

Determine if an attribute exists on the element.

  • param string $name
  • return bool
public abstract html(bool $multiDecodeNewHtmlEntity = false) : string
 

Get dom node's outer html.

  • param bool $multiDecodeNewHtmlEntity
  • return string
public abstract innerHtml(bool $multiDecodeNewHtmlEntity = false, bool $putBrokenReplacedBack = true) : string
 

Get dom node's inner html.

  • param bool $multiDecodeNewHtmlEntity
  • param bool $putBrokenReplacedBack
  • return string
public abstract innerXml(bool $multiDecodeNewHtmlEntity = false) : string
 

Get dom node's inner html.

  • param bool $multiDecodeNewHtmlEntity
  • return string
public abstract isRemoved() : bool
 

Nodes can get partially destroyed in which they're still an actual DOM node (such as \DOMElement) but almost their entire body is gone, including the nodeType attribute.

  • return bool true if node has been destroyed
public abstract lastChild()
 

Returns the last child of node.

  • return \SimpleHtmlDomInterface|null
public abstract nextNonWhitespaceSibling()
 

Returns the next sibling of node, and it will ignore whitespace elements.

  • return \SimpleHtmlDomInterface|null
public abstract nextSibling()
 

Returns the next sibling of node.

  • return \SimpleHtmlDomInterface|null
public abstract parentNode() : ?self
 

Returns the parent of node.

  • return \SimpleHtmlDomInterface|null
public abstract previousNonWhitespaceSibling()
 

Returns the previous sibling of node, and it will ignore whitespace elements.

  • return \SimpleHtmlDomInterface|null
public abstract previousSibling()
 

Returns the previous sibling of node.

  • return \SimpleHtmlDomInterface|null
public abstract removeAttribute(string $name) : self
 

Remove attribute.

  • param string $name
  • return \SimpleHtmlDomInterface
public abstract removeAttributes() : self
 

Remove all attributes

  • return \SimpleHtmlDomInterface
public abstract setAttribute(string $name, $value = NULL, bool $strictEmptyValueCheck = false) : self
 

Set attribute value.

  • param string $name
  • param string|null $value
  • param bool $strictEmptyValueCheck </p> $value must be NULL, to remove the attribute, so that you can set an empty string as attribute-value e.g. autofocus=""
  • return \SimpleHtmlDomInterface
public abstract text() : string
 

Get dom node's plain text.

  • return string
public abstract val( $value = NULL)
 
  • param string|string[]|null $value
  • return string|string[]|null
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration