ZurmoControllerUtil Class Reference

Inheritance diagram for ZurmoControllerUtil:
CalendarZurmoControllerUtil ContactWebFormsZurmoControllerUtil FileZurmoControllerUtil ModelHasRelatedItemsZurmoControllerUtil CommentZurmoControllerUtil EmailTemplateZurmoControllerUtil MissionZurmoControllerUtil SocialItemZurmoControllerUtil MeetingHasRelatedItemsZurmoControllerUtil ModelHasFilesAndRelatedItemsZurmoControllerUtil TaskZurmoControllerUtil AutoresponderZurmoControllerUtil CampaignZurmoControllerUtil ConversationZurmoControllerUtil ProductTemplateZurmoControllerUtil ProductZurmoControllerUtil ProjectZurmoControllerUtil

Public Member Functions

 saveModelFromPost ($postData, $model, &$savedSuccessfully, &$modelToStringValue, $returnOnValidate=false)
 saveModelFromSanitizedData ($sanitizedData, $model, &$savedSuccessfully, &$modelToStringValue, $returnOnValidate)
 validateAjaxFromPost ($model, $postVariableName)

Static Public Member Functions

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)
 afterSuccessfulSave ($model)
 getDataSanitizerUtilClassName ()

Static Protected Member Functions

static resolveAndMakeExplicitReadWriteModelPermissions ($sanitizedData, $model)

Detailed Description

Collection of helper methods for working with models, posts, and gets in conjunction with controller actions.

Definition at line 40 of file ZurmoControllerUtil.php.


Member Function Documentation

static updatePermissionsWithDefaultForModelByUser ( SecurableItem model,
User user 
) [static]
Parameters:
SecurableItem $model
User $user
Exceptions:
NotSupportedException 

Definition at line 47 of file ZurmoControllerUtil.php.

static updatePermissionsWithDefaultForModelByCurrentUser ( SecurableItem model  )  [static]
Parameters:
SecurableItem $model

Definition at line 92 of file ZurmoControllerUtil.php.

saveModelFromSanitizedData ( sanitizedData,
model,
&$  savedSuccessfully,
&$  modelToStringValue,
returnOnValidate 
)
Parameters:
$sanitizedData 
object $model
bool $savedSuccessfully
string $modelToStringValue
Returns:
OwnedSecurableItem

Definition at line 119 of file ZurmoControllerUtil.php.

validateAjaxFromPost ( model,
postVariableName 
)

Validates post data in the ajax call

Parameters:
RedBeanModel $model
string $postVariableName

Definition at line 206 of file ZurmoControllerUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Nov 20 07:10:31 2017