Source for file Registry.php
Documentation is available at Registry.php
* "THE BEER-WARE LICENSE" (Revision 42):
* "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
* As long as you retain this notice you can do whatever you want with
* this stuff. If we meet some day, and you think this stuff is worth it,
* you can buy me a beer in return.
* @copyright Copyright (c) 2007 Sven Strittmatter
* Enter description here...
* @todo complete description
* @copyright Copyright (c) 2007 Sven Strittmatter
* @author "Sven Strittmatter" <ausserirdisch@sven-space.de>
* @link http://www.sven-space.de/code/php/MVClasses
const KEY_REQUEST = "request";
const KEY_RESPONSE = "response";
protected static $_instance;
$this->_set(self::KEY_REQUEST, $r);
return $this->_get(self::KEY_REQUEST);
$this->_set(self::KEY_RESPONSE, $r);
return $this->_get(self::KEY_RESPONSE);
if (null === self::$_instance) {
self::$_instance = new Registry();
protected function _set($key, $value) {
protected function _get($key) {
|