Copied!
  • property string $outertext
  • property string $outerhtml
  • property string $innertext
  • property string $innerhtml
  • property string $plaintext
  • 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 \SimpleXmlDomInterface|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 \SimpleXmlDomInterface|\SimpleXmlDomInterface[]|\SimpleXmlDomNodeInterface<\SimpleXmlDomInterface>
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 \SimpleXmlDomInterface|\SimpleXmlDomInterface[]|\SimpleXmlDomNodeInterface<\SimpleXmlDomInterface>|null
public abstract find(string $selector, $idx = NULL)
 

Find list of nodes with a CSS or xPath selector.

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

Find nodes with a CSS or xPath selector.

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

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

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

Find one node with a CSS or xPath selector.

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

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

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

Returns the first child of node.

  • return \SimpleXmlDomInterface|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 \SimpleXmlDomInterface[]|\SimpleXmlDomNodeInterface<\SimpleXmlDomInterface>
public abstract getElementById(string $id) : self
 

Return element by "#id".

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

Return element by tag name.

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

Returns elements by "#id".

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

Returns elements by tag name.

  • param string $name
  • param int|null $idx
  • return \SimpleXmlDomInterface|\SimpleXmlDomInterface[]|\SimpleXmlDomNodeInterface<\SimpleXmlDomInterface>
public abstract getIterator() : voku\helper\SimpleXmlDomNodeInterface
 

Retrieve an external iterator.

  • see http://php.net/manual/en/iteratoraggregate.getiterator.php
  • return \SimpleXmlDomNodeInterface<int,\DOMNode>
public abstract getNode() : DOMNode
 
  • return \DOMNode
public abstract getXmlDomParser() : voku\helper\XmlDomParser
 

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

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

Determine if an attribute exists on the element.

  • param string $name
  • return bool
public abstract hasAttributes() : bool
 
  • return bool
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 \SimpleXmlDomInterface|null
public abstract nextNonWhitespaceSibling()
 

Returns the next sibling of node.

  • return \SimpleXmlDomInterface|null
public abstract nextSibling()
 

Returns the next sibling of node.

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

Returns the parent of node.

  • return \SimpleXmlDomInterface
public abstract previousNonWhitespaceSibling()
 

Returns the previous sibling of node.

  • return \SimpleXmlDomInterface|null
public abstract previousSibling()
 

Returns the previous sibling of node.

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

Remove attribute.

  • param string $name
  • return \SimpleXmlDomInterface
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 \SimpleXmlDomInterface
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
public abstract xml(bool $multiDecodeNewHtmlEntity = false) : string
 

Get dom node's outer html.

  • param bool $multiDecodeNewHtmlEntity
  • return string
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration