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

SanitizerUtil Class Reference

Inheritance diagram for SanitizerUtil:
BooleanSanitizerUtil ContactStateSanitizerUtil DateSanitizerUtil DateTimeSanitizerUtil DedupeSanitizerUtil DropDownSanitizerUtil EmailSanitizerUtil ExternalSystemIdSuppportedSanitizerUtil FullNameSanitizerUtil LowercaseSanitizerUtil MinimumLengthSanitizerUtil NumberSanitizerUtil PriceFrequencySanitizerUtil ProductTemplateStatusSanitizerUtil ProductTemplateTypeSanitizerUtil ProjectStatusSanitizerUtil RequiredSanitizerUtil SellPriceFormulaTypeSanitizerUtil TaskStatusSanitizerUtil TruncateSanitizerUtil UrlSanitizerUtil UserCurrencySanitizerUtil UserLanguageSanitizerUtil UserLocaleSanitizerUtil UserStatusSanitizerUtil UserTimeZoneSanitizerUtil

Public Member Functions

 sanitizeValue ($value)
 analyzeByRow (RedBean_OODBBean $rowBean)
 __construct ($modelClassName, $attributeName, $columnName, array $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil=null, $penultimateModelClassName, $penultimateAttributeName, $explicitReadWriteModelPermissions=null)
 shouldSanitizeValue ()
 getAnalysisMessages ()
 getShouldSkipRow ()

Static Public Member Functions

static getType ()
static getLinkedMappingRuleType ()
static shouldNotSaveModelOnSanitizingValueFailure ()

Protected Member Functions

 init ()
 assertMappingRuleDataIsValid ()

Static Protected Member Functions

static resolveMappingRuleData ($columnMappingData)

Protected Attributes

 $modelClassName
 $attributeName
 $analysisMessages = array()
 $shouldSkipRow = false
 $columnName
 $columnMappingData = array()
 $mappingRuleData = array()
 $importSanitizeResultsUtil
 $penultimateModelClassName
 $penultimateAttributeName
 $explicitReadWriteModelPermissions = null

Detailed Description

Base sanitization utility to be overriden as needed for specific sanitizers. Sanitizer utils provide information on the data analyzers to utilize and if sql and batch analysis are supported. Also provides method to perform actual sanitization prior to setting the value in a model to import.

Sanitizers can inspect a value and based on rules, decide whether that value is valid or invalid. This information is then utilized to help users during the import process ensure their import data is correct before finalizing the import.

Definition at line 46 of file SanitizerUtil.php.


Constructor & Destructor Documentation

__construct ( modelClassName,
attributeName,
columnName,
array $  columnMappingData,
ImportSanitizeResultsUtil importSanitizeResultsUtil = null,
penultimateModelClassName,
penultimateAttributeName,
explicitReadWriteModelPermissions = null 
)
Parameters:
$modelClassName 
$attributeName 
$columnName 
array $columnMappingData
ImportSanitizeResultsUtil $importSanitizeResultsUtil

Reimplemented in RelatedModelNameOrIdValueTypeSanitizerUtil.

Definition at line 149 of file SanitizerUtil.php.


Member Function Documentation

sanitizeValue ( value  )  [abstract]
static getType (  )  [static]
Returns:
string - type of sanitizer

Definition at line 88 of file SanitizerUtil.php.

static shouldNotSaveModelOnSanitizingValueFailure (  )  [static]

If the sanitization of a value fails, should the entire row that is trying to be imported be ignored? Override if you want to change this value. Returning false means save the import row anyways regardless of if a sanitization of a value failed. If the model has other validation errors, these will block saving the model regardless of what value is returned here.

Returns:
boolean

Reimplemented in ContactStateSanitizerUtil, EmailSanitizerUtil, FullNameSanitizerUtil, IdValueTypeSanitizerUtil, MinimumLengthSanitizerUtil, NumberSanitizerUtil, RelatedModelNameOrIdValueTypeSanitizerUtil, RequiredSanitizerUtil, ProductTemplateStatusSanitizerUtil, ProjectStatusSanitizerUtil, and TaskStatusSanitizerUtil.

Definition at line 113 of file SanitizerUtil.php.

init (  )  [protected]

Override as needed

Reimplemented in IdValueTypeSanitizerUtil, RelatedModelNameOrIdValueTypeSanitizerUtil, and RoleValueTypeSanitizerUtil.

Definition at line 192 of file SanitizerUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jun 24 07:11:09 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