Class NonzeroLengthStringValidatorRule

Description

the NonzeroLengthStringValidatorRule checks a given value to make sure it's string and has a non-zero length

  • version: $Id: NonzeroLengthStringValidatorRule.class.php,v 1.6 2007/09/04 20:25:55 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College

Located in /harmoni/core/utilities/FieldSetValidator/rules/NonzeroLengthStringValidatorRule.class.php (line 16)

ValidatorRuleInterface
   |
   --StringValidatorRule
      |
      --NonzeroLengthStringValidatorRule
Method Summary
boolean check (mixed $val)
object ValidatorRule getRule ()
Methods
check (line 25)

Checks a given value to make sure it's an string and has a non-zero length

  • return: TRUE, if the value is an string; FALSE if it is not.
  • access: public
boolean check (mixed $val)
  • mixed $val: The value to check.

Redefinition of:
StringValidatorRule::check()
Checks a given value to make sure it's an string.
getRule (line 42)

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:
StringValidatorRule::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 StringValidatorRule

StringValidatorRule::check()
StringValidatorRule::getRule()

Inherited From ValidatorRuleInterface

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

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