Documentation

Document extends Node

Table of Contents

Constants

ATTRIBUTE_NODE  = 2
CDATA_SECTION_NODE  = 4
COMMENT_NODE  = 8
DOCUMENT_FRAGMENT_NODE  = 11
DOCUMENT_NODE  = 9
DOCUMENT_POSITION_CONTAINED_BY  = 0x10
DOCUMENT_POSITION_CONTAINS  = 0x8
DOCUMENT_POSITION_DISCONNECTED  = 0x1
DOCUMENT_POSITION_FOLLOWING  = 0x4
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC  = 0x20
DOCUMENT_POSITION_PRECEDING  = 0x2
DOCUMENT_TYPE_NODE  = 10
ELEMENT_NODE  = 1
ENTITY_NODE  = 6
ENTITY_REFERENCE_NODE  = 5
NOTATION_NODE  = 12
PROCESSING_INSTRUCTION_NODE  = 7
TEXT_NODE  = 3

Methods

adoptNode()  : Node
appendChild()  : Node
cloneNode()  : Node
compareDocumentPosition()  : int
createAttribute()  : Attr
createAttributeNS()  : Attr
createCDATASection()  : CDATASection
createComment()  : Comment
createDocumentFragment()  : DocumentFragment
createElement()  : Element
createElementNS()  : Element
createEntityReference()  : EntityReference
createProcessingInstruction()  : ProcessingInstruction
createTextNode()  : Text
getAttributes()  : array<string|int, mixed>
getBaseURI()  : string
getChildNodes()  : array<string|int, mixed>
getDoctype()  : DocumentType
getDocumentElement()  : Element
getDocumentURI()  : string
getDomConfig()  : DOMConfiguration
getElementById()  : Element
getElementsByTagName()  : array<string|int, mixed>
getElementsByTagNameNS()  : array<string|int, mixed>
getFeature()  : Node
getFirstChild()  : Node
getImplementation()  : DOMImplementation
getInputEncoding()  : string
getLastChild()  : Node
getLocalName()  : string
getNamespaceURI()  : string
getNextSibling()  : Node
getNodeName()  : string
getNodeType()  : int
getNodeValue()  : string
getOwnerDocument()  : Document
getParentNode()  : Node
getPrefix()  : string
getPreviousSibling()  : Node
getStrictErrorChecking()  : bool
getTextContent()  : string
getUserData()  : object
getXmlEncoding()  : string
getXmlStandalone()  : bool
getXmlVersion()  : string
hasAttributes()  : bool
hasChildNodes()  : bool
importNode()  : Node
insertBefore()  : Node
isDefaultNamespace()  : bool
isEqualNode()  : bool
isSameNode()  : bool
isSupported()  : bool
lookupNamespaceURI()  : string
lookupPrefix()  : string
normalize()  : void
normalizeDocument()  : void
removeChild()  : Node
renameNode()  : Node
replaceChild()  : Node
setDocumentURI()  : void
setNodeValue()  : void
setPrefix()  : void
setStrictErrorChecking()  : void
setTextContent()  : void
setUserData()  : object
setXmlStandalone()  : void
setXmlVersion()  : void

Constants

ATTRIBUTE_NODE

public mixed ATTRIBUTE_NODE = 2

CDATA_SECTION_NODE

public mixed CDATA_SECTION_NODE = 4

COMMENT_NODE

public mixed COMMENT_NODE = 8

DOCUMENT_FRAGMENT_NODE

public mixed DOCUMENT_FRAGMENT_NODE = 11

DOCUMENT_NODE

public mixed DOCUMENT_NODE = 9

DOCUMENT_POSITION_CONTAINED_BY

public mixed DOCUMENT_POSITION_CONTAINED_BY = 0x10

DOCUMENT_POSITION_CONTAINS

public mixed DOCUMENT_POSITION_CONTAINS = 0x8

DOCUMENT_POSITION_DISCONNECTED

public mixed DOCUMENT_POSITION_DISCONNECTED = 0x1

DOCUMENT_POSITION_FOLLOWING

public mixed DOCUMENT_POSITION_FOLLOWING = 0x4

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

public mixed DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20

DOCUMENT_POSITION_PRECEDING

public mixed DOCUMENT_POSITION_PRECEDING = 0x2

DOCUMENT_TYPE_NODE

public mixed DOCUMENT_TYPE_NODE = 10

ELEMENT_NODE

public mixed ELEMENT_NODE = 1

ENTITY_NODE

public mixed ENTITY_NODE = 6

ENTITY_REFERENCE_NODE

public mixed ENTITY_REFERENCE_NODE = 5

NOTATION_NODE

public mixed NOTATION_NODE = 12

PROCESSING_INSTRUCTION_NODE

public mixed PROCESSING_INSTRUCTION_NODE = 7

TEXT_NODE

public mixed TEXT_NODE = 3

Methods

appendChild()

public appendChild(Node $newChild) : Node
Parameters
$newChild : Node
Return values
Node

cloneNode()

public cloneNode(bool $deep) : Node
Parameters
$deep : bool
Return values
Node

compareDocumentPosition()

