[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/ReCaptcha/ -> MailHide.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
File Size: 351 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Service_ReCaptcha_MailHide:: (13 methods):
  __construct()
  getEmailValidator()
  setEmailValidator()
  _requireMcrypt()
  __toString()
  getDefaultOptions()
  setPrivateKey()
  setEmail()
  getEmail()
  getEmailLocalPart()
  getEmailDomainPart()
  getHtml()
  _getUrl()


Class: Zend_Service_ReCaptcha_MailHide  - X-Ref

Zend_Service_ReCaptcha_MailHide

__construct($publicKey = null, $privateKey = null, $email = null, $options = null)   X-Ref
Local constructor

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

getEmailValidator()   X-Ref
Get emailValidator

return: Zend_Validate_Interface

setEmailValidator(Zend_Validate_Interface $validator)   X-Ref
Set email validator

param: Zend_Validate_Interface $validator
return: Zend_Service_ReCaptcha_MailHide

_requireMcrypt()   X-Ref
See if the mcrypt extension is available


__toString()   X-Ref
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.

return: string

getDefaultOptions()   X-Ref
Get the default set of parameters

return: array

setPrivateKey($privateKey)   X-Ref
Override the setPrivateKey method

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

param: string $privateKey
return: Zend_Service_ReCaptcha_MailHide

setEmail($email)   X-Ref
Set the email property

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

param: string $email
return: Zend_Service_ReCaptcha_MailHide

getEmail()   X-Ref
Get the email property

return: string

getEmailLocalPart()   X-Ref
Get the local part of the email address

return: string

getEmailDomainPart()   X-Ref
Get the domain part of the email address

return: string

getHtml($email = null)   X-Ref
Get the HTML code needed for the mail hide

param: string $email
return: string

_getUrl()   X-Ref
Get the url used on the "hidden" part of the email address

return: string



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1