Class DOMIT_Attr

Description

A class representing the Attr node

Located in /includes/domit/xml_domit_parser.php (line 2576)

DOMIT_Node
   |
   --DOMIT_Attr
Variable Summary
Object $ownerElement
boolean $specified
Method Summary
DOMIT_Attr DOMIT_Attr (string $name)
Object &cloneNode ([boolean $deep = false])
string getName ()
boolean getSpecified ()
string getText ()
string getValue ()
void setText (string $data)
void setValue (string $value)
string toString ([boolean $htmlSafe = false], [boolean $subEntities = true])
Variables
Object $ownerElement = null (line 2580)
  • var: A reference to the element to which the attribute is assigned
boolean $specified = false (line 2578)
  • var: True if the attribute has been modified since parsing (NOT YET IMPLEMENTED!)

Inherited Variables

Inherited from DOMIT_Node

DOMIT_Node::$attributes
DOMIT_Node::$childCount
DOMIT_Node::$childNodes
DOMIT_Node::$firstChild
DOMIT_Node::$lastChild
DOMIT_Node::$localname
DOMIT_Node::$namespaceURI
DOMIT_Node::$nextSibling
DOMIT_Node::$nodeName
DOMIT_Node::$nodeType
DOMIT_Node::$nodeValue
DOMIT_Node::$ownerDocument
DOMIT_Node::$parentNode
DOMIT_Node::$prefix
DOMIT_Node::$previousSibling
DOMIT_Node::$uid
Methods
Constructor DOMIT_Attr (line 2586)

DOM Attr node constructor

DOMIT_Attr DOMIT_Attr (string $name)
  • string $name: The name of the attribute
cloneNode (line 2645)

Copies a node and/or its children

  • return: A copy of the node and/or its children
Object &cloneNode ([boolean $deep = false])
  • boolean $deep: True if all child nodes are also to be cloned

Redefinition of:
DOMIT_Node::cloneNode()
Copies a node and/or its children
getName (line 2596)

Returns the name of the attribute

  • return: The name of the attribute
string getName ()
getSpecified (line 2604)

Indicates whether an attribute has been modified since parsing

  • return: True if the node has been modified
boolean getSpecified ()
getText (line 2628)

Returns the text contained in the current node

  • return: The text of the current node
string getText ()

Redefinition of:
DOMIT_Node::getText()
Returns the concatented text of the current node and its children
getValue (line 2612)

Returns the value of the attribute

  • return: The value of the attribute
string getValue ()
setText (line 2636)

Sets the text contained in the current node to $data.

void setText (string $data)
  • string $data: The text data of the node
setValue (line 2620)

Sets the value of the attribute

void setValue (string $value)
  • string $value: The value of the attribute
toString (line 2659)

Generates a string representation of the node and its children

  • return: The string representation
string toString ([boolean $htmlSafe = false], [boolean $subEntities = true])
  • boolean $htmlSafe: True if HTML readable output is desired
  • boolean $subEntities: True if HTML entities should be substituted

Inherited Methods

Inherited From DOMIT_Node

DOMIT_Node::DOMIT_Node()
DOMIT_Node::appendChild()
DOMIT_Node::clearReferences()
DOMIT_Node::cloneNode()
DOMIT_Node::forHTML()
DOMIT_Node::getChildNodeIndex()
DOMIT_Node::getElementsByAttributePath()
DOMIT_Node::getElementsByPath()
DOMIT_Node::getNamedElements()
DOMIT_Node::getText()
DOMIT_Node::getTypedNodes()
DOMIT_Node::getValuedNodes()
DOMIT_Node::hasAttributes()
DOMIT_Node::hasChildNodes()
DOMIT_Node::insertBefore()
DOMIT_Node::isSupported()
DOMIT_Node::normalize()
DOMIT_Node::nvl()
DOMIT_Node::onLoad()
DOMIT_Node::removeChild()
DOMIT_Node::replaceChild()
DOMIT_Node::setOwnerDocument()
DOMIT_Node::toArray()
DOMIT_Node::toNormalizedString()
DOMIT_Node::_constructor()

Documentation generated on Fri, 4 Mar 2005 13:57:43 +1000 by phpDocumentor 1.3.0RC3