public compareDocumentPosition(Node $other) : int
Parameters
$other : Node
Return values
int

createAttribute()

public createAttribute(string $name) : Attr
Parameters
$name : string
Return values
Attr

createAttributeNS()

public createAttributeNS(string $namespaceURI, string $qualifiedName) : Attr
Parameters
$namespaceURI : string
$qualifiedName : string
Return values
Attr

createComment()

public createComment(string $data) : Comment
Parameters
$data : string
Return values
Comment

createElement()

public createElement(string $tagName) : Element
Parameters
$tagName : string
Return values
Element

createElementNS()

public createElementNS(string $namespaceURI, string $qualifiedName) : Element
Parameters
$namespaceURI : string
$qualifiedName : string
Return values
Element

createTextNode()

public createTextNode(string $data) : Text
Parameters
$data : string
Return values
Text

getAttributes()

public getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getBaseURI()

public getBaseURI() : string
Return values
string

getChildNodes()

public getChildNodes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDocumentURI()

public getDocumentURI() : string
Return values
string

getElementById()

public getElementById(string $elementId) : Element
Parameters
$elementId : string
Return values
Element

getElementsByTagName()

public getElementsByTagName(string $tagname) : array<string|int, mixed>
Parameters
$tagname : string
Return values
array<string|int, mixed>

getElementsByTagNameNS()

public getElementsByTagNameNS(string $namespaceURI, string $localName) : array<string|int, mixed>
Parameters
$namespaceURI : string
$localName : string
Return values
array<string|int, mixed>

getFeature()

public getFeature(string $feature, string $version) : Node
Parameters
$feature : string
$version : string
Return values
Node

getFirstChild()

public getFirstChild() : Node
Return values
Node

getInputEncoding()

public getInputEncoding() : string
Return values
string

getLocalName()

public getLocalName() : string
Return values
string

getNamespaceURI()

public getNamespaceURI() : string
Return values
string

getNextSibling()

public getNextSibling() : Node
Return values
Node

getNodeName()

public getNodeName() : string
Return values
string

getNodeType()

public getNodeType() : int
Return values
int

getNodeValue()

public getNodeValue() : string
Return values
string

getParentNode()

public getParentNode() : Node
Return values
Node

getPrefix()

public getPrefix() : string
Return values
string

getPreviousSibling()

public getPreviousSibling() : Node
Return values
Node

getStrictErrorChecking()

public getStrictErrorChecking() : bool
Return values
bool

getTextContent()

public getTextContent() : string
Return values
string

getUserData()

public getUserData(string $key) : object
Parameters
$key : string
Return values
object

getXmlEncoding()

public getXmlEncoding() : string
Return values
string

getXmlStandalone()

public getXmlStandalone() : bool
Return values
bool

getXmlVersion()

public getXmlVersion() : string
Return values
string

hasAttributes()

public hasAttributes() : bool
Return values
bool

hasChildNodes()

public hasChildNodes() : bool
Return values
bool

importNode()

public importNode(Node $importedNode, bool $deep) : Node
Parameters
$importedNode : Node
$deep : bool
Return values
Node

isDefaultNamespace()

public isDefaultNamespace(string $namespaceURI) : bool
Parameters
$namespaceURI : string
Return values
bool

isEqualNode()

public isEqualNode(Node $arg) : bool
Parameters
$arg : Node
Return values
bool

isSameNode()

public isSameNode(Node $other) : bool
Parameters
$other : Node
Return values
bool

isSupported()

public isSupported(string $feature, string $version) : bool
Parameters
$feature : string
$version : string
Return values
bool

lookupNamespaceURI()

public lookupNamespaceURI(string $prefix) : string
Parameters
$prefix : string
Return values
string

lookupPrefix()

public lookupPrefix(string $namespaceURI) : string
Parameters
$namespaceURI : string
Return values
string

normalize()

public normalize() : void

normalizeDocument()

public normalizeDocument() : void

removeChild()

public removeChild(Node $oldChild) : Node
Parameters
$oldChild : Node
Return values
Node

renameNode()

public renameNode(Node $n, string $namespaceURI, string $qualifiedName) : Node
Parameters
$n : Node
$namespaceURI : string
$qualifiedName : string
Return values
Node

setDocumentURI()

public setDocumentURI(string $documentURI) : void
Parameters
$documentURI : string

setNodeValue()

public setNodeValue(string $nodeValue) : void
Parameters
$nodeValue : string

setPrefix()

public setPrefix(string $prefix) : void
Parameters
$prefix : string

setStrictErrorChecking()

public setStrictErrorChecking(bool $strictErrorChecking) : void
Parameters
$strictErrorChecking : bool

setTextContent()

public setTextContent(string $textContent) : void
Parameters
$textContent : string

setUserData()

public setUserData(string $key, object $data, UserDataHandler $handler) : object
Parameters
$key : string
$data : object
$handler : UserDataHandler
Return values
object

setXmlStandalone()

public setXmlStandalone(bool $xmlStandalone) : void
Parameters
$xmlStandalone : bool

setXmlVersion()

public setXmlVersion(string $xmlVersion) : void
Parameters
$xmlVersion : string

        
On this page

Search results