Example #1
0
 /**
  * Constructor
  *
  * @param  array|Zend_Config $options
  * @return void
  */
 public function __construct($options = null)
 {
     $this->setService(new Zend_Service_ReCaptcha());
     $this->_serviceParams = $this->getService()->getParams();
     $this->_serviceOptions = $this->getService()->getOptions();
     parent::__construct($options);
     if ($options instanceof Zend_Config) {
         $options = $options->toArray();
     }
     if (!empty($options)) {
         $this->setOptions($options);
     }
 }