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.
Zend_Service_ReCaptcha_MailHide
ENCRYPTION_MODE = 'MCRYPT_MODE_CBC'
ENCRYPTION_CIPHER = 'MCRYPT_RIJNDAEL_128'
ENCRYPTION_BLOCK_SIZE = '16'
ENCRYPTION_IV = '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'
string MAILHIDE_SERVER = 'http://mailhide.recaptcha.net/d'
Url to the mailhide server
string $_email = 'null'
The email address to protect
string $_emailDomainPart = 'null'
The domain part of the email
string $_emailLocalPart = 'null'
The local part of the email
Zend_Validate_Interface $_emailValidator = ''
string $_privateKeyPacked = 'null'
Binary representation of the private key
__construct(
string $publicKey
=
null, string $privateKey
=
null, string $email
=
null, array|Zend_Config $options
=
null
)
:
Local constructor
__toString(
)
:
string
Serialize 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.
_getUrl(
)
:
string
Get the url used on the "hidden" part of the email address
_requireMcrypt(
)
:
See if the mcrypt extension is available
getDefaultOptions(
)
:
array
Get the default set of parameters
getEmail(
)
:
string
Get the email property
getEmailDomainPart(
)
:
string
Get the domain part of the email address
getEmailLocalPart(
)
:
string
Get the local part of the email address
getEmailValidator(
)
:
Zend_Validate_Interface
Get emailValidator
getHtml(
string $email
=
null
)
:
string
Get the HTML code needed for the mail hide
setEmail(
string $email
)
:
Zend_Service_ReCaptcha_MailHide
Set the email property
This method will set the email property along with the local and domain parts
setEmailValidator(
Zend_Validate_Interface $validator
)
:
Zend_Service_ReCaptcha_MailHide
Set email validator
setPrivateKey(
string $privateKey
)
:
Zend_Service_ReCaptcha_MailHide
Override the setPrivateKey method
Override the parent method to store a binary representation of the private key as well.