UserConfigurationFormAdapter Class Reference

Static Public Member Functions

static makeFormFromUserConfigurationByUser (User $user)
static setConfigurationFromForm (UserConfigurationForm $form, User $user)
static setConfigurationFromFormForCurrentUser (UserConfigurationForm $form)
static resolveAndGetValue (User $user, $key, $returnBoolean=true)
static setValue (User $user, $value, $key, $saveBoolean=true)
static resolveAndGetDefaultPermissionSetting (User $user)
static setDefaultPermissionGroupSetting (User $user, $value, $defaultPermissionSetting)
static getVisibleAndOrderedTabMenuItemsByUser ($user, $selected=false)

Detailed Description

Class to adapt a user's configuration values into a configuration form. Saves global values from a configuration form.

Definition at line 41 of file UserConfigurationFormAdapter.php.


Member Function Documentation

static makeFormFromUserConfigurationByUser ( User user  )  [static]
Returns:
UserConfigurationForm

Definition at line 46 of file UserConfigurationFormAdapter.php.

static setConfigurationFromForm ( UserConfigurationForm form,
User user 
) [static]

Given a UserConfigurationForm and user, save the configuration values for the specified user.

Definition at line 70 of file UserConfigurationFormAdapter.php.

static setConfigurationFromFormForCurrentUser ( UserConfigurationForm form  )  [static]

Given a UserConfigurationForm save the configuration values for the current user and load values as active.

Definition at line 101 of file UserConfigurationFormAdapter.php.

static resolveAndGetValue ( User user,
key,
returnBoolean = true 
) [static]
Parameters:
User $user
string$key 
bool $returnBoolean
Returns:
bool|configuration

Definition at line 116 of file UserConfigurationFormAdapter.php.

static resolveAndGetDefaultPermissionSetting ( User user  )  [static]
Parameters:
User $user
Returns:
configuration

Definition at line 137 of file UserConfigurationFormAdapter.php.

static setDefaultPermissionGroupSetting ( User user,
value,
defaultPermissionSetting 
) [static]
Parameters:
User $user
int $value
int $defaultPermissionSetting

Definition at line 156 of file UserConfigurationFormAdapter.php.

static getVisibleAndOrderedTabMenuItemsByUser ( user,
selected = false 
) [static]
Parameters:
$user 
bool $selected
Returns:
array

Definition at line 177 of file UserConfigurationFormAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Jun 25 07:10:31 2017