Service/ReCaptcha/MailHide.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- ReCaptcha
\Zend_Service_ReCaptcha_MailHide
Package: Zend_Service\ReCaptcha






Returns


Returns
Zend_Service_ReCaptcha_MailHide
- Parent(s)
- \Zend_Service_ReCaptcha < \Zend_Service_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id$
Constants
Properties
Methods

__construct(string $publicKey = null, string $privateKey = null, string $email = null, array | \Zend_Config $options = null) : voidLocal constructor
Parameters
| Name | Type | Description |
|---|---|---|
| $publicKey | string | |
| $privateKey | string | |
| string | ||
| $options | array | \Zend_Config |

__toString() : stringSerialize as string
When the instance is used as a string it will display the email address. Since we can't
throw exceptions within this method we will trigger a user warning instead.
Returns| Type | Description |
|---|---|
| string |

_getUrl() : stringGet the url used on the "hidden" part of the email address
Returns
| Type | Description |
|---|---|
| string |

_requireMcrypt() : voidSee if the mcrypt extension is available
Throws
| Exception | Description |
|---|---|
| \Zend_Service_ReCaptcha_MailHide_Exception |

getEmailValidator() : \Zend_Validate_InterfaceGet emailValidator
Returns
| Type | Description |
|---|---|
| \Zend_Validate_Interface |

getHtml(string $email = null) : stringGet the HTML code needed for the mail hide
Parameters
Returns
Throws
| Name | Type | Description |
|---|---|---|
| string |
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Service_ReCaptcha_MailHide_Exception |

setEmail(string $email) : \Zend_Service_ReCaptcha_MailHideSet the email property
This method will set the email property along with the local and domain parts
Parameters| Name | Type | Description |
|---|---|---|
| string |
| Type | Description |
|---|---|
| \Zend_Service_ReCaptcha_MailHide |

setEmailValidator(\Zend_Validate_Interface $validator) : \Zend_Service_ReCaptcha_MailHideSet email validator
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $validator | \Zend_Validate_Interface |
| Type | Description |
|---|---|
| \Zend_Service_ReCaptcha_MailHide |

setPrivateKey(string $privateKey) : \Zend_Service_ReCaptcha_MailHideOverride the setPrivateKey method
Override the parent method to store a binary representation of the private key as well.
Parameters| Name | Type | Description |
|---|---|---|
| $privateKey | string |
| Type | Description |
|---|---|
| \Zend_Service_ReCaptcha_MailHide |