|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($publicKey=null, $privateKey=null, $email=null, $options=null) | |
| getEmailValidator () | |
| setEmailValidator (Zend_Validate_Interface $validator) | |
| __toString () | |
| getDefaultOptions () | |
| setPrivateKey ($privateKey) | |
| setEmail ($email) | |
| getEmail () | |
| getEmailLocalPart () | |
| getEmailDomainPart () | |
| getHtml ($email=null) | |
Data Fields | |
| const | ENCRYPTION_MODE = MCRYPT_MODE_CBC |
| const | ENCRYPTION_CIPHER = MCRYPT_RIJNDAEL_128 |
| const | ENCRYPTION_BLOCK_SIZE = 16 |
| const | ENCRYPTION_IV = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" |
| const | MAILHIDE_SERVER = 'http://mailhide.recaptcha.net/d' |
Protected Member Functions | |
| _requireMcrypt () | |
| _getUrl () | |
Protected Attributes | |
| $_email = null | |
| $_emailValidator | |
| $_privateKeyPacked = null | |
| $_emailLocalPart = null | |
| $_emailDomainPart = null | |
Definition at line 35 of file MailHide.php.
| __construct | ( | $ | publicKey = null, |
| $ | privateKey = null, |
||
| $ | email = null, |
||
| $ | options = null |
||
| ) |
Local constructor
| string | $publicKey | |
| string | $privateKey | |
| string | ||
| array | Zend_Config | $options |
Definition at line 94 of file MailHide.php.

| __toString | ( | ) |
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.
Reimplemented from Zend_Service_ReCaptcha.
Definition at line 169 of file MailHide.php.

| _getUrl | ( | ) | [protected] |
Get the url used on the "hidden" part of the email address
Definition at line 337 of file MailHide.php.

| _requireMcrypt | ( | ) | [protected] |
See if the mcrypt extension is available
| Zend_Service_ReCaptcha_MailHide_Exception |
Definition at line 151 of file MailHide.php.

Get the default set of parameters
Definition at line 186 of file MailHide.php.

| getEmail | ( | ) |
Get the email property
Definition at line 255 of file MailHide.php.

Get the domain part of the email address
Definition at line 275 of file MailHide.php.
Get the local part of the email address
Definition at line 265 of file MailHide.php.

Get emailValidator
Definition at line 124 of file MailHide.php.


| getHtml | ( | $ | email = null | ) |
Get the HTML code needed for the mail hide
| string |
| Zend_Service_ReCaptcha_MailHide_Exception |
Definition at line 287 of file MailHide.php.

| setEmail | ( | $ | ) |
Set the email property
This method will set the email property along with the local and domain parts
| string |
Definition at line 223 of file MailHide.php.


| setEmailValidator | ( | Zend_Validate_Interface $ | validator | ) |
Set email validator
| Zend_Validate_Interface | $validator |
Definition at line 139 of file MailHide.php.

| setPrivateKey | ( | $ | privateKey | ) |
Override the setPrivateKey method
Override the parent method to store a binary representation of the private key as well.
| string | $privateKey |
Reimplemented from Zend_Service_ReCaptcha.
Definition at line 205 of file MailHide.php.
$_email = null [protected] |
Definition at line 58 of file MailHide.php.
$_emailDomainPart = null [protected] |
Definition at line 84 of file MailHide.php.
$_emailLocalPart = null [protected] |
Definition at line 77 of file MailHide.php.
$_emailValidator [protected] |
Definition at line 63 of file MailHide.php.
$_privateKeyPacked = null [protected] |
Definition at line 70 of file MailHide.php.
| const ENCRYPTION_BLOCK_SIZE = 16 |
Definition at line 42 of file MailHide.php.
| const ENCRYPTION_CIPHER = MCRYPT_RIJNDAEL_128 |
Definition at line 41 of file MailHide.php.
| const ENCRYPTION_IV = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" |
Definition at line 43 of file MailHide.php.
| const ENCRYPTION_MODE = MCRYPT_MODE_CBC |
#@+ Encryption constants
Definition at line 40 of file MailHide.php.
| const MAILHIDE_SERVER = 'http://mailhide.recaptcha.net/d' |
Definition at line 51 of file MailHide.php.