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

Public Member Functions

 __construct ($relatedItemsRelationName, $relatedItemsFormName, $productCategoryFormName)
 
 resolveStageDefaultValue ($product)
 
- 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)
 
- Protected Member Functions inherited from ZurmoControllerUtil
 afterSetAttributesDuringSave ($model, $explicitReadWriteModelPermissions)
 
 afterSuccessfulSave ($model)
 
 getDataSanitizerUtilClassName ()
 

Protected Attributes

 $productCategoryFormName
 
 $processedProductCategories
 

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

Class helps support adding/removing product categories while saving a product template from a post.

Definition at line 40 of file ProductZurmoControllerUtil.php.

Constructor & Destructor Documentation

__construct (   $relatedItemsRelationName,
  $relatedItemsFormName,
  $productCategoryFormName 
)

Constructor for class

Parameters
string$relatedItemsRelationName
string$relatedItemsFormName
string$productCategoryFormName

Definition at line 52 of file ProductZurmoControllerUtil.php.

Member Function Documentation

afterSetAttributesDuringSave (   $model,
  $explicitReadWriteModelPermissions 
)
protected
Parameters
object$model
attay$explicitReadWriteModelPermissions

Definition at line 64 of file ProductZurmoControllerUtil.php.

resolveStageDefaultValue (   $product)

Resolve stage default value

Parameters
RedBeanModel$product
Returns
string

Definition at line 81 of file ProductZurmoControllerUtil.php.


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