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 Protected Member Functions

static sanitizePostForMassAction ($postVariableName, $massActionName)

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:
 All Data Structures Functions Variables
Generated on Sat Apr 22 07:10:27 2017