1 <?php
2
3 4 5 6 7 8 9 10 11
12
13 namespace nk2580\wordsmith\Inputs;
14
15 class Repeater extends Input {
16
17 protected $name;
18 protected $class;
19 protected $label;
20
21 protected $fields = [
22
23 ];
24
25 public function __construct($name, $class, $readonly) {
26 $this->name = $name;
27 $this->class = $class;
28 $this->readonly = $readonly;
29 $this->printField();
30 }
31
32 protected function printField() {
33 echo "Implementing the Input class directly is foribbben. please use an input field or type";
34 }
35
36 protected function getClassString() {
37 $string = "";
38 if (is_array($this->class)) {
39 foreach ($this->class as $class) {
40 $string .= $class . " ";
41 }
42 return $string;
43 } else {
44 return $this->class;
45 }
46 }
47
48 }
49