/** * */ public function getReCapcha() { $reCaptcha = ''; if ($this->publicKey && $this->privateKey) { $reCaptcha = new Zend_Service_ReCaptcha($this->publicKey, $this->privateKey); if ($this->theme) { $reCaptcha->setOptions(array('theme' => $this->theme)); } } return $reCaptcha; }
/** * Get captcha display box using Zend_Service_ReCaptcha api * @access public * @return Zend_Service_ReCaptcha */ public function getRecaptcha() { $option = Zend_Registry::get('option'); // add secure image using ReCaptcha $recaptcha = new Zend_Service_ReCaptcha($option->captchaOptions->recaptchaPublicKey, $option->captchaOptions->recaptchaPrivateKey); $recaptcha->setOptions($option->captchaOptions->toArray()); return $recaptcha; }