eZDOMNode Class Reference
[XML parser and DOM library]

eZDOMNode handles DOM nodes in DOM documents More...

List of all members.


Public Methods

 eZDOMNode ()
clone ()
 name ()
 setName ($name)
 namespaceURI ()
 setNamespaceURI ($uri)
 localName ()
 prefix ()
 setPrefix ($value)
 type ()
 setType ($type)
content ()
 setContent ($content)
attributes ()
children ()
firstChild ()
attributeValue ($attributeName)
attributeValueNS ($attributeName,$namespaceURI)
 appendChild (&$node)
 appendAttribute (&$node)
 removeNamedAttribute ($name)
 removeNamedChildren ($name)
 removeLastChild ()
lastChild ()
textContent ()
toString ($level,$charset=false)

Private Attributes

 Name = false
 Type = EZ_XML_NODE_ELEMENT
 Type of the DOM node. ElementNode=1, AttributeNode=2, TextNode=3, CDATASectionNode=4.

 Content = ""
 Content of the node.

 Children = array()
 Subnodes.

 Attributes = array()
 Attributes.

 NamespaceURI = false
 Contains the namespace URI. E.g. xmlns="http://ez.no/article/ would be the namespace URI.

 LocalName = false
 The local part of a name. E.g: book:title, title is the local part.

 Prefix = false
 contains the namespace prefix. E.g: book:title, book is the prefix


Detailed Description

eZDOMNode handles DOM nodes in DOM documents

Type of the DOM node can be: ElementNode=1, AttributeNode=2, TextNode=3, CDATASectionNode=4

See also:
eZDOMDocument

Definition at line ezdomnode.php.


Constructor & Destructor Documentation

eZDOMNode::eZDOMNode  
 

Creates a new DOM node.

Definition at line ezdomnode.php.

Referenced by clone().


Member Function Documentation

eZDOMNode::appendAttribute &$    node
 

Appends an attribute node.

Definition at line ezdomnode.php.

References Attributes.

eZDOMNode::appendChild &$    node
 

Appends a child node to the current node.

Definition at line ezdomnode.php.

References Children.

& eZDOMNode::attributes  
 

Returns the node attributes.

Definition at line ezdomnode.php.

References Attributes.

& eZDOMNode::attributeValue   attributeName
 

Returns the attribute value for the given attribute. If no value is found false is returned.

Definition at line ezdomnode.php.

& eZDOMNode::attributeValueNS   attributeName,
  namespaceURI
 

Returns the attribute value for the given attribute name and namespace. If no value is found false is returned.

Definition at line ezdomnode.php.

References namespaceURI().

& eZDOMNode::children  
 

Returns the node children.

Definition at line ezdomnode.php.

References Children.

Referenced by textContent().

& eZDOMNode::clone  
 

Makes a copy of the current node and returns a reference to it.

Definition at line ezdomnode.php.

References Type.

& eZDOMNode::content  
 

Returns the node content.

Definition at line ezdomnode.php.

References Content.

Referenced by setContent().

& eZDOMNode::firstChild  
 

Returns the first node children or null if no children.

Definition at line ezdomnode.php.

References Children.

& eZDOMNode::lastChild  
 

Returns:
the last appended child

Definition at line ezdomnode.php.

eZDOMNode::localName  
 

Returns the local name of the node if the node uses namespaces. If not false is returned.

Definition at line ezdomnode.php.

References LocalName.

eZDOMNode::name  
 

Returns the node name.

Definition at line ezdomnode.php.

References Name.

Referenced by setName().

eZDOMNode::namespaceURI  
 

Returns the nodes namespace URI.

Definition at line ezdomnode.php.

References NamespaceURI.

Referenced by toString().

eZDOMNode::prefix  
 

Returns returns the namespace prefix

Definition at line ezdomnode.php.

References Prefix.

Referenced by toString().

eZDOMNode::removeLastChild  
 

Removes the last appended child node

Definition at line ezdomnode.php.

eZDOMNode::removeNamedAttribute   name
 

Removes the attribute node named $name.

Definition at line ezdomnode.php.

References name().

eZDOMNode::removeNamedChildren   name
 

Removes the child(s) node named $name.

Definition at line ezdomnode.php.

References name().

eZDOMNode::setContent   content
 

Sets the node content.

Definition at line ezdomnode.php.

References content().

eZDOMNode::setName   name
 

Sets the nodes name.

Definition at line ezdomnode.php.

References name().

eZDOMNode::setNamespaceURI   uri
 

Sets the namespace URI

Definition at line ezdomnode.php.

References NamespaceURI.

eZDOMNode::setPrefix   value
 

Sets the namespace prefix for this element.

Definition at line ezdomnode.php.

References Prefix.

eZDOMNode::setType   type
 

Sets the node type. Type of the DOM node can be: ElementNode=1, AttributeNode=2, TextNode=3, CDATASectionNode=4

Definition at line ezdomnode.php.

References type().

& eZDOMNode::textContent  
 

Returns the contents of the node if it has one child which is a text node. False is returned if unsuccessful.

Definition at line ezdomnode.php.

References children().

& eZDOMNode::toString   level,
  charset = false
 

Returns a XML string of the DOM Node and subnodes

Definition at line ezdomnode.php.

References Prefix.

eZDOMNode::type  
 

Returns the node type. Type of the DOM node can be: ElementNode=1, AttributeNode=2, TextNode=3, CDATASectionNode=4

Definition at line ezdomnode.php.

References Type.

Referenced by setType().


Member Data Documentation

eZDOMNode::Name = false [private]
 

Name of the node

Definition at line ezdomnode.php.

Referenced by toString().


The documentation for this class was generated from the following file:  

Exponential