AdminLoginHelper.executeLogin ( Responseable responseInstance  ) 

Execute the login request by given response instance.

This instance can be used for sending cookies or at least the session id out.

Parameters:
$responseInstance An instance of a Responseable class
Returns:
void

Implements HelpableLogin.

Definition at line 98 of file class_AdminLoginHelper.php.

References ObjectFactory.createObjectByName(), Registry.getRegistry(), and BaseFrameworkSystem.getRequestInstance().

00098                                                                       {
00099                 // Get an instance from the login method
00100                 $loginInstance = ObjectFactory::createObjectByName($this->authMethod, array($responseInstance));
00101 
00102                 // Set user cookie
00103                 $loginInstance->setUserAuth($this->getRequestInstance()->getRequestElement('username'));
00104 
00105                 // Set password cookie
00106                 $loginInstance->setPasswordAuth($this->getRequestInstance()->getRequestElement('pass_hash'));
00107 
00108                 // Remember this login instance for later usage
00109                 Registry::getRegistry()->addInstance('login', $loginInstance);
00110         }

Here is the call graph for this function:


Generated on Mon Dec 8 01:07:13 2008 for Ship-Simulator by  doxygen 1.5.6