Copied!
  • 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 $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\SimpleHtmlAttributes $classList

    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
Abstract Interface
  • Implements
    IteratorAggregate
    Stringable
    Traversable
Methods
public abstract __call ( $name , $arguments )
 
public abstract __get ( $name )
 
  • param string $name
  • return array | string | null
public abstract __invoke ( $selector , $idx = NULL )
 
public abstract __isset ( $name )
 
  • param string $name
  • return bool
public abstract __toString () : string
 
  • return string
public abstract childNodes ( int $idx = -1 )
public abstract delete ()
 

Delete

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

Find list of nodes with a CSS selector.

public abstract findMulti ( string $selector ) : voku\helper\SimpleHtmlDomNodeInterface
 

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.

  • 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".

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\helper\HtmlDomParser
 

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

public abstract getIterator () : voku\helper\SimpleHtmlDomNodeInterface
 

Retrieve an external iterator.

  • see http://php.net/manual/en/iteratoraggregate.getiterator.php
  • return SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>

    An instance of an object implementing Iterator or Traversable

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 ) : string
 

Get dom node's inner html.

  • param bool $multiDecodeNewHtmlEntity
  • 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.

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.

  • param string $name

    The name of the html-attribute.

  • param string | null $value

    Set to NULL or empty string, to remove the attribute.

  • param bool $strictEmptyValueCheck

    $value must be NULL, to remove the attribute, so that you can set an empty string as attribute-value e.g. autofocus=""

  • return voku\helper\SimpleHtmlDomInterface
public abstract text () : string
 

Get dom node's plain text.

  • return string
public abstract val ( $value = NULL )
 
  • param string | string []| null $value

    null === get the current input value text === set a new input value

  • return string | string []| null
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration