Class Zend_Validate_Regex

Description

Implements interfaces:

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

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


	
			
Variable Summary
 array $_messages
 string $_pattern
Method Summary
 void __construct (mixed $pattern)
 array getMessages ()
 string getPattern ()
 boolean isValid (mixed $value)
 Zend_Validate_Regex setPattern (mixed $pattern)
Variables
array $_messages = array() (line 50)

Array of validation failure messages

  • access: protected
string $_pattern (line 43)

Regular expression pattern

  • access: protected
Methods
Constructor __construct (line 58)

Sets validator options

  • access: public
void __construct (mixed $pattern)
  • mixed $pattern
getMessages (line 119)

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
getPattern (line 68)

Returns the pattern option

  • access: public
string getPattern ()
isValid (line 94)

Defined by Zend_Validate_Interface

Returns true if and only if $value matches against the pattern option

  • access: public
  • throws: Zend_Validate_Exception if there is a fatal error in pattern matching
boolean isValid (mixed $value)
  • mixed $value

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

Sets the pattern option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_Regex setPattern (mixed $pattern)
  • mixed $pattern

Documentation generated on Thu, 18 Jan 2007 10:01:13 -0800 by phpDocumentor 1.3.1