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'
)
:
void
Constructor, pass in the smarty template, the bean and the viewtype
Parameters
Name | Type | Description |
---|---|---|
$smarty | ||
$bean | ||
$viewType |
setUserType(
Mixed $user
)
:
String
setUserType 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(
)
:
void
This function populates the smarty class that was passed in through the constructor