/** * @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 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 maximum number of characters the user may enter */ public function __construct($label = NULL, $maxLength = NULL) { parent::__construct($label); $this->control->type = 'text'; $this->control->maxlength = $maxLength; $this->setOption('type', 'text'); }
/** * @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; $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 = ''; }
/** * @param string label */ public function __construct($label = NULL) { parent::__construct($label); $this->control->setName('textarea'); }
/** * Initialization * * @throws \Exception */ public function __construct() { if (extension_loaded('gd') === FALSE) { throw new \Exception('PHP extension GD is not loaded.'); } parent::__construct(); $this->addFilter('strtolower'); $this->label = Html::el('img'); $this->setFontFile(self::$defaultFontFile); $this->setFontSize(self::$defaultFontSize); $this->setTextColor(self::$defaultTextColor); $this->setTextMargin(self::$defaultTextMargin); $this->setBackgroundColor(self::$defaultBackgroundColor); $this->setLength(self::$defaultLength); $this->setImageHeight(self::$defaultImageHeight); $this->setImageWidth(self::$defaultImageWidth); $this->setFilterSmooth(self::$defaultFilterSmooth); $this->setFilterContrast(self::$defaultFilterContrast); $this->setExpire(self::$defaultExpire); $this->useNumbers(self::$defaultUseNumbers); $this->setUid(uniqid()); }
public function __construct($label = NULL, $keyValDelimiter = NULL) { parent::__construct($label); $this->control->setName('textarea'); $this->keyValDelimiter = $keyValDelimiter === NULL ? NULL : (string) $keyValDelimiter; }
public function __construct($label = NULL) { parent::__construct($label); $this->control->type = 'text'; }
/** * @param NULL|string $caption */ public function __construct($caption = NULL) { parent::__construct($caption); $this->loader = new Loader(); }
/** * @param string|NULL */ public function __construct($caption = NULL) { parent::__construct($caption); $this->setOmitted(); $this->control = Html::el('span')->addClass('static-form-control'); }