/** * @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 = ''; }
/** * @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 = ''; }
/** * @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 = ''; }
/** * @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 = ''; }
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 = ''; }