All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes
CommentZurmoControllerUtil Class Reference
Inheritance diagram for CommentZurmoControllerUtil:
FileZurmoControllerUtil ZurmoControllerUtil

Public Member Functions

 __construct ($relatedModel, $relationName)
 
- 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)
 
 afterSuccessfulSave ($model)
 
- Protected Member Functions inherited from FileZurmoControllerUtil
 afterSetAttributesDuringSave ($model, $explicitReadWriteModelPermissions)
 
- Protected Member Functions inherited from ZurmoControllerUtil
 afterSetAttributesDuringSave ($model, $explicitReadWriteModelPermissions)
 
 afterSuccessfulSave ($model)
 
 getDataSanitizerUtilClassName ()
 

Protected Attributes

 $relatedModel
 
 $relationName
 

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 saving comments against a related model

Definition at line 40 of file CommentZurmoControllerUtil.php.

Constructor & Destructor Documentation

__construct (   $relatedModel,
  $relationName 
)
Parameters
$relatedModel
string$relationName

Definition at line 50 of file CommentZurmoControllerUtil.php.

Member Function Documentation

afterSetAttributesDuringSave (   $model,
  $explicitReadWriteModelPermissions 
)
protected

Override to handle saving the comment against the conversation/mission/social item if it is not already connected. (non-PHPdoc)

See Also
ModelHasRelatedItemsZurmoControllerUtil::afterSetAttributesDuringSave()

Definition at line 63 of file CommentZurmoControllerUtil.php.

afterSuccessfulSave (   $model)
protected

Override to handle sending email messages on new comment

Definition at line 89 of file CommentZurmoControllerUtil.php.


The documentation for this class was generated from the following file:
Generated on Tue Jan 28 2020 07:10:26