Login   Register  
PHP Classes
elePHPant
Icontem

Class: Config

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of M.C. van der Most van Spijk  >  Config  >  Download .tar.gz .zip  >  Support forum Support forum  >  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
Related classes: , , ,
Version: -
PHP version: 5
License: MIT/X Consortium License
All time users: 827 users
All time rank: 3383
Week users: 3 users
Week rank: 1223
Picture of M.C. van der Most van Spijk
Author: M.C. van der Most van Spijk <e-mail contact>
Packages: 2 Browse this author's classes Browse this author's classes
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 35
All time rank: 109836 in The Netherlands The Netherlands
Week rank: 829 Up24 in The Netherlands The Netherlands Up


  Detailed description  
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');

 

  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

  Rate classes User ratings   Applications   Files Files  

  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
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.