Class XmlConfigDao

Description

class XmlConfigDao

This class defines a Data Access Object (DAO) to be created by the corresponding XmlDaoFactory and implements the ConfigDao interface.

This class contains all XML specific code and XPath statements. implementation details are hidden from the end user.

Located in /xmlconfigdao.class.php (line 22)

ConfigDao
   |
   --XmlConfigDao
Variable Summary
Method Summary
XmlConfigDao __construct (DomDocument &$DomDocument)
array GetElementsByPath (expression $expression)
ConfigDao GetInstance (DomDocument $DomDocument)
void SetElementByPath (expression $expression, data $data, fileName $fileName)
Variables
mixed $DomDocument (line 25)
  • access: private
mixed $XmlConfigDao (line 24)
  • static:
  • access: private
Methods
Constructor __construct (line 34)

function __construct

This method is executed when an object is instantiated from this class. Preprocessing can be done here before the object is put into service.

  • access: private
XmlConfigDao __construct (DomDocument &$DomDocument)
GetElementsByPath (line 65)

function GetElementsByPath

This method queries an XML document for a specific node(s) matching some criteria and returns a collection of elements and their associated values.

  • return: XML element value list
  • access: public
array GetElementsByPath (expression $expression)
  • expression $expression: XPath expression

Redefinition of:
ConfigDao::GetElementsByPath()
GetInstance (line 47)

function GetInstance

This method instantiates a new object from this class; more specifically, it's a singleton instance.

  • return: object instance
  • static:
  • access: public
ConfigDao GetInstance (DomDocument $DomDocument)
SetElementByPath (line 87)

function SetElementByPath

This method queries an XML document for a specific node(s) matching some criteria and replaces the original text content with new text content.

  • access: public
void SetElementByPath (expression $expression, data $data, fileName $fileName)
  • expression $expression: XPath expression
  • data $data: Data to write
  • fileName $fileName: XML file to save

Redefinition of:
ConfigDao::SetElementByPath()

Inherited Methods

Inherited From ConfigDao

ConfigDao::GetElementsByPath()
ConfigDao::SetElementByPath()

Documentation generated on Thu, 9 Sep 2004 09:03:41 -0400 by phpDocumentor 1.3.0RC3