From 907ce8c044159ca8da6ccce3ec5362ac61e7c142 Mon Sep 17 00:00:00 2001 From: yehudah Date: Mon, 25 Nov 2019 07:50:30 +0000 Subject: deleted by mistake --- Postman/Postman-Mail/Zend-1.12.10/Registry.php | 209 ------------------------- 1 file changed, 209 deletions(-) delete mode 100644 Postman/Postman-Mail/Zend-1.12.10/Registry.php (limited to 'Postman/Postman-Mail/Zend-1.12.10/Registry.php') diff --git a/Postman/Postman-Mail/Zend-1.12.10/Registry.php b/Postman/Postman-Mail/Zend-1.12.10/Registry.php deleted file mode 100644 index 1506700..0000000 --- a/Postman/Postman-Mail/Zend-1.12.10/Registry.php +++ /dev/null @@ -1,209 +0,0 @@ -offsetExists($index)) { - require_once 'Zend/Exception.php'; - throw new Postman_Zend_Exception("No entry is registered for key '$index'"); - } - - return $instance->offsetGet($index); - } - - /** - * setter method, basically same as offsetSet(). - * - * This method can be called from an object of type Postman_Zend_Registry, or it - * can be called statically. In the latter case, it uses the default - * static instance stored in the class. - * - * @param string $index The location in the ArrayObject in which to store - * the value. - * @param mixed $value The object to store in the ArrayObject. - * @return void - */ - public static function set($index, $value) - { - $instance = self::getInstance(); - $instance->offsetSet($index, $value); - } - - /** - * Returns TRUE if the $index is a named value in the registry, - * or FALSE if $index was not found in the registry. - * - * @param string $index - * @return boolean - */ - public static function isRegistered($index) - { - if (self::$_registry === null) { - return false; - } - return self::$_registry->offsetExists($index); - } - - /** - * Constructs a parent ArrayObject with default - * ARRAY_AS_PROPS to allow acces as an object - * - * @param array $array data array - * @param integer $flags ArrayObject flags - */ - public function __construct($array = array(), $flags = parent::ARRAY_AS_PROPS) - { - parent::__construct($array, $flags); - } - - /** - * @param string $index - * @returns mixed - * - * Workaround for http://bugs.php.net/bug.php?id=40442 (ZF-960). - */ - public function offsetExists($index) - { - return array_key_exists($index, $this); - } - -} -- cgit v1.2.3