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

Class: Config_Container_xml

Source Location: /Config-0.3.1/Config/Container/xml.php

Class Overview

Config_Container
   |
   --Config_Container_xml

Config-API-Implemtentation for XML-Files


Author(s):

Version:

  • Config_xml.php, 2000/04/16

Variables

Methods


Inherited Variables

Inherited Methods

Class: Config_Container

Config_Container::getBlocks()
returns the name of all childblocks
Config_Container::getValue()
returns the value of the key in the given block
Config_Container::getValues()
returns all key-value-pairs of the given block
Config_Container::parseInput()
parses the input of the given data source
Config_Container::setFeatures()
Imports the requested datafields as object variables if allowed
Config_Container::setValue()
sets the value of the key in the given block
Config_Container::writeInput()
writes the data to the given data source or if not given to the datasource of parseInput

Class Details

[line 34]
Config-API-Implemtentation for XML-Files

This class implements the Config-API based on ConfigDefault



[ Top ]


Class Variables

$allowed_options = array()

[line 50]


Type:   mixed


[ Top ]

$feature = array ("IncludeContent" => True,
        "MasterAttribute" => False,
        "IncludeMasterAttribute" => True,
        "IncludeChildren" => True,
        "KeyAttribute" => False      
    )

[line 41]

contains the features given by parseInput

Type:   array


[ Top ]

$tagname =  "tagname"

[line 48]


Type:   mixed


[ Top ]



Method Detail

parseInput   [line 63]

mixed parseInput( [string $datasrc = ""], [array $feature = array()])

parses the input of the given data source

The Data Source is a file, so datasrc requires a existing file. The feature-array have to contain the comment char array("cc" => Comment char)

  • Return: returns a PEAR_ERROR, if error occurs
  • Access: public

Overrides Config_Container::parseInput() (parses the input of the given data source)

Parameters:

string   $datasrc     Name of the datasource to parse
array   $feature     Contains a hash of features

[ Top ]


Documentation generated on Fri, 30 Apr 2004 21:21:37 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.