/** * @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) { parent::__construct($label); $this->control->setName('textarea'); $this->control->cols = $cols; $this->control->rows = $rows; }
/** * @param string label * @param int width of the control * @param int maximum number of characters the user may enter */ public function __construct($label = NULL, $cols = NULL, $maxLength = NULL) { parent::__construct($label); $this->control->type = 'text'; $this->control->size = $cols; $this->control->maxlength = $maxLength; }
/** * @param string control name * @param string label * @param int width of the control * @param int maximum number of characters the user may enter */ public function __construct($label = NULL, $cols = NULL, $maxLength = NULL) { parent::__construct($label); $this->control->type = 'text'; $this->control->size = $cols; $this->control->maxlength = $maxLength; $this->filters[] = callback($this, 'sanitize'); $this->value = ''; }
public function __construct($label = NULL) { if (!@(require_once self::$libPath)) { throw new Exception('The reCAPTCHA library is missing.'); } $this->monitor('Form'); parent::__construct($label); $this->control->type = 'text'; $this->value = ''; $this->control = NHtml::el(); $this->status = NHtml::el('strong'); }
public function __construct($label = NULL) { parent::__construct($label); $this->control = NHtml::el($this->captcha_element); }
function __construct($label = NULL, $cols = NULL, $maxLength = NULL) { parent::__construct($label); $this->control->type = 'text'; $this->control->size = $cols; $this->control->maxlength = $maxLength; $this->filters[] = callback('NString', 'trim'); $this->filters[] = callback($this, 'checkMaxLength'); $this->value = ''; }