modules/Import/ImportFieldSanitize.php

Show: inherited
Table of Contents

\ImportFieldSanitize

Package:

Properties

Propertypublic  $addRelatedBean= 'false'

true if we will create related beans during the sanitize process

Default valuefalseDetails
Type
n/a
Propertypublic  $createdBeans= 'array()'
static

array of modules/users_last_import ids pairs that are created in this class needs to be reset after the row is imported

Default valuearray()Details
Type
n/a
Propertypublic  $currency_symbol= ''
Details
Type
n/a
Propertypublic  $dateformat= ''

properties set to handle locale formatting

Details
Type
n/a
Propertypublic  $dec_sep= ''
Details
Type
n/a
Propertypublic  $default_currency_significant_digits= ''
Details
Type
n/a
Propertypublic  $default_locale_name_format= ''
Details
Type
n/a
Propertypublic  $num_grp_sep= ''
Details
Type
n/a
Propertypublic  $timeformat= ''
Details
Type
n/a
Propertypublic  $timezone= ''
Details
Type
n/a

Methods

methodpublic__call( \$value $name, \$vardef $params ) : string

Checks the SugarField defintion for an available santization method.

Parameters
Name Type Description
$name \$value

string

$params \$vardef

array

Returns
Type Description
string sanitized and validated value on success, bool false on failure
methodpublicdate( \$value $value, \$vardef $vardef, \$focus $focus ) : string

Validate date fields

Parameters
Name Type Description
$value \$value

string

$vardef \$vardef

array

$focus \$focus

object bean of the module we're importing into

Returns
Type Description
string sanitized and validated value on success, bool false on failure
methodpublicemail( \$value $value, \$vardef $vardef ) : string

Validate email fields

Parameters
Name Type Description
$value \$value

string

$vardef \$vardef

array

Returns
Type Description
string sanitized and validated value on success, bool false on failure
methodpublicisValidTimeDate( \$value $value, \$format $format ) : string

Added to handle Bug 24104, to make sure the date/time value is correct ( i.e. 20/20/2008 doesn't work )

Parameters
Name Type Description
$value \$value

string

$format \$format

string

Returns
Type Description
string sanitized and validated value on success, bool false on failure
methodpublicsynctooutlook( \$value $value, \$vardef $vardef, \$bad_names $bad_names ) : string

Validate sync_to_outlook field

Parameters
Name Type Description
$value \$value

string

$vardef \$vardef

array

$bad_names \$bad_names

array used to return list of bad users/teams in $value

Returns
Type Description
string sanitized and validated value on success, bool false on failure
methodpublictime( \$value $value, \$vardef $vardef, \$focus $focus ) : string

Validate time fields

Parameters
Name Type Description
$value \$value

string

$vardef \$vardef

array

$focus \$focus

object bean of the module we're importing into

Returns
Type Description
string sanitized and validated value on success, bool false on failure
Documentation was generated by DocBlox 0.18.1.