class UserSettingsController extends AbstractModuleController (View source)

The Neos User Settings module controller

Traits

A trait to do easy backend module translations

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<string,mixed> $moduleConfiguration from  AbstractModuleController
protected $translator from  ModuleTranslationTrait
protected PrivilegeManagerInterface $privilegeManager
protected UserService $domainUserService
protected $currentUser

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

false
getErrorFlashMessage()

Display no flash message at all on errors.

string
getModuleLabel(string $id, array $arguments = [])

No description

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 false getErrorFlashMessage()

Display no flash message at all on errors.

Return Value

false

string getModuleLabel(string $id, array $arguments = [])

No description

Parameters

string $id
array $arguments

Return Value

string

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