@@ -60,30 +60,40 @@ function getValue() { return $this->value; }
6060 function setValueSafe ($ value ) { $ this ->value = $ value ;}
6161 function getValueSafe () { return $ this ->value ; }
6262
63+ function setId ($ id ) { $ this ->id = $ id ; }
64+ function getId () { return $ this ->id ; }
65+
66+ function setSize ($ value ) { $ this ->size = $ value ; }
67+ function getSize () { return $ this ->size ; }
68+
69+ function setLabel ($ label ) { $ this ->label = $ label ; }
70+ function getLabel () { return $ this ->label ; }
71+
72+ function setMaxLength ($ value ) { $ this ->max_length = $ value ; }
73+ function getMaxLength () { return $ this ->max_length ; }
74+
75+ function setStyle ($ value ) { $ this ->style = $ value ; }
76+ function getStyle () { return $ this ->style ; }
77+
78+ function setEnabled ($ flag ) { $ this ->enabled = $ flag ; }
79+ function isEnabled () { return $ this ->enabled ; }
80+
81+ function setOnChange ($ str ) { $ this ->on_change = $ str ; }
82+ function setOnClick ($ str ) { $ this ->on_click = $ str ; }
83+
84+ function localize ($ i18n ) {} // Localization occurs in derived classes and is dependent on control type.
85+ // For example, in calendar control we need to localize day and month names.
86+
6387 // TODO: refactoring ongoing down from here.
64- function setId ($ id ) { $ this ->id = $ id ; }
65- function getId () { return $ this ->id ; }
66-
67- function setSize ($ value ) { $ this ->size = $ value ; }
68- function getSize () { return $ this ->size ; }
6988
70- function setLabel ($ label ) { $ this ->label = $ label ; }
71- function getLabel () { return $ this ->label ; }
72-
73- function setMaxLength ($ value ) { $ this ->max_length = $ value ; }
74- function getMaxLength () { return $ this ->max_length ; }
7589
76- function setStyle ($ value ) { $ this ->style = $ value ; }
77- function getStyle () { return $ this ->style ; }
7890
79- function setEnabled ( $ flag ) { $ this -> enabled = $ flag ; }
80- function isEnabled () { return $ this -> enabled ; }
91+
92+
8193
82- function setOnChange ($ str ) { $ this ->on_change = $ str ; }
83- function setOnClick ($ str ) { $ this ->on_click = $ str ; }
8494
85- function setLocalization ( $ i18n ) {
86- }
95+
96+
8797
8898 function toStringControl () {
8999 return "" ;
0 commit comments