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

Class: Config_Container_PHPArray

Source Location: /Config-1.6/Config/Container/PHPArray.php

Class Overview


Config parser for common PHP configuration array such as found in the horde project.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]
Config parser for common PHP configuration array such as found in the horde project.

Options expected is: 'name' => 'conf' Name of the configuration array. Default is $conf[].



[ Top ]


Class Variables

$options = array()

[line 41]

This class options:
  • name of the config array to parse/output Ex: $options['name'] = 'myconf';


Type:   array


[ Top ]



Method Detail

Config_Container_PHPArray (Constructor)   [line 49]

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

Constructor
  • Access: public

Parameters:

string   $options     (optional)Options to be used by renderer

[ Top ]

parseDatasrc   [line 62]

mixed &parseDatasrc( string $datasrc, 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

[ Top ]

toString   [line 146]

string toString( object &$obj)

Returns a formatted string of the object
  • Access: public

Parameters:

object   $obj     Container object to be output as string

[ Top ]

writeDatasrc   [line 243]

string writeDatasrc( mixed $datasrc, string &$obj)

Writes the configuration to a file
  • Access: public

Parameters:

mixed   $datasrc     datasrc info on datasource such as path to the configuraton file
string   &$obj     configType (optional)type of configuration

[ Top ]


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