68 Classifieds API

Features
class tree: 68Classifieds | index: 68Classifieds | all elements

 Class Validate

Description

Server side validation

Located in /includes/classes/kernel/Validate.php (line 17)


	
			
Direct descendents
Class Description
 class credit_card Credit Card Class
Variable Summary
 object $_errorList
Method Summary
 Validate Validate ()
 boolean alphaCheck (mixed $value,  $msg)
 string getErrorList ()
 boolean isEmailAddress (string $value, string $msg)
 boolean isEmpty (mixed $value, string $msg)
 boolean isError ()
 boolean isLessThan (str $value, string $msg, int $max)
 boolean isMatch (mixed $value, mixed $value2, string $msg)
 boolean isNumber (int $value, string $msg)
 boolean isSingleEmail (mixed $value, string $msg)
 boolean isString (string $value, string $msg)
 boolean isValidCoupon (mixed $value)
 boolean isWithinRange (int $value, string $msg, int $min, int $max)
 array resetErrorList ()
Variables
object $_errorList (line 24)

Error List

Methods
Constructor Validate (line 31)

Validate Constructor

  • access: public
Validate Validate ()
alphaCheck (line 220)

Check value is alphanumeric

  • return: True or False
boolean alphaCheck (mixed $value,  $msg)
  • mixed $value
  • $msg
getErrorList (line 281)

Get the error list

  • return: Error List
string getErrorList ()
isEmailAddress (line 179)

Check email address is correct.

  • return: True or False
boolean isEmailAddress (string $value, string $msg)
  • string $value
  • string $msg: The message to report on error.
isEmpty (line 43)

Check for empty variable

  • return: True or False
boolean isEmpty (mixed $value, string $msg)
  • mixed $value
  • string $msg: The message to report on error.
isError (line 264)

Checks to see if any errors exists.

  • return: True or False
boolean isError ()
isLessThan (line 104)

Check the length of a string.

  • return: True or False
boolean isLessThan (str $value, string $msg, int $max)
  • str $value
  • string $msg: The message to report on error.
  • int $max: The maximum characters.
isMatch (line 159)

Check two values match

  • return: True or False
boolean isMatch (mixed $value, mixed $value2, string $msg)
  • mixed $value
  • mixed $value2
  • string $msg: The message to report on error.
isNumber (line 83)

Check for number

  • return: True or False
boolean isNumber (int $value, string $msg)
  • int $value
  • string $msg: The message to report on error.
isSingleEmail (line 200)

Check the string entered as email is just one.

  • return: True or False
boolean isSingleEmail (mixed $value, string $msg)
  • mixed $value
  • string $msg: The message to report on error.
isString (line 63)

Check for string

  • return: True or False
boolean isString (string $value, string $msg)
  • string $value
  • string $msg: The message to report on error.
isValidCoupon (line 238)

Check coupon entered is valid.

  • return: True or False
boolean isValidCoupon (mixed $value)
  • mixed $value
isWithinRange (line 138)

Check if a number is within a range

  • return: True or False
boolean isWithinRange (int $value, string $msg, int $min, int $max)
  • int $value
  • string $msg: The message to report on error.
  • int $min
  • int $max
resetErrorList (line 291)

Reset the error list

  • return: Empty array.
array resetErrorList ()