PHP Classes

File: doc.txt

Recommend this page to a friend!
  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: 14 years ago
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.