Class MVCnPHP_XMLLoader

Description

This loader creates a mapping from an XML file

Located in /XMLLoader.php (line 33)

MVCnPHP_BaseLoader
   |
   --MVCnPHP_XMLLoader
Class Constant Summary
 COMMANDS = 'COMMAND'
 VIEWS = 'VIEW'
Variable Summary
array $arrayData
array $dom
Method Summary
MVCnPHP_XMLLoader __construct (string $xmlString)
array getArrayData ()
object Mapping getMapping (string $name, mixed $viewsDir, mixed $commandsDir, mixed $baseURL, [array $arrayData = ''])
array parseSection (string $section)
void xmlToArray ()
Variables
array $arrayData = null (line 46)

Holds array representation of XML config file

  • access: protected

Redefinition of:
MVCnPHP_BaseLoader::$arrayData
array $dom = null (line 39)

Handle to an XML DOM

  • access: protected
Methods
Constructor __construct (line 62)

Constructor

Initializes object properties and, if the XML has been supplied it will parse it immediately instead of waiting for an explicit call to parseXML

MVCnPHP_XMLLoader __construct (string $xmlString)
  • string $xmlString: XML to parse
getArrayData (line 181)

Gets the array representation of MVC XML configuration

  • return: Array representation of MVC configuration
  • access: public
  • author: Tony Bibbs <tony@geeklog.net>
array getArrayData ()
getMapping (line 79)

Gets config data for given object in the form of a mapping object

  • return: object
  • access: public
  • todo: should probably scan $this->arrayData for potentially harmful PHP
  • author: Tony Bibbs <tony@geeklog.net>
object Mapping getMapping (string $name, mixed $viewsDir, mixed $commandsDir, mixed $baseURL, [array $arrayData = ''])
  • string $name: Name of object to get mapping for
  • array $arrayData: Array of configuration data

Redefinition of:
MVCnPHP_BaseLoader::getMapping()
Gets config data for given object in the form of a mapping object
parseSection (line 138)

Parses a section of the XML configuration

  • return: Array representation of the XML for the given section
  • access: private
  • author: Tony Bibbs <tony@geeklog.net>
array parseSection (string $section)
  • string $section: Use one of the two class constants for this value
xmlToArray (line 118)

Converts the MVC XML configuration into an array

void xmlToArray ()

Inherited Methods

Inherited From MVCnPHP_BaseLoader

MVCnPHP_BaseLoader::getDefaultMapping()
MVCnPHP_BaseLoader::getForwards()
MVCnPHP_BaseLoader::getMapping()
Class Constants
COMMANDS = 'COMMAND' (line 49)
VIEWS = 'VIEW' (line 48)

Documentation generated on Mon, 7 Mar 2005 22:36:23 -0600 by phpDocumentor 1.3.0RC3