Login   Register  
PHP Classes
elePHPant
Icontem

Config

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of M.C. van der Most van Spijk
Name: M.C. van der Most van ... <e-mail contact>
Packages: 2 Browse all classes by M.C. van der Most van Spijk Browse all classes by
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 36
All time rank: 107134 in The Netherlands The Netherlands
Week rank: 556 Up18 in The Netherlands The Netherlands Up


  Detailed description   Download .zip .tar.gz  
This class can be used to retrieve configuration values from INI files in XPath style.

It can open an INI format file given a path that includes the base name, section and setting that you want retrieve.

The class parses the file and returns the specified setting value.

The singleton pattern is used to keep a cache of previously parsed INI files in case multiple setting values need to be retrieved.

Example:
$conf = Config::singelton('myconf.ini');
$setting = $conf->getSetting('myconf/email/cc');

  Classes of M.C. van der Most van Spijk  >  Config  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Config
Base name: mickious_config
Description: Get config values from INI files XPath style
Version: -
PHP version: 5
License: MIT/X Consortium License
All time users: 958 users
All time rank: 3297
Week users: 1 user
Week rank: 2100 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Configuration Configuration formats parsing and generation View top rated classes


  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file Config.class.php Class Config class
Accessible without login Plain text file example.php Example Example of use

Download all files: mickious_config.tar.gz mickious_config.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.