@@ -135,7 +135,7 @@ |
||
135 | 135 | protected function renderInputTag($writer, $clientID, $onclick) |
136 | 136 | { |
137 | 137 | parent::renderInputTag($writer, $clientID, $onclick); |
138 | - if ($this->getAutoPostBack()) |
|
138 | + if($this->getAutoPostBack()) |
|
139 | 139 | $this->getActiveControl()->registerCallbackClientScript( |
140 | 140 | $this->getClientClassName(), $this->getPostBackOptions()); |
141 | 141 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | /** |
88 | 88 | * @return TBaseActiveCallbackControl standard callback control options. |
89 | 89 | */ |
90 | - public function getActiveControl(){ |
|
90 | + public function getActiveControl() { |
|
91 | 91 | return $this->getAdapter()->getBaseActiveControl(); |
92 | 92 | } |
93 | 93 | |
@@ -95,15 +95,15 @@ discard block |
||
95 | 95 | * Client-side Text property can only be updated after the OnLoad stage. |
96 | 96 | * @param string text content for the textbox |
97 | 97 | */ |
98 | - public function setText($value){ |
|
98 | + public function setText($value) { |
|
99 | 99 | if(parent::getText() === $value) |
100 | 100 | return; |
101 | 101 | |
102 | 102 | parent::setText($value); |
103 | - if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()){ |
|
103 | + if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) { |
|
104 | 104 | $cb = $this->getPage()->getCallbackClient(); |
105 | 105 | $cb->setValue($this, $value); |
106 | - if ($this->getInputMode() == TDatePickerInputMode::DropDownList) |
|
106 | + if($this->getInputMode() == TDatePickerInputMode::DropDownList) |
|
107 | 107 | { |
108 | 108 | $dt = new \DateTime; |
109 | 109 | $dt->setTimeStamp($this->getTimeStampFromText()); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * This method is mainly used by framework and control developers. |
123 | 123 | * @param TCallbackEventParameter the event parameter |
124 | 124 | */ |
125 | - public function raiseCallbackEvent($param){ |
|
125 | + public function raiseCallbackEvent($param) { |
|
126 | 126 | $this->onCallback($param); |
127 | 127 | } |
128 | 128 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * handler can be invoked. |
134 | 134 | * @param TCallbackEventParameter event parameter to be passed to the event handlers |
135 | 135 | */ |
136 | - public function onCallback($param){ |
|
136 | + public function onCallback($param) { |
|
137 | 137 | $this->raiseEvent('OnCallback', $this, $param); |
138 | 138 | } |
139 | 139 |
@@ -140,7 +140,7 @@ |
||
140 | 140 | protected function renderInputTag($writer, $clientID, $onclick) |
141 | 141 | { |
142 | 142 | parent::renderInputTag($writer, $clientID, $onclick); |
143 | - if ($this->getAutoPostBack()) |
|
143 | + if($this->getAutoPostBack()) |
|
144 | 144 | $this->getActiveControl()->registerCallbackClientScript( |
145 | 145 | $this->getClientClassName(), $this->getPostBackOptions()); |
146 | 146 | } |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * @param string|null $class Theme class name in namespace format |
103 | 103 | */ |
104 | 104 | public function setThemeClass($class) { |
105 | - $this->_themeClass = $class === null ? self::DEFAULT_THEMECLASS : (string)$class; |
|
105 | + $this->_themeClass = $class === null ? self::DEFAULT_THEMECLASS : (string) $class; |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getOptions() |
81 | 81 | { |
82 | - if (($options = $this->getViewState('JuiOptions')) === null) |
|
82 | + if(($options = $this->getViewState('JuiOptions')) === null) |
|
83 | 83 | { |
84 | 84 | $options = new TJuiControlOptions($this); |
85 | 85 | $this->setViewState('JuiOptions', $options); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * Raises the OnCreate event |
144 | 144 | * @param object $params event parameters |
145 | 145 | */ |
146 | - public function onCreate ($params) |
|
146 | + public function onCreate($params) |
|
147 | 147 | { |
148 | 148 | $this->raiseEvent('OnCreate', $this, $params); |
149 | 149 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * Raises the OnResize event |
153 | 153 | * @param object $params event parameters |
154 | 154 | */ |
155 | - public function onResize ($params) |
|
155 | + public function onResize($params) |
|
156 | 156 | { |
157 | 157 | $this->raiseEvent('OnResize', $this, $params); |
158 | 158 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * Raises the OnStart event |
162 | 162 | * @param object $params event parameters |
163 | 163 | */ |
164 | - public function onStart ($params) |
|
164 | + public function onStart($params) |
|
165 | 165 | { |
166 | 166 | $this->raiseEvent('OnStart', $this, $params); |
167 | 167 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | * Raises the OnStop event |
171 | 171 | * @param object $params event parameters |
172 | 172 | */ |
173 | - public function onStop ($params) |
|
173 | + public function onStop($params) |
|
174 | 174 | { |
175 | 175 | $this->raiseEvent('OnStop', $this, $params); |
176 | 176 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function getOptions() |
80 | 80 | { |
81 | - if (($options = $this->getViewState('JuiOptions')) === null) |
|
81 | + if(($options = $this->getViewState('JuiOptions')) === null) |
|
82 | 82 | { |
83 | 83 | $options = new TJuiControlOptions($this); |
84 | 84 | $this->setViewState('JuiOptions', $options); |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | protected function getTimeStampFromText() |
277 | 277 | { |
278 | 278 | $pattern = $this->getDateFormat(); |
279 | - $pattern = str_replace(['MMMM', 'MMM'], ['MM','MM'], $pattern); |
|
279 | + $pattern = str_replace(['MMMM', 'MMM'], ['MM', 'MM'], $pattern); |
|
280 | 280 | $formatter = new TSimpleDateFormatter($pattern); |
281 | 281 | return $formatter->parse($this->getText()); |
282 | 282 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | */ |
84 | 84 | public function getOptions() |
85 | 85 | { |
86 | - if (($options = $this->getViewState('JuiOptions')) === null) |
|
86 | + if(($options = $this->getViewState('JuiOptions')) === null) |
|
87 | 87 | { |
88 | 88 | $options = new TJuiControlOptions($this); |
89 | 89 | $this->setViewState('JuiOptions', $options); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function getOptions() |
83 | 83 | { |
84 | - if (($options = $this->getViewState('JuiOptions')) === null) |
|
84 | + if(($options = $this->getViewState('JuiOptions')) === null) |
|
85 | 85 | { |
86 | 86 | $options = new TJuiControlOptions($this); |
87 | 87 | $this->setViewState('JuiOptions', $options); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * Raises the OnCreate event |
150 | 150 | * @param object $params event parameters |
151 | 151 | */ |
152 | - public function onCreate ($params) |
|
152 | + public function onCreate($params) |
|
153 | 153 | { |
154 | 154 | $this->raiseEvent('OnCreate', $this, $params); |
155 | 155 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * Raises the OnSelected event |
159 | 159 | * @param object $params event parameters |
160 | 160 | */ |
161 | - public function onSelected ($params) |
|
161 | + public function onSelected($params) |
|
162 | 162 | { |
163 | 163 | $this->raiseEvent('OnSelected', $this, $params); |
164 | 164 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * Raises the OnSelecting event |
168 | 168 | * @param object $params event parameters |
169 | 169 | */ |
170 | - public function onSelecting ($params) |
|
170 | + public function onSelecting($params) |
|
171 | 171 | { |
172 | 172 | $this->raiseEvent('OnSelecting', $this, $params); |
173 | 173 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * Raises the OnStart event |
177 | 177 | * @param object $params event parameters |
178 | 178 | */ |
179 | - public function onStart ($params) |
|
179 | + public function onStart($params) |
|
180 | 180 | { |
181 | 181 | $this->raiseEvent('OnStart', $this, $params); |
182 | 182 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * Raises the OnStop event |
186 | 186 | * @param object $params event parameters |
187 | 187 | */ |
188 | - public function onStop ($params) |
|
188 | + public function onStop($params) |
|
189 | 189 | { |
190 | 190 | $this->raiseEvent('OnStop', $this, $params); |
191 | 191 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * Raises the OnUnselected event |
195 | 195 | * @param object $params event parameters |
196 | 196 | */ |
197 | - public function onUnselected ($params) |
|
197 | + public function onUnselected($params) |
|
198 | 198 | { |
199 | 199 | $this->raiseEvent('OnUnselected', $this, $params); |
200 | 200 | } |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | * Raises the OnUnselecting event |
204 | 204 | * @param object $params event parameters |
205 | 205 | */ |
206 | - public function onUnselecting ($params) |
|
206 | + public function onUnselecting($params) |
|
207 | 207 | { |
208 | 208 | $this->raiseEvent('OnUnselecting', $this, $params); |
209 | 209 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return [ |
67 | 67 | 'text' => $this->getText(), |
68 | 68 | 'click' => new TJavaScriptLiteral("function(){new Prado.Callback('" . $this->getUniqueID() . "', 'onClick');}" |
69 | - )] ; |
|
69 | + )]; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * Raises the OnClick event |
90 | 90 | * @param object $params event parameters |
91 | 91 | */ |
92 | - public function onClick ($params) |
|
92 | + public function onClick($params) |
|
93 | 93 | { |
94 | 94 | $this->raiseEvent('OnClick', $this, $params); |
95 | 95 | } |