All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes
ModelHasRelatedItemsZurmoControllerUtil Class Reference
Inheritance diagram for ModelHasRelatedItemsZurmoControllerUtil:
ZurmoControllerUtil MeetingHasRelatedItemsZurmoControllerUtil ModelHasFilesAndRelatedItemsZurmoControllerUtil TaskZurmoControllerUtil ConversationZurmoControllerUtil ProductTemplateZurmoControllerUtil ProductZurmoControllerUtil ProjectZurmoControllerUtil

Public Member Functions

 __construct ($relatedItemsRelationName, $relatedItemsFormName)
 
- Public Member Functions inherited from ZurmoControllerUtil
 saveModelFromPost ($postData, $model, &$savedSuccessfully, &$modelToStringValue, $returnOnValidate=false)
 
 saveModelFromSanitizedData ($sanitizedData, $model, &$savedSuccessfully, &$modelToStringValue, $returnOnValidate)
 
 validateAjaxFromPost ($model, $postVariableName)
 

Protected Member Functions

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

Protected Attributes

 $relatedItemsRelationName
 
 $relatedItemsFormName
 

Additional Inherited Members

- 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)
 
- Static Protected Member Functions inherited from ZurmoControllerUtil
static resolveAndMakeExplicitReadWriteModelPermissions ($sanitizedData, $model)
 

Detailed Description

Extended class to support models that have related items such as activities or conversations.

Definition at line 40 of file ModelHasRelatedItemsZurmoControllerUtil.php.

Constructor & Destructor Documentation

__construct (   $relatedItemsRelationName,
  $relatedItemsFormName 
)
Parameters
string$relatedItemsRelationName
string$relatedItemsFormName

Definition at line 50 of file ModelHasRelatedItemsZurmoControllerUtil.php.

Member Function Documentation

resolveModelsRelatedItemsFromPost ( $model)
protected

Passing in a $model, process any relatedItems that have to be removed, added, or changed.

Definition at line 67 of file ModelHasRelatedItemsZurmoControllerUtil.php.


The documentation for this class was generated from the following file:
Generated on Wed Apr 1 2020 07:11:12