Abstract Class myMVC_BaseLoginAction

Description

Action-class to manage a login system.

User should derive this class to implement an own action for the login page.

  • abstract:

Located in /myMVC/BaseLoginAction.php (line 28)

myMVC_BasePage
   |
   --myMVC_BaseAction
      |
      --myMVC_BaseLoginAction
Method Summary
 static string getActionToken ()
 static boolean hasUserRightForAction ()
 void setNextAction (myMVC_HttpResponse $response)
Variables
Methods
static getActionToken (line 37)

Returns the token used to identify the current Action

  • return: The token
  • access: public
string getActionToken ()

Redefinition of:
myMVC_BaseAction::getActionToken()
Returns the token used to identify the current Action
static hasUserRightForAction (line 47)

Returns whether the current user is allowed to call the current Action

  • return: true if the user may call this Action, false otherwise
  • access: public
boolean hasUserRightForAction ()

Redefinition of:
myMVC_BaseAction::hasUserRightForAction()
Returns whether the current user is allowed to call the current Action
setLoggedIn (line 63)

Save the user in the session.

User is now logged in.

  • throws: myMVC_MVCException On problems
  • access: protected
void setLoggedIn (myMVC_BaseLogin $user)
  • myMVC_BaseLogin $user: The user (it must be a derived class of myMVC_BaseLogin)
setNextAction (line 85)

Sets the next action after a successfully login.

If the user tried to call another action, after a successfull login it must be redirected to this action. Otherwise to the default action.

  • access: protected
void setNextAction (myMVC_HttpResponse $response)

Inherited Methods

Inherited From myMVC_BaseAction

 myMVC_BaseAction::__construct()
 myMVC_BaseAction::getActionMenuName()
 myMVC_BaseAction::getActionMenuPosition()
 myMVC_BaseAction::getActionToken()
 myMVC_BaseAction::getCSSClass()
 myMVC_BaseAction::getNumber()
 myMVC_BaseAction::getRenderEngine()
 myMVC_BaseAction::hasUserRightForAction()
 myMVC_BaseAction::isCalledFromMenu()
 myMVC_BaseAction::isComingFromView()
 myMVC_BaseAction::isMenuAction()
 myMVC_BaseAction::manageInvalidData()
 myMVC_BaseAction::perform()
 myMVC_BaseAction::saveRenderEngine()
 myMVC_BaseAction::setCheckFunction()
 myMVC_BaseAction::validate()
 myMVC_BaseAction::validateInput()

Inherited From myMVC_BasePage

 myMVC_BasePage::__construct()
 myMVC_BasePage::getFromPreviousSubmit()
 myMVC_BasePage::getInvalidFromPreviousSubmit()
 myMVC_BasePage::getLoggedUser()
 myMVC_BasePage::getParameterErrors()
 myMVC_BasePage::getParameterFromPreviousPage()
 myMVC_BasePage::isParameterFromPreviousSubmitValid()
 myMVC_BasePage::saveParameterForNextPage()

Documentation generated on Sat, 25 Apr 2015 21:21:53 +0200 by phpDocumentor 1.4.4