public function __construct($label = NULL)
{
parent::__construct($label);
$this->control->setName('textarea');
$this->setOption('type', 'textarea');
}
/** * @param string $apiKey * @param string $secretKey * @param string $label * @throws Exception */ public function __construct($apiKey, $secretKey, $label = NULL) { parent::__construct($label); $this->setApiKey($apiKey); $this->setSecretKey($secretKey); $this->setOmitted(); $this->addRule(array($this, 'validateRecaptcha'), ''); }