Class jFilter

Description

utility class to check values

  • since: 1.0b1

Located in /utils/jFilter.class.php (line 19)


	
			
Method Summary
static boolean isBool (string $val)
static boolean isEmail (string $val)
static boolean isFloat (string $val, [int $min = null], [int $max = null])
static boolean isHexInt (string $val, [int $min = null], [int $max = null])
static boolean isInt (string $val, [int $min = null], [int $max = null])
static boolean isIPv4 (string $val)
static boolean isIPv6 (string $val)
static boolean isUrl (string $url, [ $schemeRequired = false], [ $hostRequired = false], [ $pathRequired = false], [ $queryRequired = false])
static void usePhpFilter ()
Methods
static isBool (line 63)

check if the given value is a boolean

  • return: true if it is valid
  • access: public
static boolean isBool (string $val)
  • string $val: the value
static isEmail (line 137)

check if the given value is an email

  • return: true if it is valid
  • access: public
static boolean isEmail (string $val)
  • string $val: the value
static isFloat (line 77)

check if the given value is a float

  • return: true if it is valid
  • access: public
static boolean isFloat (string $val, [int $min = null], [int $max = null])
  • string $val: the value
  • int $min: minimum value (optional), null if no minimum
  • int $max: maximum value (optional), null if no maximum
static isHexInt (line 49)

check if the given value is an hexadecimal integer

  • return: true if it is valid
  • access: public
static boolean isHexInt (string $val, [int $min = null], [int $max = null])
  • string $val: the value
  • int $min: minimum value (optional), null if no minimum
  • int $max: maximum value (optional), null if no maximum
static isInt (line 34)

check if the given value is an integer

  • return: true if it is valid
  • access: public
static boolean isInt (string $val, [int $min = null], [int $max = null])
  • string $val: the value
  • int $min: minimum value (optional), null if no minimum
  • int $max: maximum value (optional), null if no maximum
static isIPv4 (line 119)

check if the given value is an IP version 4

  • return: true if it is valid
  • access: public
static boolean isIPv4 (string $val)
  • string $val: the value
static isIPv6 (line 128)

check if the given value is an IP version 6

  • return: true if it is valid
  • access: public
static boolean isIPv6 (string $val)
  • string $val: the value
static isUrl (line 91)

check if the given value is

  • return: true if it is valid
  • access: public
static boolean isUrl (string $url, [ $schemeRequired = false], [ $hostRequired = false], [ $pathRequired = false], [ $queryRequired = false])
  • string $url: the url
  • $schemeRequired
  • $hostRequired
  • $pathRequired
  • $queryRequired
static usePhpFilter (line 23)
  • access: public
static void usePhpFilter ()

Documentation generated on Wed, 07 Sep 2011 13:47:19 +0200 by phpDocumentor 1.4.3