changeBackend() public static method

Change the currently active backend.
public static changeBackend ( string $key )
$key string The ID of the backend to set as active.
Beispiel #1
0
 /**
  * Validates an existing authentication.
  *
  * @return boolean  Whether the authentication is still valid.
  */
 public function authValidate()
 {
     if (($backend_key = Horde_Util::getFormData('backend_key')) && $backend_key != $GLOBALS['session']->get('gollem', 'backend_key')) {
         Gollem_Auth::changeBackend($backend_key);
     }
     return !empty(Gollem::$backend['auth']);
 }