Validate
[ class tree: Validate ] [ index: Validate ] [ all elements ]

File: Validate.php

Source Location: /Validate-0.8.5/Validate.php

Classes:

Validate
Validation class

Page Details:

Validation class

Copyright (c) 1997-2006 Pierre-Alain Joye,Tomas V.V.Cox, Amir Saied

This source file is subject to the New BSD license, That is bundled with this package in the file LICENSE, and is available through the world-wide-web at http://www.opensource.org/licenses/bsd-license.php If you did not receive a copy of the new BSDlicense and are unable to obtain it through the world-wide-web, please send a note to pajoye@php.net so we can mail you a copy immediately.

Author: Tomas V.V.Cox <cox@idecnet.com> Pierre-Alain Joye <pajoye@php.net> Amir Mohammad Saied <amir@php.net>

Package to validate various datas. It includes :

  • numbers (min/max, decimal or not)
  • email (syntax, domain check)
  • string (predifined type alpha upper and/or lowercase, numeric,...)
  • date (min, max, rfc822 compliant)
  • uri (RFC2396)
  • possibility valid multiple data with a single method call (::multiple)


VALIDATE_ALL_EMAILS [line 58]

VALIDATE_ALL_EMAILS = 8

[ Top ]



VALIDATE_ALPHA [line 47]

VALIDATE_ALPHA = VALIDATE_ALPHA_LOWER.VALIDATE_ALPHA_UPPER

[ Top ]



VALIDATE_ALPHA_LOWER [line 45]

VALIDATE_ALPHA_LOWER = 'a-z'

[ Top ]



VALIDATE_ALPHA_UPPER [line 46]

VALIDATE_ALPHA_UPPER = 'A-Z'

[ Top ]



VALIDATE_CCTLD_EMAILS [line 57]

VALIDATE_CCTLD_EMAILS = 4

[ Top ]



VALIDATE_EALPHA [line 50]

VALIDATE_EALPHA = VALIDATE_EALPHA_LOWER.VALIDATE_EALPHA_UPPER

[ Top ]



VALIDATE_EALPHA_LOWER [line 48]

VALIDATE_EALPHA_LOWER = VALIDATE_ALPHA_LOWER.'áéíóúýàèìòùäëïöüÿâêîôûãñõ¨åæç½ðøþß'

[ Top ]



VALIDATE_EALPHA_UPPER [line 49]

VALIDATE_EALPHA_UPPER = VALIDATE_ALPHA_UPPER.'ÁÉÍÓÚÝÀÈÌÒÙÄËÏÖܾÂÊÎÔÛÃÑÕ¦ÅÆǼÐØÞ'

[ Top ]



VALIDATE_GTLD_EMAILS [line 56]

VALIDATE_GTLD_EMAILS = 2

[ Top ]



VALIDATE_ITLD_EMAILS [line 55]

VALIDATE_ITLD_EMAILS = 1

[ Top ]



VALIDATE_NAME [line 52]

VALIDATE_NAME = VALIDATE_EALPHA.VALIDATE_SPACE."'".'\-'

[ Top ]



VALIDATE_NUM [line 43]

VALIDATE_NUM = '0-9'
Methods for common data validations

[ Top ]



VALIDATE_PUNCTUATION [line 51]

VALIDATE_PUNCTUATION = VALIDATE_SPACE.'\.,;\:&"\'\?\!\(\)'

[ Top ]



VALIDATE_SPACE [line 44]

VALIDATE_SPACE = '\s'

[ Top ]



VALIDATE_STREET [line 53]

VALIDATE_STREET = VALIDATE_NUM.VALIDATE_NAME."/\\ºª\."

[ Top ]



Documentation generated on Sun, 18 Dec 2011 12:30:07 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.