xml 
[ doc home ] [ class tree: xml ] [ index: xml ] [ all elements ]

Class: IsterSimpleXMLElement

Source Location: /IsterSimpleXMLElement.php

Class Overview

IsterObject
   |
   --IsterXmlNode
      |
      --IsterSimpleXMLElement

This class represents a SimpleXML element.


Author(s): Ingo Schramm   

Copyright: Copyright (c) 2005 Ister.ORG Ingo Schramm

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: IsterXmlNode

IsterXmlNode::IsterXmlNode()
Constructor
IsterXmlNode::append()
Append an element.
IsterXmlNode::asXML()
Return the current node formatted as XML.
IsterXmlNode::getChildrenXml()
IsterXmlNode::getRoot()
Get the documents root node if this node represents a document.
IsterXmlNode::hasChildren()
Return number of children.
IsterXmlNode::setAttribute()
Add or alter an attribute.
IsterXmlNode::toDOM()
IsterXmlNode::toSimpleXML()
Perform conversion of an IsterXmlNode to a SimpleXMLElement.
IsterXmlNode::xpath()
Runs Xpath query on the node.

Class: IsterObject

IsterObject::IsterObject()
Constructor
IsterObject::abstractMethodError()
Report attempt to call an abstract method.
IsterObject::addLogger()
Add an IsterLogger to process log messages.
IsterObject::deleteLogger()
Delete an already registered IsterLogger.
IsterObject::getLoggerNames()
Fetch the names of all currently registered IsterLoggers.
IsterObject::getMem()
Return maximum amount of memory an application has allocated at this point.
IsterObject::log()
Trigger a log message.
IsterObject::passPHPmessage()
Catch PHP E_WARNING and E_NOTICE messages.
IsterObject::serialize()
Serialize the object.
IsterObject::setLogLocal()
Set logging local for the current object.
IsterObject::setupLogger()
Setup a logger.
IsterObject::triggerError()
Alias for log();
IsterObject::unserialize()
Unserialize the object.
IsterObject::__sleep()
Executed prior to serialize().
IsterObject::__wakeup()
Executed prior to unserialize().

Class Details

This class represents a SimpleXML element.

This is part of the pure PHP4 implementation of PHP5's interface SimpleXML. Due to the nature of PHP4 there are some differences to the PHP5 class. Since PHP5's SimpleXML implements the new ArrayIterator interface, this cannot be done with PHP4. So, you cannot access a node's attributes with array syntax - you should always use the attributes() method. Also, if you dump a PHP4 SimpleXMLElement using print_r() or something, you will notice much more output compared to PHP5. This is because PHP4 does not know about private or protected object properties.


copyright:  Copyright (c) 2005 Ister.ORG Ingo Schramm
author:  Ingo Schramm


[ Top ]


Class Methods


constructor IsterSimpleXMLElement

IsterSimpleXMLElement IsterSimpleXMLElement( )

Constructor

[ Top ]

method attributes

array attributes( )

Return an array with all the nodes attributes.

[ Top ]

method CDATA

mixed CDATA( )

Return a nodes CDATA children as a single string.

return:  string or null if no CDATA exist
[ Top ]

method children

array children( )

Get the children of this SimpleXMLElement.

[ Top ]

method init

boolean init( object IsterXMLNode &$template)

Clone this from a given IsterXMLNode.

Parameters:

object IsterXMLNode   &$template  

[ Top ]

method setAttribute

array setAttribute( mixed $name, mixed $value)

Return an array with all the nodes attributes.

Overrides IsterXmlNode::setAttribute() (Add or alter an attribute.)

[ Top ]

method setCDATA

boolean setCDATA( string $text)

Add a CDATA node to this element.

Parameters:

string   $text  

[ Top ]


Documentation generated on Tue, 20 Dec 2005 11:21:08 +0100 by phpDocumentor 1.3.0RC4