Class XmlConfigurationReader

Description

Implements interfaces:

XmlConfigurationReader reads the xml file.

Located in /ioc/readers/XmlConfigurationReader.php (line 23)

PropertyChecker
   |
   --ClassChecker
      |
      --Factory
         |
         --XmlConfigurationReader
Method Summary
 void __construct (string/array $configurations)
 void addObject (array $object)
 Object getObjectFromContainer (string $key)
 SimpleXMLElement getXml (string $filename)
 void isImport ( $node)
 void isObject (SimpleXmlElement $node)
 void iterateFile (string $filename)
 void read ()
Methods
Constructor __construct (line 32)

Constructor

  • access: public
void __construct (string/array $configurations)
  • string/array $configurations: Single configuration file location or multiple locations in an array

Redefinition of:
Factory::__construct()
addObject (line 138)

Start the proccess to add an object to the container

  • access: public
void addObject (array $object)
  • array $object: Custom array where is defined an object

Implementation of:
Reader::addObject()
getObjectFromContainer (line 148)

Start the proccess to retrieve an object from the container

  • access: public
Object getObjectFromContainer (string $key)
  • string $key: Id to retrieve the object

Implementation of:
Reader::getObjectFromContainer()
getXml (line 64)

Open the file and return the xml

  • access: public
SimpleXMLElement getXml (string $filename)
  • string $filename: Configuration file absolute location
isImport (line 91)
  • access: public
void isImport ( $node)
  • $node
isObject (line 106)

Instantiates a XmlObjectTag object and add it to the container

  • access: public
void isObject (SimpleXmlElement $node)
  • SimpleXmlElement $node: Xml object with the xml object definition
iterateFile (line 77)

Iterates the xml nodes from the configuration file

  • access: public
void iterateFile (string $filename)
  • string $filename: Configuration file absolute location
read (line 49)

Start reading xml definition file

  • access: public
void read ()

Implementation of:
Reader::read()

Inherited Methods

Inherited From Factory

 Factory::__construct()
 Factory::addObjectToContainer()
 Factory::cacheContainer()
 Factory::getObject()
 Factory::instanceContainer()
 Factory::isContainerCached()

Inherited From ClassChecker

 ClassChecker::__construct()
 ClassChecker::getClassName()
 ClassChecker::isCorrectClass()

Inherited From PropertyChecker

 PropertyChecker::__construct()
 PropertyChecker::propertyCheck()
 PropertyChecker::propertyFormat()

Documentation generated on Fri, 09 Sep 2011 22:05:59 +0000 by phpDocumentor 1.4.3