All Data Structures Functions Variables Pages
Static Public Member Functions | Static Protected Member Functions
PostUtil Class Reference
Inheritance diagram for PostUtil:
DataUtil HtmlPostUtil

Static Public Member Functions

static getData ()
 
static sanitizePostForSavingMassEdit ($postVariableName)
 
static sanitizePostForMassDelete ($postVariableName)
 
static sanitizePostByDesignerTypeForSavingModel ($model, $postData)
 
static sanitizePostDataToJustHavingElementForSavingModel ($sanitizedPostData, $elementName)
 
static removeElementFromPostDataForSavingModel ($sanitizedPostData, $elementName)
 
- Static Public Member Functions inherited from DataUtil
static sanitizeDataByDesignerTypeForSavingModel ($model, $data)
 
static sanitizeDataToJustHavingElementForSavingModel ($sanitizedData, $elementName)
 
static removeElementFromDataForSavingModel ($sanitizedData, $elementName)
 
static purifyHtml ($text)
 
static purifyHtmlAndModifyInput (&$item)
 

Static Protected Member Functions

static sanitizePostForMassAction ($postVariableName, $massActionName)
 
- Static Protected Member Functions inherited from DataUtil
static isNotMarkedSkipped ($attributeName)
 

Additional Inherited Members

- Static Protected Attributes inherited from DataUtil
static $skippedAttributes = array()
 

Detailed Description

Helper class for handling POST arrays.

Definition at line 41 of file PostUtil.php.

Member Function Documentation

static sanitizePostByDesignerTypeForSavingModel (   $model,
  $postData 
)
static

Sanitizes post data for date and date time attributes by converting them to the proper format and timezone for saving.

Returns
- array sanitized post data

Definition at line 94 of file PostUtil.php.

static sanitizePostDataToJustHavingElementForSavingModel (   $sanitizedPostData,
  $elementName 
)
static

Given an array of data, filter out all elements but the specified element and return array. If the specified element does not exist, then return null.

Parameters
array$sanitizedPostData
string$elementName

Definition at line 106 of file PostUtil.php.

static removeElementFromPostDataForSavingModel (   $sanitizedPostData,
  $elementName 
)
static

Given an array of data, filter out the specified element from the data if it exists.

Parameters
array$sanitizedPostData
string$elementName

Definition at line 116 of file PostUtil.php.


The documentation for this class was generated from the following file:
Generated on Thu Apr 9 2020 07:11:15