Class Zend_Filter_Input

Description
  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Filter/Input.php (line 36)


	
			
Variable Summary
 mixed $_source
Method Summary
 Zend_Filter_Input __construct ([ &$source = NULL], [ $strict = TRUE])
 mixed getAlnum (mixed $key)
 mixed getAlpha (mixed $key)
 mixed getDigits (mixed $key)
 mixed getDir (mixed $key)
 int getInt (mixed $key)
 mixed getPath (mixed $key)
 mixed getRaw (string $key)
 mixed noPath (mixed $key)
 mixed noTags (mixed $key)
 mixed testAlnum (mixed $key)
 mixed testAlpha (mixed $key)
 mixed testBetween (mixed $key, mixed $min, mixed $max, [ $inc = TRUE], boolean $inclusive)
 mixed testCcnum (mixed $key, [mixed $type = NULL])
 mixed testDate (mixed $key)
 mixed testDigits (mixed $key)
 mixed testEmail (mixed $key)
 mixed testFloat (mixed $key)
 mixed testGreaterThan (mixed $key, [mixed $min = NULL])
 mixed testHex (mixed $key)
 mixed testHostname (mixed $key, [integer $allow = Zend_Filter::HOST_ALLOW_ALL])
 mixed testInt (mixed $key)
 mixed testIp (mixed $key)
 mixed testLessThan (mixed $key, [mixed $max = NULL])
 mixed testName (mixed $key)
 mixed testOneOf (mixed $key, [ $allowed = NULL])
 mixed testPhone (mixed $key, [ $country = 'US'])
 mixed testRegex (mixed $key, [mixed $pattern = NULL])
 void testUri ( $key)
 mixed testZip (mixed $key)
Variables
mixed $_source = NULL (line 38)
  • access: protected
Methods
Constructor __construct (line 40)
  • access: public
Zend_Filter_Input __construct ([ &$source = NULL], [ $strict = TRUE])
  • &$source
  • $strict
getAlnum (line 68)

Returns only the alphabetic characters and digits in value.

  • access: public
mixed getAlnum (mixed $key)
  • mixed $key
getAlpha (line 56)

Returns only the alphabetic characters in value.

  • access: public
mixed getAlpha (mixed $key)
  • mixed $key
getDigits (line 80)

Returns only the digits in value. This differs from getInt().

  • access: public
mixed getDigits (mixed $key)
  • mixed $key
getDir (line 92)

Returns dirname(value).

  • access: public
mixed getDir (mixed $key)
  • mixed $key
getInt (line 104)

Returns (int) value.

  • access: public
int getInt (mixed $key)
  • mixed $key
getPath (line 116)

Returns realpath(value).

  • access: public
mixed getPath (mixed $key)
  • mixed $key
getRaw (line 128)

Returns value.

  • access: public
mixed getRaw (string $key)
  • string $key
noPath (line 491)

Returns basename(value).

  • access: public
mixed noPath (mixed $key)
  • mixed $key
noTags (line 479)

Returns value with all tags removed.

  • access: public
mixed noTags (mixed $key)
  • mixed $key
testAlnum (line 141)

Returns value if every character is alphabetic or a digit, FALSE otherwise.

  • access: public
mixed testAlnum (mixed $key)
  • mixed $key
testAlpha (line 158)

Returns value if every character is alphabetic, FALSE otherwise.

  • access: public
mixed testAlpha (mixed $key)
  • mixed $key
testBetween (line 180)

Returns value if it is greater than or equal to $min and less than or equal to $max, FALSE otherwise. If $inc is set to FALSE, then the value must be strictly greater than $min and strictly less than $max.

  • access: public
mixed testBetween (mixed $key, mixed $min, mixed $max, [ $inc = TRUE], boolean $inclusive)
  • mixed $key
  • mixed $min
  • mixed $max
  • boolean $inclusive
  • $inc
testCcnum (line 199)

Returns value if it is a valid credit card number format. The optional second argument allows developers to indicate the type.

  • access: public
mixed testCcnum (mixed $key, [mixed $type = NULL])
  • mixed $key
  • mixed $type
testDate (line 216)

Returns $value if it is a valid date, FALSE otherwise. The date is required to be in ISO 8601 format.

  • access: public
mixed testDate (mixed $key)
  • mixed $key
testDigits (line 233)

Returns value if every character is a digit, FALSE otherwise.

This is just like isInt(), except there is no upper limit.

  • access: public
mixed testDigits (mixed $key)
  • mixed $key
testEmail (line 249)

Returns value if it is a valid email format, FALSE otherwise.

  • access: public
mixed testEmail (mixed $key)
  • mixed $key
testFloat (line 265)

Returns value if it is a valid float value, FALSE otherwise.

  • access: public
mixed testFloat (mixed $key)
  • mixed $key
testGreaterThan (line 282)

Returns value if it is greater than $min, FALSE otherwise.

  • access: public
mixed testGreaterThan (mixed $key, [mixed $min = NULL])
  • mixed $key
  • mixed $min
testHex (line 299)

Returns value if it is a valid hexadecimal format, FALSE otherwise.

  • access: public
mixed testHex (mixed $key)
  • mixed $key
testHostname (line 320)

Returns value if it is a valid hostname, FALSE otherwise.

Depending upon the value of $allow, Internet domain names, IP addresses, and/or local network names are considered valid. The default is HOST_ALLOW_ALL, which considers all of the above to be valid.

  • access: public
mixed testHostname (mixed $key, [integer $allow = Zend_Filter::HOST_ALLOW_ALL])
  • mixed $key
  • integer $allow: bitfield for HOST_ALLOW_DNS, HOST_ALLOW_IP, HOST_ALLOW_LOCAL
testInt (line 336)

Returns value if it is a valid integer value, FALSE otherwise.

  • access: public
mixed testInt (mixed $key)
  • mixed $key
testIp (line 352)

Returns value if it is a valid IP format, FALSE otherwise.

  • access: public
mixed testIp (mixed $key)
  • mixed $key
testLessThan (line 369)

Returns value if it is less than $max, FALSE otherwise.

  • access: public
mixed testLessThan (mixed $key, [mixed $max = NULL])
  • mixed $key
  • mixed $max
testName (line 386)

Returns value if it is a valid format for a person's name, FALSE otherwise.

  • access: public
mixed testName (mixed $key)
  • mixed $key
testOneOf (line 402)

Returns value if it is one of $allowed, FALSE otherwise.

  • access: public
mixed testOneOf (mixed $key, [ $allowed = NULL])
  • mixed $key
  • $allowed
testPhone (line 419)

Returns value if it is a valid phone number format, FALSE otherwise. The optional second argument indicates the country.

  • access: public
mixed testPhone (mixed $key, [ $country = 'US'])
  • mixed $key
  • $country
testRegex (line 437)

Returns value if it matches $pattern, FALSE otherwise. Uses preg_match() for the matching.

  • access: public
mixed testRegex (mixed $key, [mixed $pattern = NULL])
  • mixed $key
  • mixed $pattern
testUri (line 447)
  • access: public
void testUri ( $key)
  • $key
testZip (line 463)

Returns value if it is a valid US ZIP, FALSE otherwise.

  • access: public
mixed testZip (mixed $key)
  • mixed $key

Documentation generated on Fri, 30 Jun 2006 11:20:59 -0500 by phpDocumentor 1.3.0RC6