Class thoulah\fontawesome\helpers\DOMDocument

Inheritancethoulah\fontawesome\helpers\DOMDocument » DOMDocument

Represents an entire HTML or XML document; serves as the root of the document tree.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates a new DOMDocument object. thoulah\fontawesome\helpers\DOMDocument
load() Load XML from a file. thoulah\fontawesome\helpers\DOMDocument

Method Details

__construct() public method

Creates a new DOMDocument object.

public void __construct ( $version null, $encoding null )
$version string

The version number of the document as part of the XML declaration

$encoding string

The encoding of the document as part of the XML declaration

load() public method

Load XML from a file.

public mixed load ( $source, $options null )
$source string

The path to the XML document

$options integer

Bitwise OR

                   of the [libxml option constants](https://www.php.net/manual/en/libxml.constants.php).
return mixed

Returns TRUE on success or FALSE on failure. If called

          statically, returns a [[DOMDocument]] or `FALSE` on failure.