Beispiel #1
0
 /**
  * Returns an instance of __CLASS__
  *
  * Singleton pattern implementation
  *
  * @param  array|Zend_Config|null $options (Optional) Options to set
  * @return __CLASS__ Provides a fluent interface
  */
 public static function getInstance($options = null)
 {
     if (self::$_instance === null) {
         self::$_instance = new self($options);
     }
     return self::$_instance;
 }