Class CSSLengthValidatorRuleWithOptions

Description

a RegexValidatorRule checks a given value against a regular expression

  • copyright: Copyright © 2005, Middlebury College
  • version: $Id: RegexValidatorRule.class.php,v 1.6 2007/09/04 20:25:55 adamfranco Exp $

Located in /harmoni/core/GUIManager/StyleComponents/LengthSC.class.php (line 93)

ValidatorRuleInterface
   |
   --RegexValidatorRule
      |
      --CSSLengthValidatorRuleWithOptions
Method Summary
object ValidatorRule getRule (mixed $options)
Variables

Inherited Variables

Inherited from RegexValidatorRule

RegexValidatorRule::$_regex
Methods
getRule (line 114)

Note: this class takes a parameter and may have several instantiations.

This is a static method to return an already-created instance of a validator rule. There are at most about a hundred unique rule objects in use during any given execution cycle, but rule objects are instantiated hundreds of thousands of times.

This method follows a modified Singleton pattern

  • since: 3/28/05
  • static:
  • access: public
object ValidatorRule getRule (mixed $options)

Redefinition of:
RegexValidatorRule::getRule()
This is a static method to return an already-created instance of a validator rule. There are at most about a hundred unique rule objects in use durring any given execution cycle, but rule objects are instantiated hundreds of thousands of times.

Inherited Methods

Inherited From RegexValidatorRule

RegexValidatorRule::RegexValidatorRule()
RegexValidatorRule::check()
RegexValidatorRule::generateJavaScript()
RegexValidatorRule::getRegularExpression()
RegexValidatorRule::getRule()
RegexValidatorRule::getRuleByArray()
RegexValidatorRule::getRuleKey()

Inherited From ValidatorRuleInterface

ValidatorRuleInterface::check()
ValidatorRuleInterface::getRule()
ValidatorRuleInterface::getRuleKey()

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