modules/Users/UserViewHelper.php

Show: inherited
Table of Contents

\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

Propertyprotected\SugarBean  $bean= ''

The bean that we are viewing.

Details
Type
\SugarBean
Propertyprotectedbool  $is_current_admin= ''

Is the current user an admin for the Users module

Details
Type
bool
Propertyprotectedbool  $is_super_admin= ''

Is the current user a system wide admin

Details
Type
bool
Propertyprotected\SugarSmarty  $ss= ''

The smarty template handler for the template

Details
Type
\SugarSmarty
Propertypublicstring  $usertype= ''

The current user type One of: REGULAR ADMIN GROUP PORTAL_ONLY

Details
Type
string
Propertyprotectedstring  $viewType= ''

What type of view we are looking at, valid values are 'EditView' and 'DetailView'

Details
Type
string

Methods

methodpublic__construct(  $smarty,  $bean,  $viewType = 'EditView' ) : void

Constructor, pass in the smarty template, the bean and the viewtype

Parameters
Name Type Description
$smarty
$bean
$viewType
methodprotectedassignUserTypes( ) : void

methodpublicsetUserType( Mixed $user ) : String

setUserType This function is used to set the user_type variable for a given User instance

Parameters
Name Type Description
$user Mixed

The user instance to set the user_type variable on

Returns
Type Description
String value representing the user type
methodpublicsetupAdditionalFields( ) : void

This function populates the smarty class that was passed in through the constructor

methodprotectedsetupAdvancedTab( ) : void

methodprotectedsetupAdvancedTabLocaleSettings( ) : void

methodprotectedsetupAdvancedTabNavSettings( ) : void

methodprotectedsetupAdvancedTabPdfSettings( ) : void

methodprotectedsetupAdvancedTabTeamSettings( ) : void

methodprotectedsetupAdvancedTabUserSettings( ) : void

methodprotectedsetupButtonsAndTabs( ) : void

methodprotectedsetupEmailSettings( ) : void

methodprotectedsetupPasswordTab( ) : void

methodprotectedsetupThemeTab( ) : void

methodpublicsetupUserTypeDropdown( ) : void

setupUserTypeDropdown

This function handles setting up the user type dropdown field. It determines which user types are available for the current user. At the end of the function two Smarty variables (USER_TYPE_DROPDOWN and USER_TYPE_READONLY) are assigned.

Documentation was generated by DocBlox 0.18.1.