/** * @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'), ''); }
/** * @param string control name * @param string label * @param int width of the control * @param int height of the control in text lines */ public function __construct($label = NULL, $cols = NULL, $rows = NULL, $type = 'all') { parent::__construct($label); $this->control->setName('textarea'); $this->control->cols = $cols; $this->control->rows = $rows; $this->value = ''; $this->type = $type; }
public function __construct(EventManager $eventManager, $label = NULL, $cols = NULL, $rows = NULL) { parent::__construct($label, $cols, $rows); $this->eventManager = $eventManager; $this->setAttribute('venne-form-editor', true); }
/** * @param string $label */ public function __construct($label = NULL) { parent::__construct($label); $this->setOmitted(); $this->addRule([$this, 'validateRecaptcha']); }