Login   Register  
PHP Classes
elePHPant
Icontem

File: DESCRIPTION

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Arthur Tumanyan  >  shagaConfigurator  >  DESCRIPTION  >  Download  
File: DESCRIPTION
Role: Documentation
Content type: text/plain
Description: Description file
Class: shagaConfigurator
Get application options from configuration files
Author: By
Last change:
Date: 2007-06-28 03:41
Size: 788 bytes
 

Contents

Class file image Download
This class is a part of ShagaEngine.

What can you do with this class?

Imagine!You are writing a script and you need some configuration file to store there
the program options!
But you have not some free time to write a configuration file parser.
 
Using this class you can read your program options from  configuration file ((constructed as you wish) just modify/remove/add some entries in  source file and enjoy.) easy.
All data from configuration files will be stored in array called 'conf'.
For example,to get the value of variable 'redirect' in section 'direct'  just do 
<?
$myConfig = new shagaConfigurator();
echo $myConfig->conf['direct']['redirect'];
?>

This class  is a simple solution ,but i hope , it will be usefull.
Before modify anything,read carefully the source file.