All Data Structures Functions Variables Pages
Static Public Member Functions | Protected Member Functions | Protected Attributes
ProjectZurmoControllerUtil Class Reference
Inheritance diagram for ProjectZurmoControllerUtil:
ModelHasFilesAndRelatedItemsZurmoControllerUtil ModelHasRelatedItemsZurmoControllerUtil ZurmoControllerUtil

Static Public Member Functions

static resolveProjectManyManyAccountsFromPost (Project $project, $postData)
 
static resolveProjectManyManyContactsFromPost (Project $project, $postData)
 
static resolveProjectManyManyOpportunitiesFromPost (Project $project, $postData)
 
static getProjectsLatestActivityFeedView ($controller, $pageSize)
 
- Static Public Member Functions inherited from ZurmoControllerUtil
static updatePermissionsWithDefaultForModelByUser (SecurableItem $model, User $user)
 
static resolveUserDefaultPermissionsForCurrentUser (RedBeanModel $model=null)
 
static resolveUserDefaultPermissionsByUser (User $user, RedBeanModel $model=null)
 
static updatePermissionsWithDefaultForModelByCurrentUser (SecurableItem $model)
 

Protected Member Functions

 afterSetAttributesDuringSave ($model, $explicitReadWriteModelPermissions)
 
- Protected Member Functions inherited from ZurmoControllerUtil
 afterSetAttributesDuringSave ($model, $explicitReadWriteModelPermissions)
 
 afterSuccessfulSave ($model)
 
 getDataSanitizerUtilClassName ()
 

Protected Attributes

 $projectAccounts
 

Additional Inherited Members

- Public Member Functions inherited from ZurmoControllerUtil
 saveModelFromPost ($postData, $model, &$savedSuccessfully, &$modelToStringValue, $returnOnValidate=false)
 
 saveModelFromSanitizedData ($sanitizedData, $model, &$savedSuccessfully, &$modelToStringValue, $returnOnValidate)
 
 validateAjaxFromPost ($model, $postVariableName)
 
- Static Protected Member Functions inherited from ZurmoControllerUtil
static resolveAndMakeExplicitReadWriteModelPermissions ($sanitizedData, $model)
 

Detailed Description

Class helps support adding/removing relations accounts, contacts and opportunities while saving a project from a post.

Definition at line 40 of file ProjectZurmoControllerUtil.php.

Member Function Documentation

afterSetAttributesDuringSave (   $model,
  $explicitReadWriteModelPermissions 
)
protected
Parameters
object$model
attay$explicitReadWriteModelPermissions

Definition at line 48 of file ProjectZurmoControllerUtil.php.

static resolveProjectManyManyAccountsFromPost ( Project  $project,
  $postData 
)
static

Resolves the accounts sent via post request

Parameters
Project$project
array$postData
Returns
array containing accounts

Definition at line 75 of file ProjectZurmoControllerUtil.php.

static resolveProjectManyManyContactsFromPost ( Project  $project,
  $postData 
)
static

Resolves the contacts sent via post request

Parameters
Project$project
array$postData
Returns
array containing contacts

Definition at line 111 of file ProjectZurmoControllerUtil.php.

static resolveProjectManyManyOpportunitiesFromPost ( Project  $project,
  $postData 
)
static

Resolves the opportunities sent via post request

Parameters
Project$project
array$postData
Returns
array containing opportunities

Definition at line 147 of file ProjectZurmoControllerUtil.php.

static getProjectsLatestActivityFeedView (   $controller,
  $pageSize 
)
static

Get latest activity feed list view

Returns
ListView

Definition at line 181 of file ProjectZurmoControllerUtil.php.


The documentation for this class was generated from the following file:
Generated on Mon Jun 1 2020 07:10:59