modules/Users/UserViewHelper.php
\UserViewHelper
Package: SugarCRM
This helper handles the rest of the fields for the Users Edit and Detail views.
There are a lot of fields on those views that do not map directly to being used on the metadata based UI, so they are handled here.
Properties

string
$usertype= ''
The current user type One of: REGULAR ADMIN GROUP PORTAL_ONLY
Details
- Type
- string
Methods

__construct(
$smarty, $bean, $viewType
=
'EditView'
)
:
voidConstructor, pass in the smarty template, the bean and the viewtype
Parameters
| Name | Type | Description |
|---|---|---|
| $smarty | ||
| $bean | ||
| $viewType |

setUserType(
Mixed $user
)
:
StringsetUserType This function is used to set the user_type variable for a given User instance
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $user | Mixed | The user instance to set the user_type variable on |
| Type | Description |
|---|---|
| String | value representing the user type |

setupAdditionalFields(
)
:
voidThis function populates the smarty class that was passed in through the constructor