1: <?php
2:
3: namespace webfilesframework\io\form\formItem;
4:
5: 6: 7: 8: 9: 10:
11: abstract class MAbstractFormItem
12: {
13:
14: protected $name;
15: protected $localizedName;
16: protected $type;
17: protected $code;
18: protected $value;
19:
20: protected $labelWidth = 180;
21:
22: function __construct($name, $value, $localizedName = "")
23: {
24: $this->name = $name;
25: $this->value = $value;
26: $this->localizedName = $localizedName;
27:
28: $this->init();
29: }
30:
31: public abstract function init();
32:
33: public function getCode()
34: {
35: return $this->code;
36: }
37:
38: public function getName()
39: {
40: return $this->name;
41: }
42:
43: public function getLabelWidth()
44: {
45: return $this->labelWidth;
46: }
47:
48: public function setLabelWidth($labelWidth)
49: {
50: $this->labelWidth = $labelWidth;
51: }
52: }
53: