1956. Class

1956.1. Zend\Uri\Mailto

“Mailto” URI handler

The ‘mailto:...’ scheme is loosely defined in RFC-1738

1956.1.1. Methods

1956.1.1.1. isValid

isValid()

Check if the URI is a valid Mailto URI

This applies additional specific validation rules beyond the ones required by the generic URI syntax

Return type:bool
See :

1956.1.1.2. setEmail

setEmail()

Set the email address

This is in fact equivalent to setPath() - but provides a more clear interface

Parameters:string
Return type:Mailto

1956.1.1.3. getEmail

getEmail()

Get the email address

This is infact equivalent to getPath() - but provides a more clear interface

Return type:string

1956.1.1.4. setValidator

setValidator()

Set validator to use when validating email address

Parameters:ValidatorInterface
Return type:Mailto

1956.1.1.5. getValidator

getValidator()

Retrieve validator for use with validating email address

If none is currently set, an EmailValidator instance with default options will be used.

Return type:ValidatorInterface

Project Versions

Table Of Contents

Previous topic

1955. Class

Next topic

1957. Class

This Page