Universally Accessible Data in PHP - Round 2

Posed under PHP on January 1, 2010.

Article

Comments

Post

Adam

Jan 01 2010

Hey, I went a ran with the idea and created an 'overwrite' extension on set() and then a copy function.

http://dev.decafproductions.com/tree/global-data/trunk/00002/

Look at data.class.php for the class and test.php for examples.

- Adam

Evan Byrne

Jan 01 2010

Not bad, but you have to make everything static if you want to be able to use it everywhere.

Adam

Jan 01 2010

Ok, it's nothing major, but here are some examples for setting and getting many (key, value) pairs.

http://dev.decafproductions.com/tree/global-data/trunk/00003/

Post Comment

Capcha