UsersController

class UsersController

Package: Controller

property _publicActions

Actions that are accessible by anonymous users.

property _browseRecordsPerPage
init()
_handlePublicActions()

Peform common processing for the publicly accessible actions.

Set a view script variable for header and footer view scripts and don’t allow logged-in users access.

The script variables are set for actions in $_publicActions, so the scripts for those actions should use these variables.

forgotPasswordAction()

Send an email providing a link that allows the user to reset their password.

_sendResetPasswordEmail($toEmail, $activationCode)
Parameters:
  • $toEmail (unknown) –
  • $activationCode (unknown) –
activateAction()
addAction()
Returns:void
editAction()

Similar to ‘add’ action, except this requires a pre-existing record.

The ID For this record must be passed via the ‘id’ parameter.

Returns:void
_getDeleteSuccessMessage($record)
Parameters:
  • $record (unknown) –
_getDeleteConfirmMessage($record)
Parameters:
  • $record (unknown) –
sendActivationEmail(User $user)

Send an activation email to a new user telling them how to activate their account.

Parameters:
Returns:

boolean True if the email was successfully sent, false otherwise.

loginAction()
getLoginErrorMessages(Zend_Auth_Result $result)

This exists to customize the messages that people see when their attempt to login fails. ZF has some built-in default messages, but it seems like those messages may not make sense to a majority of people using the software.

Parameters:
  • $result (Zend_Auth_Result) –
Returns:

string

logoutAction()
_getUserForm(User $user)
Parameters:
_getLog()

Project Versions

Previous topic

UpgradeController

Next topic

Controllers/helpers

This Page