Class DOMDocument
Extension of PHP's native \DOMDocument, providing helpful utility functions to carry out common tasks such as read HTML with inline PHP, populate named elements, import extenral content
- DOMNode
-
DOMDocument
-
WPGMZA\DOMDocument
Direct known subclasses
WPGMZA\ModalDialog
public
|
|
public static
|
|
protected
|
|
protected
|
|
public
boolean
|
|
public
boolean
|
|
protected
|
#
handleImport( string $subject,
Handles importing the specified filename to the given node. Files with the extension .html or .html.php will be processed and imported. Files with the extension .php will be scanned for a class extending DOMDocument and imported if one is found. |
public
mixed
|
#
querySelector( string $query )
Runs a CSS selector on the element. This is equivilant to Javascripts querySelector |
public
mixed
|
#
querySelectorAll( $query )
Runs a CSS selector on the element. This is equivilant to Javascripts querySelectorAll |
public
|
|
public
Smart\Element
|
|
public
string
|
#
saveInnerBody( )
This function saves only the inside of the element of this document. This is useful when you want to import a HTML document into another, but you don't want to end up with nested elements |
adoptNode(),
createAttribute(),
createAttributeNS(),
createCDATASection(),
createComment(),
createDocumentFragment(),
createElement(),
createElementNS(),
createEntityReference(),
createProcessingInstruction(),
createTextNode(),
getElementById(),
getElementsByTagName(),
getElementsByTagNameNS(),
importNode(),
loadHTML(),
loadHTMLFile(),
loadXML(),
normalizeDocument(),
registerNodeClass(),
relaxNGValidate(),
relaxNGValidateSource(),
renameNode(),
save(),
saveHTML(),
saveHTMLFile(),
saveXML(),
schemaValidate(),
schemaValidateSource(),
validate(),
xinclude()
|
C14N(),
C14NFile(),
appendChild(),
cloneNode(),
compareDocumentPosition(),
getFeature(),
getLineNo(),
getNodePath(),
getUserData(),
hasAttributes(),
hasChildNodes(),
insertBefore(),
isDefaultNamespace(),
isEqualNode(),
isSameNode(),
isSupported(),
lookupNamespaceUri(),
lookupPrefix(),
normalize(),
removeChild(),
replaceChild(),
setUserData()
|