category OSS
package OSS_Validate
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

Constructor

__construct(string $pattern) : void

Sets validator options

Parameters

$pattern

string

Returns the pattern option

getPattern() : string

Returns

string

Defined by Zend_Validate_Interface

isValid(string $value) : bool

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

Parameters

$value

string

Exceptions

\Zend_Validate_Exception if there is a fatal error in pattern matching

Returns

bool

Sets the pattern option

setPattern(string $pattern) : \OSS_Validate_OSSNotRegex

Parameters

$pattern

string

Returns

 Properties

 

Error message templates

$_messageTemplates : array
 

Error message variables

$_messageVariables : array
 

Regular expression pattern

$_pattern : string

 Constants

 

INVALID

INVALID 
 

MATCH

MATCH