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

DataUtil Class Reference

Inheritance diagram for DataUtil:
GetUtil PostUtil HtmlPostUtil

Static Public Member Functions

static sanitizeDataByDesignerTypeForSavingModel ($model, $data)
static sanitizeDataToJustHavingElementForSavingModel ($sanitizedData, $elementName)
static removeElementFromDataForSavingModel ($sanitizedData, $elementName)
static purifyHtml ($text)
static purifyHtmlAndModifyInput (&$item)

Static Protected Member Functions

static isNotMarkedSkipped ($attributeName)

Static Protected Attributes

static $skippedAttributes = array()

Detailed Description

Helper class for handling data.

Definition at line 40 of file DataUtil.php.


Member Function Documentation

static sanitizeDataByDesignerTypeForSavingModel ( model,
data 
) [static]

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

Returns:
- array sanitized data

Definition at line 49 of file DataUtil.php.

static sanitizeDataToJustHavingElementForSavingModel ( sanitizedData,
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 $sanitizedData
string $elementName

Definition at line 133 of file DataUtil.php.

static removeElementFromDataForSavingModel ( sanitizedData,
elementName 
) [static]

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

Parameters:
array $sanitizedData
string $elementName

Definition at line 149 of file DataUtil.php.

static purifyHtml ( text  )  [static]

Purify string content

Parameters:
string $text
Returns:
string

Definition at line 165 of file DataUtil.php.

static purifyHtmlAndModifyInput ( &$  item  )  [static]

Purify string content This function should be used in recurcive functions, like array_walk_recursive(). It doesn't return data, but instead modify input argument, so use it carefully. As side effect it modify provided element

Parameters:
mixed $item

Definition at line 199 of file DataUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Mar 20 07:10:52 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