@@ -60,6 +60,7 @@ discard block |
||
60 | 60 | * Constructor, create a new date time formatter. |
61 | 61 | * @param string formatting pattern. |
62 | 62 | * @param string pattern and value charset |
63 | + * @param string $pattern |
|
63 | 64 | */ |
64 | 65 | public function __construct($pattern, $charset='UTF-8') |
65 | 66 | { |
@@ -93,6 +94,7 @@ discard block |
||
93 | 94 | |
94 | 95 | /** |
95 | 96 | * @param string formatting charset. |
97 | + * @param string $charset |
|
96 | 98 | */ |
97 | 99 | public function setCharset($charset) |
98 | 100 | { |
@@ -313,6 +315,7 @@ discard block |
||
313 | 315 | |
314 | 316 | /** |
315 | 317 | * Calculate the length of a string, may be consider iconv_strlen? |
318 | + * @param string $string |
|
316 | 319 | */ |
317 | 320 | private function length($string) |
318 | 321 | { |
@@ -338,6 +341,9 @@ discard block |
||
338 | 341 | |
339 | 342 | /** |
340 | 343 | * Returns true if char at position equals a particular char. |
344 | + * @param string $string |
|
345 | + * @param integer $pos |
|
346 | + * @param string $char |
|
341 | 347 | */ |
342 | 348 | private function charEqual($string, $pos, $char) |
343 | 349 | { |
@@ -350,6 +356,10 @@ discard block |
||
350 | 356 | * @param int starting position |
351 | 357 | * @param int minimum integer length |
352 | 358 | * @param int maximum integer length |
359 | + * @param string $str |
|
360 | + * @param integer $i |
|
361 | + * @param integer|null $minlength |
|
362 | + * @param integer|null $maxlength |
|
353 | 363 | * @return string integer portion of the string, null otherwise |
354 | 364 | */ |
355 | 365 | private function getInteger($str,$i,$minlength,$maxlength) |
@@ -51,6 +51,7 @@ discard block |
||
51 | 51 | * Constructs TSax3_Trim |
52 | 52 | * @param object handler object being decorated |
53 | 53 | * @param string original handler method |
54 | + * @param string $orig_method |
|
54 | 55 | * @access protected |
55 | 56 | */ |
56 | 57 | function __construct(&$orig_obj, $orig_method) { |
@@ -99,6 +100,8 @@ discard block |
||
99 | 100 | * @param object handler object being decorated |
100 | 101 | * @param string original open handler method |
101 | 102 | * @param string original close handler method |
103 | + * @param string $orig_open_method |
|
104 | + * @param string $orig_close_method |
|
102 | 105 | * @access protected |
103 | 106 | */ |
104 | 107 | function __construct(&$orig_obj, $orig_open_method, $orig_close_method) { |
@@ -149,6 +152,7 @@ discard block |
||
149 | 152 | * Constructs TSax3_LineFeed |
150 | 153 | * @param object handler object being decorated |
151 | 154 | * @param string original handler method |
155 | + * @param string $orig_method |
|
152 | 156 | * @access protected |
153 | 157 | */ |
154 | 158 | function __construct(&$orig_obj, $orig_method) { |
@@ -191,6 +195,7 @@ discard block |
||
191 | 195 | * Constructs TSax3_Tab |
192 | 196 | * @param object handler object being decorated |
193 | 197 | * @param string original handler method |
198 | + * @param string $orig_method |
|
194 | 199 | * @access protected |
195 | 200 | */ |
196 | 201 | function __construct(&$orig_obj, $orig_method) { |
@@ -234,6 +239,7 @@ discard block |
||
234 | 239 | * Constructs TSax3_Entities_Parsed |
235 | 240 | * @param object handler object being decorated |
236 | 241 | * @param string original handler method |
242 | + * @param string $orig_method |
|
237 | 243 | * @access protected |
238 | 244 | */ |
239 | 245 | function __construct(&$orig_obj, $orig_method) { |
@@ -286,6 +292,7 @@ discard block |
||
286 | 292 | * Constructs TSax3_Entities_Unparsed |
287 | 293 | * @param object handler object being decorated |
288 | 294 | * @param string original handler method |
295 | + * @param string $orig_method |
|
289 | 296 | * @access protected |
290 | 297 | */ |
291 | 298 | function __construct(&$orig_obj, $orig_method) { |
@@ -329,6 +336,7 @@ discard block |
||
329 | 336 | * Constructs TSax3_Entities_Unparsed |
330 | 337 | * @param object handler object being decorated |
331 | 338 | * @param string original handler method |
339 | + * @param string $orig_method |
|
332 | 340 | * @access protected |
333 | 341 | */ |
334 | 342 | function __construct(&$orig_obj, $orig_method) { |
@@ -135,7 +135,6 @@ discard block |
||
135 | 135 | * Raises the onDrop event. |
136 | 136 | * The drop parameters are encapsulated into a {@link TDropContainerEventParameter} |
137 | 137 | * |
138 | - * @param object $dropControlId |
|
139 | 138 | */ |
140 | 139 | public function onDrop ($dropParams) |
141 | 140 | { |
@@ -223,7 +222,7 @@ discard block |
||
223 | 222 | /** |
224 | 223 | * Override parent implementation to return the container control collection. |
225 | 224 | * |
226 | - * @return TControlCollection |
|
225 | + * @return \Prado\Web\UI\TControlCollection |
|
227 | 226 | */ |
228 | 227 | public function getControls() |
229 | 228 | { |
@@ -260,6 +260,7 @@ discard block |
||
260 | 260 | * method, be sure to call the parent implementation so that the event |
261 | 261 | * handler can be invoked. |
262 | 262 | * @param TCallbackEventParameter event parameter to be passed to the event handlers |
263 | + * @param TJuiAutoCompleteEventParameter $param |
|
263 | 264 | */ |
264 | 265 | public function onSuggest($param) |
265 | 266 | { |
@@ -272,6 +273,7 @@ discard block |
||
272 | 273 | * method, be sure to call the parent implementation so that the event |
273 | 274 | * handler can be invoked. |
274 | 275 | * @param TCallbackEventParameter event parameter to be passed to the event handlers |
276 | + * @param TJuiAutoCompleteEventParameter $param |
|
275 | 277 | */ |
276 | 278 | public function onSuggestionSelected($param) |
277 | 279 | { |
@@ -317,6 +317,9 @@ |
||
317 | 317 | { |
318 | 318 | private $_template; |
319 | 319 | |
320 | + /** |
|
321 | + * @param string $template |
|
322 | + */ |
|
320 | 323 | public function __construct($template) |
321 | 324 | { |
322 | 325 | $this->_template = $template; |
@@ -111,6 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * Sets the format of the date string. |
113 | 113 | * @param string the format of the date string |
114 | + * @param string $value |
|
114 | 115 | */ |
115 | 116 | public function setDateFormat($value) |
116 | 117 | { |
@@ -250,6 +251,7 @@ discard block |
||
250 | 251 | |
251 | 252 | /** |
252 | 253 | * @param integer date picker starting year, default is 2000. |
254 | + * @param integer $value |
|
253 | 255 | */ |
254 | 256 | public function setFromYear($value) |
255 | 257 | { |
@@ -359,6 +361,7 @@ discard block |
||
359 | 361 | |
360 | 362 | /** |
361 | 363 | * @param string date string |
364 | + * @param string $value |
|
362 | 365 | */ |
363 | 366 | public function setDate($value) |
364 | 367 | { |
@@ -482,7 +485,7 @@ discard block |
||
482 | 485 | * Loads date from drop down list data. |
483 | 486 | * @param string the key that can be used to retrieve data from the input data collection |
484 | 487 | * @param array the input data collection |
485 | - * @return array the date selected |
|
488 | + * @return string the date selected |
|
486 | 489 | */ |
487 | 490 | protected function getDateFromPostData($key, $values) |
488 | 491 | { |
@@ -586,7 +589,7 @@ discard block |
||
586 | 589 | } |
587 | 590 | |
588 | 591 | /** |
589 | - * @return DateTimeFormatInfo date time format information for the current culture. |
|
592 | + * @return \Prado\I18N\core\DateTimeFormatInfo date time format information for the current culture. |
|
590 | 593 | */ |
591 | 594 | protected function getLocalizedCalendarInfo() |
592 | 595 | { |
@@ -742,6 +745,7 @@ discard block |
||
742 | 745 | * "MMMM" will return the month names, "MM" or "MMM" return abbr. month names |
743 | 746 | * and "M" return month digits. |
744 | 747 | * @param DateTimeFormatInfo localized date format information. |
748 | + * @param \Prado\I18N\core\DateTimeFormatInfo $info |
|
745 | 749 | * @return array localized month names. |
746 | 750 | */ |
747 | 751 | protected function getLocalizedMonthNames($info) |
@@ -233,6 +233,10 @@ |
||
233 | 233 | * @param string button caption |
234 | 234 | * @param boolean whether the button should cause validation |
235 | 235 | * @param string the validation group that the button belongs to |
236 | + * @param string $commandName |
|
237 | + * @param string $text |
|
238 | + * @param boolean $causesValidation |
|
239 | + * @param string $validationGroup |
|
236 | 240 | * @return mixed the newly created button. |
237 | 241 | */ |
238 | 242 | protected function createButton($commandName,$text,$causesValidation,$validationGroup) |
@@ -53,6 +53,7 @@ discard block |
||
53 | 53 | * control does work with javascript and your class wants to flag that it requires an id |
54 | 54 | * to operate properly. Once set to true, it stays that way. |
55 | 55 | * @param boolean pass true to enable enforcement of the tag attribute id. |
56 | + * @param boolean $value |
|
56 | 57 | */ |
57 | 58 | public function setEnsureId($value) |
58 | 59 | { |
@@ -60,7 +61,7 @@ discard block |
||
60 | 61 | } |
61 | 62 | |
62 | 63 | /** |
63 | - * @return whether this web control must have an id |
|
64 | + * @return boolean this web control must have an id |
|
64 | 65 | */ |
65 | 66 | public function getEnsureId() |
66 | 67 | { |
@@ -107,6 +108,7 @@ discard block |
||
107 | 108 | * Only one-character string can be set, or an exception will be raised. |
108 | 109 | * Pass in an empty string if you want to disable access key. |
109 | 110 | * @param string the access key to be set |
111 | + * @param string $value |
|
110 | 112 | * @throws TInvalidDataValueException if the access key is specified with more than one character |
111 | 113 | */ |
112 | 114 | public function setAccessKey($value) |
@@ -186,6 +188,7 @@ discard block |
||
186 | 188 | |
187 | 189 | /** |
188 | 190 | * @param string the border width of the control |
191 | + * @param string $value |
|
189 | 192 | */ |
190 | 193 | public function setBorderWidth($value) |
191 | 194 | { |
@@ -213,6 +216,7 @@ discard block |
||
213 | 216 | |
214 | 217 | /** |
215 | 218 | * @param string the foreground color of the control |
219 | + * @param string $value |
|
216 | 220 | */ |
217 | 221 | public function setForeColor($value) |
218 | 222 | { |
@@ -239,7 +243,7 @@ discard block |
||
239 | 243 | } |
240 | 244 | |
241 | 245 | /** |
242 | - * @return TDisplayStyle display style of the control, default is TDisplayStyle::Fixed |
|
246 | + * @return string display style of the control, default is TDisplayStyle::Fixed |
|
243 | 247 | */ |
244 | 248 | public function getDisplay() |
245 | 249 | { |
@@ -248,6 +252,7 @@ discard block |
||
248 | 252 | |
249 | 253 | /** |
250 | 254 | * @param string the css class of the control |
255 | + * @param string $value |
|
251 | 256 | */ |
252 | 257 | public function setCssClass($value) |
253 | 258 | { |
@@ -267,6 +272,7 @@ discard block |
||
267 | 272 | |
268 | 273 | /** |
269 | 274 | * @param string the height of the control |
275 | + * @param string $value |
|
270 | 276 | */ |
271 | 277 | public function setHeight($value) |
272 | 278 | { |
@@ -310,6 +316,7 @@ discard block |
||
310 | 316 | * Sets the css style string of the control. |
311 | 317 | * The style string will be prefixed to the styles set via other control properties (e.g. Height, Width). |
312 | 318 | * @param string the css style string |
319 | + * @param string $value |
|
313 | 320 | * @throws TInvalidDataValueException if the parameter is not a string |
314 | 321 | */ |
315 | 322 | public function setStyle($value) |
@@ -340,6 +347,7 @@ discard block |
||
340 | 347 | * Sets the tab index of the control. |
341 | 348 | * Pass 0 if you want to disable tab index. |
342 | 349 | * @param integer the tab index to be set |
350 | + * @param integer $value |
|
343 | 351 | */ |
344 | 352 | public function setTabIndex($value) |
345 | 353 | { |
@@ -388,6 +396,7 @@ discard block |
||
388 | 396 | |
389 | 397 | /** |
390 | 398 | * @param string the width of the control |
399 | + * @param string $value |
|
391 | 400 | */ |
392 | 401 | public function setWidth($value) |
393 | 402 | { |
@@ -128,6 +128,7 @@ |
||
128 | 128 | * Initializes the control . |
129 | 129 | * @param TWebControl The control that is to be decorated. |
130 | 130 | * @param boolean whether decoration is just around the inner content |
131 | + * @param TWebControl $control |
|
131 | 132 | */ |
132 | 133 | public function __construct($control, $onlyinternal = false) { |
133 | 134 | $this->_control = $control; |