Config
[ class tree: Config ] [ index: Config ] [ all elements ]

Class: Config_Container_XML

Source Location: /Config-1.10.12/Config/Container/XML.php

Class Overview

XML_Parser
   |
   --Config_Container_XML

Config parser for XML Files


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 29]
Config parser for XML Files


[ Top ]


Class Variables

$containers = array()

[line 68]

Container objects

Type:   array


[ Top ]

$options = array('version'   => '1.0',
                         'encoding'  => 'ISO-8859-1',
                         'name'      => '',
                         'indent'    => '  ',
                         'linebreak' => "\n",
                         'addDecl'   => true,
                         'useAttr'   => true,
                         'isFile'    => true,
                         'useCData'  => false)

[line 53]

This class options:

version (1.0) : XML version encoding (ISO-8859-1) : XML content encoding name : like in phparray, name of your config global entity indent : char used for indentation linebreak : char used for linebreak addDecl : whether to add the xml declaration at beginning or not useAttr : whether to use the attributes isFile : whether the given content is a file or an XML string useCData : whether to surround data with <![CDATA[...]]>


Type:   array


[ Top ]



Method Detail

Config_Container_XML (Constructor)   [line 84]

Config_Container_XML Config_Container_XML( [string $options = array()])

Constructor
  • Access: public

Parameters:

string   $options     Options to be used by renderer version : (1.0) XML version encoding : (ISO-8859-1) XML content encoding name : like in phparray, name of your config global entity indent : char used for indentation linebreak : char used for linebreak addDecl : whether to add the xml declaration at beginning or not useAttr : whether to use the attributes isFile : whether the given content is a file or an XML string

[ Top ]

cdataHandler   [line 170]

void cdataHandler( $xp, $cdata)


Parameters:

   $xp     
   $cdata     

[ Top ]

parseDatasrc   [line 99]

mixed &parseDatasrc( string $datasrc, &$obj, object $obj)

Parses the data of the given configuration file
  • Return: returns a PEAR_ERROR, if error occurs or true if ok
  • Access: public

Parameters:

string   $datasrc     path to the configuration file
object   $obj     reference to a config object
   &$obj     

[ Top ]

toString   [line 181]

string toString( &$obj, object $obj)

Returns a formatted string of the object
  • Access: public

Parameters:

object   $obj     Container object to be output as string
   &$obj     

[ Top ]


Documentation generated on Fri, 24 Dec 2010 08:30:06 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.