Class Zend_Validate_StringLength

Description

Implements interfaces:

  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Validate/StringLength.php (line 36)


	
			
Variable Summary
 integer|null $_max
 array $_messages
 integer $_min
Method Summary
 void __construct ([integer $min = 0], [integer $max = null])
 integer|null getMax ()
 array getMessages ()
 integer getMin ()
 boolean isValid (string $value)
 Zend_Validate_StringLength setMax (integer|null $max)
Variables
integer|null $_max (line 52)

Maximum length

If null, there is no maximum length

  • access: protected
array $_messages = array() (line 59)

Array of validation failure messages

  • access: protected
integer $_min (line 43)

Minimum length

  • access: protected
Methods
Constructor __construct (line 68)

Sets validator options

  • access: public
void __construct ([integer $min = 0], [integer $max = null])
  • integer $min
  • integer $max
getMax (line 101)

Returns the max option

  • access: public
integer|null getMax ()
getMessages (line 157)

Defined by Zend_Validate_Interface

Returns array of validation failure messages

  • access: public
array getMessages ()

Implementation of:
Zend_Validate_Interface::getMessages()
Returns an array of messages that explain why a previous isValid() call returned false
getMin (line 79)

Returns the min option

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

Defined by Zend_Validate_Interface

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

Implementation of:
Zend_Validate_Interface::isValid()
Returns true if and only if $value meets the validation requirements
setMax (line 112)

Sets the max option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_StringLength setMax (integer|null $max)
  • integer|null $max
setMin (line 90)

Sets the min option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_StringLength setMin (integer $min)
  • integer $min

Documentation generated on Sat, 05 May 2007 11:58:20 -0700 by phpDocumentor 1.3.2