예제 #1
0
 /**
  * Constructs the exception.
  *
  * @access public
  * @param string $message        The error message.
  * @param string $emailAddress   The email address of the user who was attempting to login when this CAPTCHA challenge was issued.
  * @param string $password       The password that the user entered when they recieved the challenge.
  * @param string $captchaToken   The token supplied by Google.
  * @param string $captchaUrl     The URL of the image that contains the challenge.
  */
 public function __construct($message, $url, $emailAddress, $password, $captchaToken, $captchaUrl, $response, $code = 0)
 {
     $this->emailAddress = $emailAddress;
     $this->password = $password;
     $this->captchaToken = $captchaToken;
     $this->captchaPath = $captchaUrl;
     $this->captchaUrl = 'http://www.google.com/accounts/' . $captchaUrl;
     parent::__construct($message, $response, $url, $code);
 }
 public function __construct($message, $response = null, $url = null, $code = 0)
 {
     parent::__construct($message, $response, $url, $code);
 }
 public function __construct($message, $code = 0)
 {
     parent::__construct($message, null, null, $code);
 }