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

Class: Config_Container_wddx

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

Class Overview

Config_Container
   |
   --Config_Container_wddx

Config-API-Implemtentation for wddx Files


Author(s):

Version:

  • $Id: wddx.php,v 1.2 2002/05/21 13:43:38 rashid Exp $

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 35]
Config-API-Implemtentation for wddx Files

This class implements the Config-API based on ConfigDefault

  • Version: $Id: wddx.php,v 1.2 2002/05/21 13:43:38 rashid Exp $
  • Access: public
  • Author: Robert Janeczek <mailto:rashid@ds.pg.gda.pl>


[ Top ]


Method Detail

convertForOutput   [line 139]

array convertForOutput( )

converts Config`s internal data structure to raw wddx data

Makes exacly the opposite of convertFromInput to prepare configuration data for writing back to file


[ Top ]

convertFromInput   [line 105]

void convertFromInput( string $data, [array $level = ''])

converts raw wddx data to Config`s internal data structure

Data is raw wddx file content - a string Level contains start path for recursive calls


Parameters:

string   $data     wddx data
array   $level     actual path for recursion

[ Top ]

parseInput   [line 48]

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. No features available for now, this argument is ignored

  • 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 ]

writeInput   [line 77]

object PEAR_Error writeInput( [string $datasrc = ""], [boolean $preserve = true])

writes the data to the given data source or if not given to the datasource of parseInput If $datasrc was a array, the last file will used.

See parseInput for $datasrc. The second argument $preserve is ignored


Overrides Config_Container::writeInput() (writes the data to the given data source or if not given to the datasource of parseInput)

Parameters:

string   $datasrc     Name of the datasource to parse
boolean   $preserve     preserving behavior

[ Top ]


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