Exemplo n.º 1
0
 /**
  * creates singleton instance and passes all options to class constructor
  *
  * @see Xapp_Console::__construct
  * @error 10902
  * @param null|string $driver expects the driver string to load
  * @param array $options expects an driver dependent option array
  * @return null|Xapp_Console
  */
 public static function instance($driver = null, array $options = array())
 {
     if (self::$_instance === null) {
         self::$_instance = new self($driver, $options);
     }
     return self::$_instance;
 }