public function __construct($row, $value = null, $fieldSuffix = null) { parent::__construct($row, $value, $fieldSuffix); if ($row->size) { $this->attributes['size'] = $row->size; } }
public function __construct($row, $value, $fieldSuffix) { parent::__construct($row, $value, $fieldSuffix); $this->values = $row->values; $size = (int) $row->size; if ($size) { $this->size = $size; } else { $this->size = 1; // Each item in one line by default } }
public function __construct($row, $value, $fieldSuffix) { parent::__construct($row, $value, $fieldSuffix); if ($row->size) { $this->attributes['size'] = $row->size; } if ($row->multiple) { $this->attributes['multiple'] = true; $this->multiple = true; } $this->values = $row->values; }
public function __construct($row, $value = null, $fieldSuffix = null) { parent::__construct($row, $value, $fieldSuffix); if ($row->place_holder) { $this->attributes['placeholder'] = $row->place_holder; } if ($row->max_length) { $this->attributes['maxlength'] = $row->max_length; } if ($row->size) { $this->attributes['size'] = $row->size; } }
public function __construct($row, $value, $fieldSuffix) { parent::__construct($row, $value, $fieldSuffix); if ($row->place_holder) { $this->attributes['placeholder'] = $row->place_holder; } if ($row->max_length) { $this->attributes['maxlength'] = $row->max_length; } if ($row->rows) { $this->attributes['rows'] = $row->rows; } if ($row->cols) { $this->attributes['cols'] = $row->cols; } }