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'
Details ENCRYPTION_CIPHER = 'MCRYPT_RIJNDAEL_128'
Details ENCRYPTION_BLOCK_SIZE = '16'
Details ENCRYPTION_IV = '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'
Detailsstring MAILHIDE_SERVER = 'http://mailhide.recaptcha.net/d'
Url to the mailhide server
Detailsstring $_email = 'null'The email address to protect
Detailsstring $_emailDomainPart = 'null'The domain part of the email
Detailsstring $_emailLocalPart = 'null'The local part of the email
DetailsZend_Validate_Interface $_emailValidator = ''
Detailsstring $_privateKeyPacked = 'null'Binary representation of the private key
Details__construct(
string $publicKey
=
null, string $privateKey
=
null, string $email
=
null, array|Zend_Config $options
=
null
)
:
Local constructor
Details__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.
Details_getUrl(
)
:
stringGet the url used on the "hidden" part of the email address
Details_requireMcrypt(
)
:
See if the mcrypt extension is available
DetailsgetDefaultOptions(
)
:
arrayGet the default set of parameters
DetailsgetEmail(
)
:
stringGet the email property
DetailsgetEmailDomainPart(
)
:
stringGet the domain part of the email address
DetailsgetEmailLocalPart(
)
:
stringGet the local part of the email address
DetailsgetEmailValidator(
)
:
Zend_Validate_InterfaceGet emailValidator
DetailsgetHtml(
string $email
=
null
)
:
stringGet the HTML code needed for the mail hide
DetailssetEmail(
string $email
)
:
Zend_Service_ReCaptcha_MailHideSet the email property
This method will set the email property along with the local and domain parts
DetailssetEmailValidator(
Zend_Validate_Interface $validator
)
:
Zend_Service_ReCaptcha_MailHideSet email validator
DetailssetPrivateKey(
string $privateKey
)
:
Zend_Service_ReCaptcha_MailHideOverride the setPrivateKey method
Override the parent method to store a binary representation of the private key as well.
Details