Class WECRegex

Description

Implements interfaces:

Allows for regular expression javascript error checking.

  • version: $Id: WECRegex.class.php,v 1.7 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/WECRegex.class.php (line 24)


	
			
Direct descendents
Class Description
WECNonZeroRegex Allows for regular expression javascript error checking.
WECOptionalRegex Allows for regular expression javascript error checking with optional values.
Variable Summary
mixed $_regex
Method Summary
void WECRegex (string $regex)
boolean checkValue (ref $component)
string generateJavaScript ()
Variables
mixed $_regex (line 28)
Methods
Constructor WECRegex (line 36)

Constructor

  • access: public
void WECRegex (string $regex)
  • string $regex
checkValue (line 64)

Returns true if the passed WizardComponent validates against this rule.

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

Redefined in descendants as:
generateJavaScript (line 49)

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

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

  • access: public
string generateJavaScript ()

Redefined in descendants as:
getRegularExpression (line 78)

gets the regular expression

  • return: the regular expression
  • access: public
string getRegularExpression ()

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