root/tags/RELEASE_0_2_0/examples/Registry.php

Revision 89, 0.6 kB (checked in by mikey, 2 years ago)

added integration tests using the existing examples

Line 
1 <?php
2 /**
3  * Very simple registry class
4  *
5  * @author      Stephan Schmidt <stephan.schmidt@schlund.de>
6  * @author      Frank Kleine <mikey@xjconf.net>
7  * @package     XJConfForPHP
8  * @subpackage  examples
9  */
10 /**
11  * Very simple registry class
12  *
13  * @package     XJConfForPHP
14  * @subpackage  examples
15  */
16 class Registry {
17     protected static $values = array();
18
19     public static function setFoo($foo) {
20         self::$values['foo'] = $foo;
21     }
22
23     public static function setBar($bar) {
24         self::$values['bar'] = $bar;
25     }
26
27     public static function export() {
28         return self::$values;
29     }
30 }
31 ?>
Note: See TracBrowser for help on using the browser.