Esempio n. 1
0
 /**
  * 
  * Set the currently selected database instance, will be used
  * for subsequent operations of this helper class, until
  * another one is selected
  * 
  * @param string $name name of database instance to select
  * @throws CliExceptionDefault
  */
 public static function selectDb($name = 'default')
 {
     if (empty($name) || empty(self::$_instances[$name])) {
         throw new Sh404sefExceptionDefault('Trying to select a database that has not been set: ' . $name);
     }
     self::$_selected = $name;
 }