__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)
stringnullString containing the document
stringnullForce the document to be of a certain type, bypassing setStringDocument's detection
stringnullEncoding for the document (used for DOMDocument generation)
getDomDocument() : \DOMDocument
\Zend\Dom\Exception\RuntimeException |
If cannot get DOMDocument; no document registered |
|---|
getEncoding() : string | null
stringnull
getErrors() : array
arraygetStringDocument() : string | null
stringnull
getType() : string | null
stringnull
getXpathNamespaces() : array
arraygetXpathPhpFunctions() : string | null
stringnull
registerXpathNamespaces(array $xpathNamespaces) : void
array
registerXpathPhpFunctions(bool $xpathPhpFunctions) : void
bool
setEncoding(string | null $encoding) : \Zend\Dom\self
stringnull
\Zend\Dom\selfsetDomDocument(\DOMDocument $domDocument) : \Zend\Dom\self
setErrors(array $errors) : \Zend\Dom\self
array
\Zend\Dom\selfsetStringDocument(string | null $document, string | null $forcedType, string | null $forcedEncoding) : \Zend\Dom\self
stringnull
stringnullType for the provided document (see constants)
stringnullEncoding for the provided document
\Zend\Dom\selfsetType(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