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

Class: Config_Container_PHPArray

Source Location: /Config-1.10.3/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 34]
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[]. 'useAttr' => true Whether we render attributes



[ Top ]


Class Variables

$options = array('name' => 'conf',
                         'useAttr' => true)

[line 45]

This class options:

  • name of the config array to parse/output Ex: $options['name'] = 'myconf';
  • Whether to add attributes to the array Ex: $options['useAttr'] = false;


Type:   array


[ Top ]



Method Detail

Config_Container_PHPArray (Constructor)   [line 54]

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

Constructor
  • Access: public

Parameters:

string   $options     Options to be used by renderer

[ Top ]

parseDatasrc   [line 69]

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

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

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 Wed, 20 Oct 2004 00:10:13 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.