Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 Wed Jan 23 07:10:30 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8