Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_ReCaptcha_MailHide Class Reference
Inheritance diagram for Zend_Service_ReCaptcha_MailHide:
Collaboration diagram for Zend_Service_ReCaptcha_MailHide:

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

Detailed Description

Definition at line 35 of file MailHide.php.


Constructor & Destructor Documentation

__construct ( publicKey = null,
privateKey = null,
email = null,
options = null 
)

Local constructor

Parameters:
string$publicKey
string$privateKey
string$email
array | Zend_Config$options

Definition at line 94 of file MailHide.php.

Here is the call graph for this function:


Member Function Documentation

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.

Returns:
string

Reimplemented from Zend_Service_ReCaptcha.

Definition at line 169 of file MailHide.php.

Here is the call graph for this function:

_getUrl ( ) [protected]

Get the url used on the "hidden" part of the email address

Returns:
string

Definition at line 337 of file MailHide.php.

Here is the caller graph for this function:

_requireMcrypt ( ) [protected]

See if the mcrypt extension is available

Exceptions:
Zend_Service_ReCaptcha_MailHide_Exception
See also:
Zend_Service_ReCaptcha_MailHide_Exception

Definition at line 151 of file MailHide.php.

Here is the caller graph for this function:

Get the default set of parameters

Returns:
array

Definition at line 186 of file MailHide.php.

Here is the caller graph for this function:

getEmail ( )

Get the email property

Returns:
string

Definition at line 255 of file MailHide.php.

Here is the caller graph for this function:

Get the domain part of the email address

Returns:
string

Definition at line 275 of file MailHide.php.

Get the local part of the email address

Returns:
string

Definition at line 265 of file MailHide.php.

Here is the caller graph for this function:

Get emailValidator

Returns:
Zend_Validate_Interface

Definition at line 124 of file MailHide.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getHtml ( email = null)

Get the HTML code needed for the mail hide

Parameters:
string$email
Returns:
string
Exceptions:
Zend_Service_ReCaptcha_MailHide_Exception
See also:
Zend_Service_ReCaptcha_MailHide_Exception
Zend_Service_ReCaptcha_MailHide_Exception
Zend_Service_ReCaptcha_MailHide_Exception

Definition at line 287 of file MailHide.php.

Here is the call graph for this function:

setEmail ( email)

Set the email property

This method will set the email property along with the local and domain parts

Parameters:
string$email
Returns:
Zend_Service_ReCaptcha_MailHide

Definition at line 223 of file MailHide.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Set email validator

Parameters:
Zend_Validate_Interface$validator
Returns:
Zend_Service_ReCaptcha_MailHide

Definition at line 139 of file MailHide.php.

Here is the caller graph for this function:

setPrivateKey ( privateKey)

Override the setPrivateKey method

Override the parent method to store a binary representation of the private key as well.

Parameters:
string$privateKey
Returns:
Zend_Service_ReCaptcha_MailHide

Reimplemented from Zend_Service_ReCaptcha.

Definition at line 205 of file MailHide.php.


Field Documentation

$_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.

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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations