Login   Register  
PHP Classes
elePHPant
Icontem

File: doc.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jason Hopkins  >  Singleton Registry  >  doc.txt  >  Download  
File: doc.txt
Role: Documentation
Content type: text/plain
Description: Class documentation and examples.
Class: Singleton Registry
Register key values in a singleton object
Author: By
Last change:
Date: 2010-05-18 12:25
Size: 471 bytes
 

Contents

Class file image Download
This registry class was designed based off of the KISS (Keep It Simple Stupid) principle. All you need to do is load the class and add variables to it as in the following example:

$reg = Registry::Load_Registry();
$reg->var = 'new_var';
echo isset('new_var');
$myvar = $reg->var;
unset('new_var');
echo isset('new_var');

More features, including automatic variable sanitation will be added soon.  If you have any suggestions/comments, feel free to let me know.