/** * Change the currently active backend. * * @param string $key The ID of the backend to set as active. */ public static function changeBackend($key) { $GLOBALS['session']->set('gollem', 'backend_key', $key); Gollem::$backend = self::getBackend($key); }