Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($pattern) | |
getPattern () | |
setPattern ($pattern) | |
isValid ($value) | |
![]() | |
getMessages () | |
getMessageVariables () | |
getMessageTemplates () | |
setMessage ($messageString, $messageKey=null) | |
setMessages (array $messages) | |
__get ($property) | |
getErrors () | |
setObscureValue ($flag) | |
getObscureValue () | |
setTranslator ($translator=null) | |
getTranslator () | |
hasTranslator () | |
setDisableTranslator ($flag) | |
translatorIsDisabled () | |
Data Fields | |
const | INVALID = 'regexInvalid' |
const | NOT_MATCH = 'regexNotMatch' |
const | ERROROUS = 'regexErrorous' |
Protected Attributes | |
$_messageTemplates | |
$_messageVariables | |
$_pattern | |
![]() | |
$_value | |
$_messageVariables = array() | |
$_messageTemplates = array() | |
$_messages = array() | |
$_obscureValue = false | |
$_errors = array() | |
$_translator | |
$_translatorDisabled = false | |
Additional Inherited Members | |
![]() | |
static | setDefaultTranslator ($translator=null) |
static | getDefaultTranslator () |
static | hasDefaultTranslator () |
static | getMessageLength () |
static | setMessageLength ($length=-1) |
![]() | |
_createMessage ($messageKey, $value) | |
_implodeRecursive (array $pieces) | |
_error ($messageKey, $value=null) | |
_setValue ($value) | |
![]() | |
static | $_defaultTranslator |
static | $_messageLength = -1 |
__construct | ( | $pattern | ) |
Sets validator options
string | Zend_Config | $pattern |
Zend_Validate_Exception | On missing 'pattern' parameter |
Definition at line 68 of file Regex.php.
getPattern | ( | ) |
Returns the pattern option
isValid | ( | $value | ) |
Defined by Zend_Validate_Interface
Returns true if and only if $value matches against the pattern option
string | $value |
Implements Zend_Validate_Interface.
Definition at line 124 of file Regex.php.
setPattern | ( | $pattern | ) |
Sets the pattern option
string | $pattern |
Zend_Validate_Exception | if there is a fatal error in pattern matching |
Definition at line 103 of file Regex.php.
|
protected |
|
protected |