Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Config.php File Reference


Detailed Description

Provides configuration system via file system.

Todo:
Read /etc/freebeer.xml, write to /var/etc/freebeer.php

Definition in file Config.php.

Go to the source code of this file.

Functions

 fbConfig ()
getInstance ()
 getConf ()
 getFile ()
 setFile ($file)
 reset ()
 read ()
 getSection (&$obj, $path=null)
 _setupWrite ()
 write ()
 __writeAll ($config)

Variables

 $GLOBALS ['CONFIG_TYPES']['xml']


Function Documentation

__writeAll config  )  [static]
 

Returns:
bool

Definition at line 352 of file Config.php.

References _setupWrite(), and write().

Referenced by read(), and write().

_setupWrite  )  [static]
 

Returns:
void

Definition at line 251 of file Config.php.

Referenced by __writeAll(), and write().

fbConfig  ) 
 

Constructor

Returns:
void

Definition at line 59 of file Config.php.

References setFile().

Referenced by fbADONewConnection(), and getInstance().

getConf  ) 
 

Returns:
string

Definition at line 82 of file Config.php.

getFile  ) 
 

Returns:
string

Definition at line 89 of file Config.php.

& getInstance  )  [static]
 

Returns:
object

Definition at line 69 of file Config.php.

References fbConfig().

Referenced by fbHTTPS::fbHTTPS().

getSection &$  obj,
path = null
[static]
 

TODO:

NO! Use same function names as PEARs Config object getObjectConfig(&$obj); getConfig(); // entire config hash ($conf) getConfig($key); // config hash for key $key ($conf[$key]) getConfig(array($key1, $key2)); // config hash for keys $key1, $key2 ($conf[$key][$key2])

Returns:
bool

Definition at line 202 of file Config.php.

References read().

read  )  [static]
 

Returns:
bool

Definition at line 114 of file Config.php.

References __writeAll(), and read().

Referenced by getSection(), and read().

reset  ) 
 

Returns:
bool

Definition at line 105 of file Config.php.

Referenced by fbArray::getNestedKey(), and fbBinarySearch_File::setCompareFunction().

setFile file  ) 
 

Parameters:
$file string
Returns:
void

Definition at line 97 of file Config.php.

Referenced by fbConfig().

write  )  [static]
 

Returns:
bool

Definition at line 262 of file Config.php.

References __writeAll(), _setupWrite(), and write().

Referenced by __writeAll(), and write().


Variable Documentation

$GLOBALS['CONFIG_TYPES']['xml']
 

Initial value:

 array(
    FREEBEER_BASE . /lib/Config/Container/XML.php,
    fbConfig_Container_XML
)

Definition at line 22 of file Config.php.


Generated on Fri Mar 19 12:52:28 2004 for Freebeer by doxygen 1.3.6-20040222