class UserSettingsController extends AbstractModuleController (View source)

The Neos User Settings module controller

Traits

A trait to add backend translation based on the backend users settings

Properties

protected Service $_localizationService from  BackendUserTranslationTrait
protected UserService $_userService from  BackendUserTranslationTrait
protected array $moduleConfiguration from  AbstractModuleController
protected PrivilegeManagerInterface $privilegeManager
protected UserService $userService
protected User $currentUser
protected Translator $translator

Methods

void
initializeObject()

Set the locale according to the user settings

void
initializeAction()

No description

void
initializeView(ViewInterface $view)

No description

void
setTitle(string $title)

Use this method to set an alternative title than the module label

void
indexAction()

Index

Message
getErrorFlashMessage()

Display no flash message at all on errors.

void
editAction()

Edit settings of the current user

void
updateAction(User $user)

Update the current user

void
editAccountAction(Account $account)

Edit the given account

void
updateAccountAction(array $password = [])

Update a given account, ie. the password

void
newElectronicAddressAction(User $user)

The add new electronic address action

void
createElectronicAddressAction(User $user, ElectronicAddress $electronicAddress)

Create an new electronic address

void
deleteElectronicAddressAction(User $user, ElectronicAddress $electronicAddress)

Delete an electronic address action

void

Details

protected void initializeObject()

Set the locale according to the user settings

Return Value

void

protected void initializeAction()

No description

Return Value

void

protected void initializeView(ViewInterface $view)

No description

Parameters

ViewInterface $view

Return Value

void

void setTitle(string $title)

Use this method to set an alternative title than the module label

Parameters

string $title

Return Value

void

void indexAction()

Index

Return Value

void

protected Message getErrorFlashMessage()

Display no flash message at all on errors.

Return Value

Message

returns false

void editAction()

Edit settings of the current user

Return Value

void

void updateAction(User $user)

Update the current user

Parameters

User $user

The user to update, including updated data already (name, email address etc)

Return Value

void

void editAccountAction(Account $account)

Edit the given account

Parameters

Account $account

Return Value

void

void updateAccountAction(array $password = [])

Update a given account, ie. the password

Parameters

array $password

Expects an array in the format array('', '')

Return Value

void

void newElectronicAddressAction(User $user)

The add new electronic address action

Parameters

User $user

Return Value

void

void createElectronicAddressAction(User $user, ElectronicAddress $electronicAddress)

Create an new electronic address

Parameters

User $user
ElectronicAddress $electronicAddress

Return Value

void

void deleteElectronicAddressAction(User $user, ElectronicAddress $electronicAddress)

Delete an electronic address action

Parameters

User $user
ElectronicAddress $electronicAddress

Return Value

void

protected void assignElectronicAddressOptions()

No description

Return Value

void