Class Zend_Validate_StringLength

Description

Implements interfaces:

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

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


	
			
Variable Summary
 integer|null $_max
 array $_messages
 integer $_min
Method Summary
 void __construct ([mixed $min = 0], [mixed $max = null])
 integer|null getMax ()
 array getMessages ()
 integer getMin ()
 boolean isValid (mixed $value)
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 (mixed $min, [mixed $max = null])
  • mixed $min
  • mixed $max
getMax (line 101)

Returns the max option

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

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 (mixed $value)
  • mixed $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 (mixed $max)
  • mixed $max
setMin (line 90)

Sets the min option

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

Documentation generated on Wed, 21 Feb 2007 12:00:34 -0800 by phpDocumentor 1.3.1