Class Format

Description

This class provid format validation

  • author: SimpliciWeb
  • version: $Id: format.class.php 910 2008-03-19 08:54:35Z nicolas_s $

Located in /core/internal_components/common/format/format.class.php (line 71)


	
			
Method Summary
 bool getEmptyFileArray ( &$r_result, array $r_result)
 bool isNotDate ( &$p_value, string $p_value)
 bool isNotDateBeforeToday ( &$p_value, string $p_value)
 bool isNotDomainName ( &$p_value, string $p_value)
 bool isNotEmail ( &$p_value, string $p_value)
 bool isNotEnum ( &$p_value, array $p_array_values, [bool $i_make_to_upper = false], mixed $p_value)
 bool isNotFileArray (string $p_value)
 bool isNotMediumText (string $p_value)
 bool isNotMedText (string $p_value)
 bool isNotText (string $p_value)
 bool isNotUnsignedFloat (string $p_value)
 bool isNotUnsignedInteger (string $p_value, integer $p_length)
 bool isNotValidCheckMXMail ( $Email, string $p_value)
 bool isNotValidPhoneNumber (string $p_value, [bool $p_allow_empty = false])
 bool isNotValidPostalCode (string $p_value)
 bool isNotVarchar (string $p_value, integer $p_length, [bool $is_good_if_len_zero = true])
 bool isNotYesNo ( &$p_value, string $p_value)
Methods
Constructor Format (line 79)

Constructor, init the requests and objects

Format Format ()
getEmptyFileArray (line 190)

Return an empty $_FILES array

bool getEmptyFileArray ( &$r_result, array $r_result)
  • array $r_result
  • &$r_result
isNotDate (line 141)

Test if it is not a date

  • return: TRUE = is NOT a date
bool isNotDate ( &$p_value, string $p_value)
  • string $p_value
  • &$p_value
isNotDateBeforeToday (line 99)

Test if it is not a date before today

  • return: TRUE = is NOT a date before today
bool isNotDateBeforeToday ( &$p_value, string $p_value)
  • string $p_value
  • &$p_value
isNotDomainName (line 155)

Test if it is not a domain

  • return: TRUE = is NOT a domain
bool isNotDomainName ( &$p_value, string $p_value)
  • string $p_value
  • &$p_value
isNotEmail (line 175)

Test if it is not an email

  • return: TRUE = is NOT an email
bool isNotEmail ( &$p_value, string $p_value)
  • string $p_value
  • &$p_value
isNotEnum (line 399)

Test if it is not a valid enum value

  • return: TRUE = is NOT a valid enum value
bool isNotEnum ( &$p_value, array $p_array_values, [bool $i_make_to_upper = false], mixed $p_value)
  • mixed $p_value
  • array $p_array_values
  • bool $i_make_to_upper
  • &$p_value
isNotFileArray (line 208)

Test if it is not a valid $_FILES array

  • return: TRUE = is NOT a valid $_FILES array
bool isNotFileArray (string $p_value)
  • string $p_value
isNotMediumText (line 354)

Test if it is not a medium text

  • return: TRUE = is NOT a medium text
bool isNotMediumText (string $p_value)
  • string $p_value
isNotMedText (line 384)

Test if it is not a medium text

  • return: TRUE = is NOT a medium text
bool isNotMedText (string $p_value)
  • string $p_value
isNotText (line 370)

Test if it is not a text

  • return: TRUE = is NOT a text
bool isNotText (string $p_value)
  • string $p_value
isNotUnsignedFloat (line 309)

Test if it is not unsigned float

  • return: TRUE = is NOT an unsigned float
bool isNotUnsignedFloat (string $p_value)
  • string $p_value
isNotUnsignedInteger (line 263)

Test if it is not an unsigned integer

  • return: TRUE = is NOT a medium text
bool isNotUnsignedInteger (string $p_value, integer $p_length)
  • string $p_value
  • integer $p_length
isNotValidCheckMXMail (line 431)

Test if it is not valid email

  • return: TRUE = is NOT valid email
bool isNotValidCheckMXMail ( $Email, string $p_value)
  • string $p_value
  • $Email
isNotValidPhoneNumber (line 526)

Test if it is not a phone number

  • return: TRUE = is NOT a phone number
bool isNotValidPhoneNumber (string $p_value, [bool $p_allow_empty = false])
  • string $p_value
  • bool $p_allow_empty: Allow empty value
isNotValidPostalCode (line 513)

Test if it is not valid postal code

  • return: TRUE = is NOT a valid postal code
bool isNotValidPostalCode (string $p_value)
  • string $p_value
isNotVarchar (line 243)

Test if it is not varchar

  • return: TRUE = is NOT a varchar
bool isNotVarchar (string $p_value, integer $p_length, [bool $is_good_if_len_zero = true])
  • string $p_value
  • integer $p_length
  • bool $is_good_if_len_zero
isNotYesNo (line 89)

Test if it is not a valid value in 'YES','NO'

  • return: TRUE = is NOT a good value
bool isNotYesNo ( &$p_value, string $p_value)
  • string $p_value
  • &$p_value

Documentation generated on Tue, 25 Mar 2008 15:35:02 +0100 by phpDocumentor 1.3.2