__construct()
getDomDocument()
getEncoding()
getErrors()
getStringDocument()
getType()
getXpathNamespaces()
getXpathPhpFunctions()
registerXpathNamespaces()
registerXpathPhpFunctions()
setEncoding()
getDomDocumentFromString()
setDomDocument()
setErrors()
setStringDocument()
setType()
$domDocument
$errors
$stringDocument
$type
$xpathNamespaces
$xpathPhpFunctions
DOC_HTML
DOC_XHTML
DOC_XML
Class used to initialize DomDocument from string, with proper verifications
__construct(string | null $document, string | null $type, string | null $encoding)
stringnull
String containing the document
stringnull
Force the document to be of a certain type, bypassing setStringDocument's detection
stringnull
Encoding for the document (used for DOMDocument generation)
getDomDocument() : \DOMDocument
\Zend\Dom\Exception\RuntimeException |
If cannot get DOMDocument; no document registered |
---|
getEncoding() : string | null
string
null
getErrors() : array
array
getStringDocument() : string | null
string
null
getType() : string | null
string
null
getXpathNamespaces() : array
array
getXpathPhpFunctions() : string | null
string
null
registerXpathNamespaces(array $xpathNamespaces) : void
array
registerXpathPhpFunctions(bool $xpathPhpFunctions) : void
bool
setEncoding(string | null $encoding) : \Zend\Dom\self
stringnull
\Zend\Dom\self
setDomDocument(\DOMDocument $domDocument) : \Zend\Dom\self
setErrors(array $errors) : \Zend\Dom\self
array
\Zend\Dom\self
setStringDocument(string | null $document, string | null $forcedType, string | null $forcedEncoding) : \Zend\Dom\self
stringnull
stringnull
Type for the provided document (see constants)
stringnull
Encoding for the provided document
\Zend\Dom\self
setType(string $type) : \Zend\Dom\self
string
\Zend\Dom\self
$errors : array
$stringDocument : string
$type : string
$xpathNamespaces : array
$xpathPhpFunctions : mixed
DOC_HTML
DOC_XHTML
DOC_XML