Class WECOptionalRegex

Description

Allows for regular expression javascript error checking with optional values.

  • version: $Id: WECOptionalRegex.class.php,v 1.3 2007/09/19 14:04:52 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College
  • since: Jul 23, 2005

Located in /polyphony/main/library/Wizard/ErrorCheckingRules/WECOptionalRegex.class.php (line 24)

WECRegex
   |
   --WECOptionalRegex
Method Summary
boolean checkValue (ref $component)
string generateJavaScript ()
Variables

Inherited Variables

Inherited from WECRegex

WECRegex::$_regex
Methods
checkValue (line 54)

Returns true if the passed WizardComponent validates against this rule.

  • access: public
boolean checkValue (ref $component)
  • ref $component: object $component

Redefinition of:
WECRegex::checkValue()
Returns true if the passed WizardComponent validates against this rule.
generateJavaScript (line 37)

Returns a block of javascript code defining a function like so:

function(element) { return el.value.match(/\w+/); }

  • access: public
string generateJavaScript ()

Redefinition of:
WECRegex::generateJavaScript()
Returns a block of javascript code defining a function like so:

Inherited Methods

Inherited From WECRegex

WECRegex::WECRegex()
WECRegex::checkValue()
WECRegex::generateJavaScript()
WECRegex::getRegularExpression()

Documentation generated on Wed, 19 Sep 2007 10:27:56 -0400 by phpDocumentor 1.3.0RC3