Class iPhorm_Validator_StringLength

Description

String Length Validator

Located in /iPhorm/Validator/StringLength.php (line 6)

iPhorm_Validator_Abstract
   |
   --iPhorm_Validator_StringLength
Variable Summary
 integer|null $_max
 integer $_min
Method Summary
 iPhorm_Validator_StringLength __construct ([ $options = array()])
 integer|null getMax ()
 integer getMin ()
 boolean isValid (string $value)
 void setMax (integer $max)
 void setMin (integer $min)
Variables
integer|null $_max (line 20)

Maximum length. If null, there is no maximum length

  • access: protected
integer $_min (line 13)

Minimum length

  • access: protected

Inherited Variables

Inherited from iPhorm_Validator_Abstract

iPhorm_Validator_Abstract::$_messages
Methods
Constructor __construct (line 22)
  • access: public
iPhorm_Validator_StringLength __construct ([ $options = array()])
  • $options
getMax (line 108)

Get the maximum length

  • access: public
integer|null getMax ()
getMin (line 84)

Get the minimum length

  • access: public
integer getMin ()
isValid (line 43)

Returns true if and only if the string length of $value is at least the min option and no greater than the max option (when the max option is not null).

  • access: public
boolean isValid (string $value)
  • string $value
setMax (line 94)

Set the maximum length

  • access: public
void setMax (integer $max)
  • integer $max
setMin (line 70)

Set the minimum length

  • access: public
void setMin (integer $min)
  • integer $min

Inherited Methods

Inherited From iPhorm_Validator_Abstract

 iPhorm_Validator_Abstract::addMessage()
 iPhorm_Validator_Abstract::getMessages()

Documentation generated on Thu, 24 Feb 2011 22:19:38 +0000 by phpDocumentor 1.4.3