Ejemplo n.º 1
0
	/**
	 * @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;
	}
Ejemplo n.º 2
0
	/**
	 * @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;
	}
Ejemplo n.º 3
0
	/**
	 * @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 = '';
	}
Ejemplo n.º 4
0
 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');
 }
Ejemplo n.º 5
0
 public function __construct($label = NULL)
 {
     parent::__construct($label);
     $this->control = NHtml::el($this->captcha_element);
 }
Ejemplo n.º 6
0
Archivo: loader.php Proyecto: GE3/GE3
 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 = '';
 }