Copied!
Abstract Interface
Methods
public abstract find ( string $selector , $idx = NULL )
 

Find list of nodes with a CSS selector.

  • param string $selector
  • param int | null $idx
  • return mixed
public abstract findMulti ( string $selector )
 

Find nodes with a CSS selector.

  • param string $selector
  • return mixed
public abstract findMultiOrFalse ( string $selector )
 

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

  • param string $selector
  • return mixed
public abstract findOne ( string $selector )
 

Find one node with a CSS selector.

  • param string $selector
  • return static
public abstract findOneOrFalse ( string $selector )
 

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

  • param string $selector
  • return mixed
public abstract fixHtmlOutput ( string $content , bool $multiDecodeNewHtmlEntity = false , bool $putBrokenReplacedBack = true ) : string
 
  • param string $content
  • param bool $multiDecodeNewHtmlEntity
  • param bool $putBrokenReplacedBack
  • return string
public abstract getDocument () : DOMDocument
 
  • return DOMDocument
public abstract getElementByClass ( string $class )
 

Return elements by ".class".

  • param string $class
  • return mixed
public abstract getElementById ( string $id )
 

Return element by #id.

  • param string $id
  • return mixed
public abstract getElementByTagName ( string $name )
 

Return element by tag name.

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

Returns elements by "#id".

  • param string $id
  • param int | null $idx
  • return mixed
public abstract getElementsByTagName ( string $name , $idx = NULL )
 

Returns elements by tag name.

  • param string $name
  • param int | null $idx
  • return mixed
public abstract html ( bool $multiDecodeNewHtmlEntity = false , bool $putBrokenReplacedBack = true ) : string
 

Get dom node's outer html.

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

  • param bool $multiDecodeNewHtmlEntity
  • return string
public abstract loadHtml ( string $html , $libXMLExtraOptions = NULL ) : self
 

Load HTML from string.

public abstract loadHtmlFile ( string $filePath , $libXMLExtraOptions = NULL ) : self
 

Load HTML from file.

public abstract save ( string $filepath = '' ) : string
 

Save the html-dom as string.

  • param string $filepath
  • return string
public abstract set_callback ( $functionName )
 
  • param callable $functionName
  • return mixed
public abstract text ( bool $multiDecodeNewHtmlEntity = false ) : string
 

Get dom node's plain text.

  • param bool $multiDecodeNewHtmlEntity
  • return string
public abstract xml ( bool $multiDecodeNewHtmlEntity = false , bool $htmlToXml = true , bool $removeXmlHeader = true , int $options = 4 LIBXML_NOEMPTYTAG) : string
 

Get the HTML as XML or plain XML if needed.

  • param bool $multiDecodeNewHtmlEntity
  • param bool $htmlToXml
  • param bool $removeXmlHeader
  • param int $options
  • return string
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration