Class Zend_Validate_Regex

Description

Implements interfaces:

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

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


	
			
Variable Summary
 array $_messages
 string $_pattern
Method Summary
 void __construct (string $pattern)
 array getMessages ()
 string getPattern ()
 boolean isValid (string $value)
 Zend_Validate_Regex setPattern (string $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 (string $pattern)
  • string $pattern
getMessages (line 122)

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

  • throws: Zend_Validate_Exception if there is a fatal error in pattern matching
  • 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
setPattern (line 79)

Sets the pattern option

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

Documentation generated on Sat, 05 May 2007 11:57:34 -0700 by phpDocumentor 1.3.2