Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

PushDashboardUtil Class Reference

Static Public Member Functions

static canCurrentUserPushDashboardOrLayout ()
static pushDashboardToUsers (Dashboard $dashboard, $groupsAndUsers)
static pushUserHomeDashboardPortlets (User $user, Dashboard $userDashboard, Dashboard $pushedDashboard)
static resolveDefaultDashboardByUser (Dashboard $dashboard, User $user)
static resolveGroupsAndUsersFromPost ($postData)
static pushLayoutToUsers ($model, $groupsAndUsers)
static pushDetailsAndRelationsViewPortlets (User $user, $model)

Data Fields

const GROUP_PREFIX = 'Group_'
const USER_PREFIX = 'User_'
const HOME_DASHBOARD = 'HomeDashboard'
const DETAILS_AND_RELATIONS_VIEW = 'DetailsAndRelationsView'

Detailed Description

Supportive functions for push dashboard functionality

Definition at line 40 of file PushDashboardUtil.php.


Member Function Documentation

static canCurrentUserPushDashboardOrLayout (  )  [static]

Validates if current user has rights to push dashboard to users

Returns:
bool

Definition at line 54 of file PushDashboardUtil.php.

static pushDashboardToUsers ( Dashboard dashboard,
groupsAndUsers 
) [static]

Push dashboard to users. Synchronizes user's default dashboard portlets to given dashboard portlets

Parameters:
Dashboard $dashboard
$groupsAndUsers 

Definition at line 69 of file PushDashboardUtil.php.

static pushUserHomeDashboardPortlets ( User user,
Dashboard userDashboard,
Dashboard pushedDashboard 
) [static]

Syncs user's dashboard portlets to given dashboard portlets

Parameters:
User $user
Dashboard $userDashboard
Dashboard $pushedDashboard

Definition at line 104 of file PushDashboardUtil.php.

static resolveDefaultDashboardByUser ( Dashboard dashboard,
User user 
) [static]

Returns default dashboard for user. Creates and return default dashboard, if no dashboard exists for user

Parameters:
Dashboard $dashboard
User $user
Returns:
Dashboard
Exceptions:
FailedToSaveModelException 

Definition at line 139 of file PushDashboardUtil.php.

static resolveGroupsAndUsersFromPost ( postData  )  [static]

Resolves type-ahead post data to groups and users array

Parameters:
$postData 
Returns:
array

Definition at line 166 of file PushDashboardUtil.php.

static pushLayoutToUsers ( model,
groupsAndUsers 
) [static]

For a given model, contact or account or opportunity, pushes DetailsAndRelationsView layout for provided user

Parameters:
$model 
$groupsAndUsers 

Definition at line 195 of file PushDashboardUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Feb 20 07:10:56 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8