Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions
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 215 of file ZurmoControllerUtil.php.


The documentation for this class was generated from the following file:
Generated on Mon Jul 13 2020 07:11:10
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.