Exemplo n.º 1
0
 /**
  * creates singleton instance for this class passing options to constructor
  *
  * @error 11102
  * @param null|mixed $options expects valid option object
  * @return null|Xapp_Registry
  */
 public static function instance($options = null)
 {
     if (self::$_instance === null) {
         self::$_instance = new self($options);
     }
     return self::$_instance;
 }
Exemplo n.º 2
0
 public function getRegistry($namespace)
 {
     return Xapp_Registry::instance(array(Xapp_Registry::DEFAULT_NS => $namespace));
 }