Class CSSColorValidatorRule

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/ColorSC.class.php (line 109)

ValidatorRuleInterface
   |
   --RegexValidatorRule
      |
      --CSSColorValidatorRule
Variable Summary
mixed $_regex
Method Summary
CSSColorValidatorRule CSSColorValidatorRule ()
object ValidatorRule getRule ()
Variables
mixed $_regex (line 112)

Redefinition of:
RegexValidatorRule::$_regex
the regular expression that should be used to check the value
Methods
Constructor CSSColorValidatorRule (line 116)
CSSColorValidatorRule CSSColorValidatorRule ()
getRule (line 178)

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.

This method follows a modified Singleton pattern

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

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:22:05 -0400 by phpDocumentor 1.3.0RC3