Ejemplo n.º 1
0
 public function __construct($row, $value = null, $fieldSuffix = null)
 {
     parent::__construct($row, $value, $fieldSuffix);
     if ($row->size) {
         $this->attributes['size'] = $row->size;
     }
 }
Ejemplo n.º 2
0
 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
     }
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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;
     }
 }
Ejemplo n.º 5
0
 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;
     }
 }