All Data Structures Functions Variables Pages
Static Public Member Functions
GetUtil Class Reference
Inheritance diagram for GetUtil:
DataUtil

Static Public Member Functions

static getData ()
 
static resetGetPageVariableToNull ($pageVariableName)
 
static resolveSelectedIdsFromGet ()
 
static resolveSelectAllFromGet ()
 
static sanitizePostByDesignerTypeForSavingModel ($model, $postData)
 
static resolveModalTransferInformationParamFromRequest ($param, $defaultValue=null)
 
static resolveParamFromRequest ($param, $defaultValue=null)
 
- 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)
 

Additional Inherited Members

- Static Protected Member Functions inherited from DataUtil
static isNotMarkedSkipped ($attributeName)
 
- Static Protected Attributes inherited from DataUtil
static $skippedAttributes = array()
 

Detailed Description

Helper class for handling GET arrays.

Definition at line 41 of file GetUtil.php.

Member Function Documentation

static resetGetPageVariableToNull (   $pageVariableName)
static

Resets page to 1 for a grid view.

Parameters
$pageVariableName- typically the model class name.

Definition at line 57 of file GetUtil.php.

static resolveSelectedIdsFromGet ( )
static

Resolve selectedIds value based on $_GET['selectedIds'].

Definition at line 65 of file GetUtil.php.

static resolveSelectAllFromGet ( )
static

Resolve selectAll value based on $_GET['selectAll'].

Definition at line 80 of file GetUtil.php.

static sanitizePostByDesignerTypeForSavingModel (   $model,
  $postData 
)
static

Sanitizes get data for date and date time attributes by converting them to the proper format and timezone for saving. Wrapper for the method with the logic in PostUtil which completes this task.

Returns
- array sanitized get data

Definition at line 98 of file GetUtil.php.

static resolveModalTransferInformationParamFromRequest (   $param,
  $defaultValue = null 
)
static

Resolve param from get request for modalTransferInformation

Parameters
string$param
bool$defaultValue
Returns
string|bool

Definition at line 109 of file GetUtil.php.

static resolveParamFromRequest (   $param,
  $defaultValue = null 
)
static

Resolve param from get request

Parameters
string$param
bool$defaultValue
Returns
string|bool

Definition at line 124 of file GetUtil.php.


The documentation for this class was generated from the following file:
Generated on Fri Jun 5 2020 07:10:49