[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/ -> class.validation.php (summary)

(no description)

File Size: 142 lines (6 kb)
Included or required: 11 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Validation:: (3 methods):
  isWhitespace()
  isEmail()
  hasValidChars()


Class: Validation  - X-Ref

Class to handle form validation in the server-side, duplicating the
javascript based validation available in most forms, to make sure
the data integrity is the best possible.

isWhitespace($str)   X-Ref
Method used to check whether a string is totally compromised of
whitespace characters, such as spaces, tabs or newlines.

param: string $str The string to check against
return: boolean

isEmail($str)   X-Ref
Method used to check whether an email address is a valid one.

param: string $str The email address to check against
return: boolean

hasValidChars($str)   X-Ref
Method used to check whether a string has only valid (ASCII)
characters.

param: string $str The string to check against
return: boolean



Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7