ini Class Reference

handles a configuration file with a very simple syntax keyword = value More...

List of all members.

Public Member Functions

 ini ($file, $config=null)
 read conf from file
 addConstant ($name, $value)
 add a new constant to current conf
 forceSaveFile ()
 delete file before saving it
 saveFile ()
 save this configuration to disk
 readFile ()
 read configuration file
 dumpConstants ()
 dump constants to STDOUT
 importConstants ()
 import constants as php constant
 completeFromDefault ()
 read configuration, deleting unknown variables, and creating missing one

Public Attributes

 $config
 description of fields, types, default_value
 $file
 file containing this configuration file
 $conf = array()
 array<string> containing the configuration
 $file_exists
 boolean to report success to the user


Detailed Description

handles a configuration file with a very simple syntax keyword = value


Member Function Documentation

ini::addConstant ( name,
value 
)

add a new constant to current conf

ini::completeFromDefault (  ) 

read configuration, deleting unknown variables, and creating missing one

ini::dumpConstants (  ) 

dump constants to STDOUT

ini::forceSaveFile (  ) 

delete file before saving it

ini::importConstants (  ) 

import constants as php constant

ini::ini ( file,
config = null 
)

read conf from file

the file will be read, and each constants will be exported as php constants

ini::readFile (  ) 

read configuration file

ini::saveFile (  ) 

save this configuration to disk


Member Data Documentation

ini::$conf = array()

array<string> containing the configuration

ini::$config

description of fields, types, default_value

ini::$file

file containing this configuration file

ini::$file_exists

boolean to report success to the user


The documentation for this class was generated from the following file:
Generated on Mon Feb 19 19:11:58 2007 for Wiclear by  doxygen 1.4.7