/** * Selects a different database for the Facade to work with. * * @param string $key Key of the database to select * @return int 1 */ public static function selectDatabase($key) { if (self::$currentDB === $key) { return false; } self::configureFacadeWithToolbox(self::$toolboxes[$key]); self::$currentDB = $key; return true; }