Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Session / Container / PhpReferenceCompatibility.php
bloba332c30dd8a24f776939167c818867eb6d8cbf19
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Session\Container;
12 use Zend\Session\AbstractContainer;
14 /**
15 * Session storage container for PHP 5.3.4 and above.
17 abstract class PhpReferenceCompatibility extends AbstractContainer
19 /**
20 * Retrieve a specific key in the container
22 * @param string $key
23 * @return mixed
25 public function &offsetGet($key)
27 $ret = null;
28 if (!$this->offsetExists($key)) {
29 return $ret;
31 $storage = $this->getStorage();
32 $name = $this->getName();
33 $ret =& $storage[$name][$key];
35 return $ret;