AjaxLogin Class Reference

List of all members.

Public Member Functions

 login (array $parameters, TYPO3AJAX $ajaxObj)
 logout (array $parameters, TYPO3AJAX $ajaxObj)
 refreshLogin (array $parameters, TYPO3AJAX $ajaxObj)
 isTimedOut (array $parameters, TYPO3AJAX $ajaxObj)
 getChallenge (array $parameters, TYPO3AJAX $parent)

Detailed Description

This is the ajax handler for backend login after timeout.

Author:
Christoph Koehler <christoph@webempoweredchurch.org>

Definition at line 32 of file class.ajaxlogin.php.


Member Function Documentation

AjaxLogin::getChallenge ( array $  parameters,
TYPO3AJAX parent 
)

Gets a MD5 challenge.

Parameters:
array $parameters: Parameters (not used)
TYPO3AJAX $parent: The calling parent AJAX object
Returns:
void

Definition at line 125 of file class.ajaxlogin.php.

References TYPO3AJAX::addContent(), and TYPO3AJAX::setContentFormat().

AjaxLogin::isTimedOut ( array $  parameters,
TYPO3AJAX ajaxObj 
)

Checks if the user session is expired yet

Parameters:
array $parameters: Parameters (not used)
TYPO3AJAX $ajaxObj: The calling parent AJAX object
Returns:
void

Definition at line 94 of file class.ajaxlogin.php.

References $ajaxObj, $GLOBALS, and login().

AjaxLogin::login ( array $  parameters,
TYPO3AJAX ajaxObj 
)

Handles the actual login process, more specifically it defines the response. The login details were sent in as part of the ajax request and automatically logged in the user inside the init.php part of the ajax call. If that was successful, we have a BE user and reset the timer and hide the login window. If it was unsuccessful, we display that and show the login box again.

Parameters:
array $parameters: Parameters (not used)
TYPO3AJAX $ajaxObj: The calling parent AJAX object
Returns:
void

Definition at line 45 of file class.ajaxlogin.php.

References $ajaxObj, and $GLOBALS.

Referenced by isTimedOut().

AjaxLogin::logout ( array $  parameters,
TYPO3AJAX ajaxObj 
)

Logs out the current BE user

Parameters:
array $parameters: Parameters (not used)
TYPO3AJAX $ajaxObj: The calling parent AJAX object
Returns:
void

Definition at line 62 of file class.ajaxlogin.php.

References $ajaxObj, and $GLOBALS.

AjaxLogin::refreshLogin ( array $  parameters,
TYPO3AJAX ajaxObj 
)

Refreshes the login without needing login information. We just refresh the session.

Parameters:
array $parameters: Parameters (not used)
TYPO3AJAX $ajaxObj: The calling parent AJAX object
Returns:
void

Definition at line 80 of file class.ajaxlogin.php.

References $ajaxObj, and $GLOBALS.


The documentation for this class was generated from the following file:
Generated on Sat Jul 24 04:17:48 2010 for TYPO3 API by  doxygen 1.4.7