Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Additional Inherited Members | |
![]() | |
static | setDefaultTranslator ($translator=null) |
static | getDefaultTranslator () |
static | hasDefaultTranslator () |
static | getMessageLength () |
static | setMessageLength ($length=-1) |
![]() | |
const | INVALID = 'emailAddressInvalid' |
const | INVALID_FORMAT = 'emailAddressInvalidFormat' |
const | INVALID_HOSTNAME = 'emailAddressInvalidHostname' |
const | INVALID_MX_RECORD = 'emailAddressInvalidMxRecord' |
const | INVALID_SEGMENT = 'emailAddressInvalidSegment' |
const | DOT_ATOM = 'emailAddressDotAtom' |
const | QUOTED_STRING = 'emailAddressQuotedString' |
const | INVALID_LOCAL_PART = 'emailAddressInvalidLocalPart' |
const | LENGTH_EXCEEDED = 'emailAddressLengthExceeded' |
![]() | |
_createMessage ($messageKey, $value) | |
_implodeRecursive (array $pieces) | |
_error ($messageKey, $value=null) | |
_setValue ($value) | |
![]() | |
$_messageTemplates | |
$_invalidIp | |
$_messageVariables | |
$_hostname | |
$_localPart | |
$_options | |
![]() | |
$_value | |
$_messageVariables = array() | |
$_messageTemplates = array() | |
$_messages = array() | |
$_obscureValue = false | |
$_errors = array() | |
$_translator | |
$_translatorDisabled = false | |
![]() | |
static | $_defaultTranslator |
static | $_messageLength = -1 |
Definition at line 10 of file EmailAddress.php.
__construct | ( | $options = [] | ) |
Instantiates hostname validator for local use. TLD validation is off by default.
The following option keys are supported: 'hostname' => A hostname validator, see Zend_Validate_Hostname 'allow' => Options for the hostname validator, see Zend_Validate_Hostname::ALLOW_* 'mx' => If MX check should be enabled, boolean 'deep' => If a deep MX check should be done, boolean
Definition at line 24 of file EmailAddress.php.
setValidateTld | ( | bool | $shouldValidate | ) |
Sets whether or not top-level domains should be validated
bool | $shouldValidate |
Definition at line 37 of file EmailAddress.php.