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

Class: HTML_QuickForm_Rule_CAPTCHA

Source Location: /HTML_QuickForm_CAPTCHA-0.3.0/HTML/QuickForm/Rule/CAPTCHA.php

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_CAPTCHA

Rule to compare a field with a CAPTCHA image


Author(s):

Version:

  • Release: 0.3.0

Copyright:

  • 2006-2008 by Philippe Jausions / 11abacus

Methods


Inherited Variables

Inherited Methods


Class Details

[line 33]
Rule to compare a field with a CAPTCHA image


[ Top ]


Method Detail

validate   [line 46]

boolean validate( string $value, HTML_QuickForm_CAPTCHA_Common $captcha)

Validates the data entered matches the CAPTCHA image that was displayed
  • Return: TRUE if valid, FALSE otherwise
  • Access: public

Parameters:

string   $value     data to validate
HTML_QuickForm_CAPTCHA_Common   $captcha     element to check against

[ Top ]


Documentation generated on Sat, 26 Apr 2008 20:00:04 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.