Пример #1
0
 /**
  * @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, $cols = NULL, $rows = NULL)
 {
     parent::__construct($label);
     $this->control->setName('textarea');
     $this->control->cols = $cols;
     $this->control->rows = $rows;
     $this->value = '';
 }
Пример #2
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[] = array('String', 'trim');
     $this->value = '';
 }
Пример #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->addFilter($this->sanitize);
     $this->value = '';
 }
Пример #4
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 = '';
 }
Пример #5
0
 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('String', 'trim');
     $this->filters[] = callback($this, 'checkMaxLength');
     $this->value = '';
 }