Completed
Push — autoload ( 4808d1...dcd67f )
by Fabio
60:18 queued 50:52
created
framework/Web/UI/WebControls/TCaptcha.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -267,6 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
 	/**
269 269
 	 * @param string the public key used for generating the token. A random one will be generated if this is not set.
270
+	 * @param string $value
270 271
 	 */
271 272
 	public function setPublicKey($value)
272 273
 	{
@@ -322,6 +323,7 @@  discard block
 block discarded – undo
322 323
 	/**
323 324
 	 * Validates a user input with the token.
324 325
 	 * @param string user input
326
+	 * @param string $input
325 327
 	 * @return boolean if the user input is not the same as the token.
326 328
 	 */
327 329
 	public function validate($input)
@@ -447,6 +449,11 @@  discard block
 block discarded – undo
447 449
 	 * @param string private key
448 450
 	 * @param integer the length of the token
449 451
 	 * @param boolean whether the token is case sensitive
452
+	 * @param string $publicKey
453
+	 * @param string $privateKey
454
+	 * @param string $alphabet
455
+	 * @param integer $tokenLength
456
+	 * @param boolean $caseSensitive
450 457
 	 * @return string the token generated.
451 458
 	 */
452 459
 	protected function generateToken($publicKey,$privateKey,$alphabet,$tokenLength,$caseSensitive)
@@ -459,6 +466,7 @@  discard block
 block discarded – undo
459 466
 	 * Converts a hash string into a string with characters consisting of alphanumeric characters.
460 467
 	 * @param string the hexadecimal representation of the hash string
461 468
 	 * @param string the alphabet used to represent the converted string. If empty, it means '234578adefhijmnrtwyABDEFGHIJLMNQRTWY', which excludes those confusing characters.
469
+	 * @param string $hex
462 470
 	 * @return string the converted string
463 471
 	 */
464 472
 	protected function hash2string($hex,$alphabet='')
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCaptchaValidator.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	}
80 80
 
81 81
 	/**
82
-	 * @return TCaptchaControl the CAPTCHA control to be validated against
82
+	 * @return TCaptcha the CAPTCHA control to be validated against
83 83
 	 * @throws TConfigurationException if the CAPTCHA cannot be found according to {@link setCaptchaControl CaptchaControl}
84 84
 	 */
85 85
 	protected function findCaptchaControl()
@@ -115,6 +115,9 @@  discard block
 block discarded – undo
115 115
 		return $options;
116 116
 	}
117 117
 
118
+	/**
119
+	 * @param string $token
120
+	 */
118 121
 	private function generateTokenHash($token)
119 122
 	{
120 123
 		for($h=0,$i=strlen($token)-1;$i>=0;--$i)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCheckBox.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
 	/**
119 119
 	 * Returns the value of the property that needs validation.
120
-	 * @return mixed the property value to be validated
120
+	 * @return boolean the property value to be validated
121 121
 	 */
122 122
 	public function getValidationPropertyValue()
123 123
 	{
@@ -184,6 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
 	/**
186 186
 	 * @param TTextAlign the alignment of the text caption. Valid values include Left and Right.
187
+	 * @param TTextAlign $value
187 188
 	 */
188 189
 	public function setTextAlign($value)
189 190
 	{
@@ -244,6 +245,7 @@  discard block
 block discarded – undo
244 245
 	/**
245 246
 	 * Sets a value indicating whether clicking on the checkbox will post the page.
246 247
 	 * @param boolean whether clicking on the checkbox will post the page.
248
+	 * @param boolean $value
247 249
 	 */
248 250
 	public function setAutoPostBack($value)
249 251
 	{
@@ -261,6 +263,7 @@  discard block
 block discarded – undo
261 263
 	/**
262 264
 	 * Sets the value indicating whether postback event trigger by this checkbox will cause input validation.
263 265
 	 * @param boolean whether postback event trigger by this checkbox will cause input validation.
266
+	 * @param boolean $value
264 267
 	 */
265 268
 	public function setCausesValidation($value)
266 269
 	{
@@ -277,6 +280,7 @@  discard block
 block discarded – undo
277 280
 
278 281
 	/**
279 282
 	 * @param string the group of validators which the checkbox causes validation upon postback
283
+	 * @param string $value
280 284
 	 */
281 285
 	public function setValidationGroup($value)
282 286
 	{
@@ -410,6 +414,7 @@  discard block
 block discarded – undo
410 414
 
411 415
 	/**
412 416
 	 * @param boolean whether to render javascript.
417
+	 * @param boolean $value
413 418
 	 */
414 419
 	public function setEnableClientScript($value)
415 420
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCheckBoxList.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 	}
155 155
 
156 156
 	/**
157
-	 * @return string the direction of traversing the list, defaults to 'Vertical'
157
+	 * @return TRepeatDirection the direction of traversing the list, defaults to 'Vertical'
158 158
 	 */
159 159
 	public function getRepeatDirection()
160 160
 	{
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	}
171 171
 
172 172
 	/**
173
-	 * @return string how the list should be displayed, using table or using line breaks. Defaults to 'Table'.
173
+	 * @return TRepeatLayout how the list should be displayed, using table or using line breaks. Defaults to 'Table'.
174 174
 	 */
175 175
 	public function getRepeatLayout()
176 176
 	{
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 	/**
450 450
 	 * Returns the value to be validated.
451 451
 	 * This methid is required by IValidatable interface.
452
-	 * @return mixed the value of the property to be validated.
452
+	 * @return string the value of the property to be validated.
453 453
 	 */
454 454
 	public function getValidationPropertyValue()
455 455
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCompareValidator.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -186,6 +186,8 @@
 block discarded – undo
186 186
 	 * Parse the pair of values into the appropriate value type.
187 187
 	 * @param string value one
188 188
 	 * @param string second value
189
+	 * @param string $value1
190
+	 * @param string $value2
189 191
 	 * @return array appropriate type of the value pair, array($value1, $value2);
190 192
 	 */
191 193
 	protected function getComparisonValues($value1, $value2)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCustomValidator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -171,6 +171,7 @@
 block discarded – undo
171 171
 	 * Constructor.
172 172
 	 * @param string property value to be validated
173 173
 	 * @param boolean whether the value is valid
174
+	 * @param boolean $isValid
174 175
 	 */
175 176
 	public function __construct($value,$isValid)
176 177
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataBoundControl.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -151,6 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
 	/**
153 153
 	 * @param boolean if databind has been invoked in this page request
154
+	 * @param boolean $value
154 155
 	 */
155 156
 	protected function setIsDataBound($value)
156 157
 	{
@@ -211,6 +212,7 @@  discard block
 block discarded – undo
211 212
 
212 213
 	/**
213 214
 	 * @param integer the zero-based index of the current page
215
+	 * @param integer $value
214 216
 	 * @throws TInvalidDataValueException if the value is less than 0
215 217
 	 */
216 218
 	public function setCurrentPageIndex($value)
@@ -273,6 +275,7 @@  discard block
 block discarded – undo
273 275
 	 * If true and the control has been prerendered while it uses the data source
274 276
 	 * specified by {@link setDataSourceID}, a databind call will be called by this method.
275 277
 	 * @param boolean whether a databind call is required.
278
+	 * @param boolean $value
276 279
 	 */
277 280
 	protected function setRequiresDataBinding($value)
278 281
 	{
@@ -405,6 +408,9 @@  discard block
 block discarded – undo
405 408
 		return $this->_currentDataSource;
406 409
 	}
407 410
 
411
+	/**
412
+	 * @param Traversable $data
413
+	 */
408 414
 	abstract protected function performDataBinding($data);
409 415
 
410 416
 	/**
@@ -566,6 +572,7 @@  discard block
 block discarded – undo
566 572
 	 * Sets the zero-based index for the item.
567 573
 	 * If the item is not in the item collection (e.g. it is a header item), -1 should be used.
568 574
 	 * @param integer zero-based index of the item.
575
+	 * @return void
569 576
 	 */
570 577
 	public function setItemIndex($value);
571 578
 
@@ -576,6 +583,7 @@  discard block
 block discarded – undo
576 583
 
577 584
 	/**
578 585
 	 * @param TListItemType the item type.
586
+	 * @return void
579 587
 	 */
580 588
 	public function setItemType($value);
581 589
 }
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataGrid.php 1 patch
Doc Comments   +24 added lines, -1 removed lines patch added patch discarded remove patch
@@ -534,6 +534,7 @@  discard block
 block discarded – undo
534 534
 	 * If the item to be selected is already in edit mode, it will remain in edit mode.
535 535
 	 * If the index is less than 0, any existing selection will be cleared up.
536 536
 	 * @param integer the selected item index
537
+	 * @param integer $value
537 538
 	 */
538 539
 	public function setSelectedItemIndex($value)
539 540
 	{
@@ -762,6 +763,7 @@  discard block
 block discarded – undo
762 763
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
763 764
 	 * with <b>cancel</b> command name.
764 765
 	 * @param TDataGridCommandEventParameter event parameter
766
+	 * @param TDataGridCommandEventParameter $param
765 767
 	 */
766 768
 	public function onCancelCommand($param)
767 769
 	{
@@ -773,6 +775,7 @@  discard block
 block discarded – undo
773 775
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
774 776
 	 * with <b>delete</b> command name.
775 777
 	 * @param TDataGridCommandEventParameter event parameter
778
+	 * @param TDataGridCommandEventParameter $param
776 779
 	 */
777 780
 	public function onDeleteCommand($param)
778 781
 	{
@@ -784,6 +787,7 @@  discard block
 block discarded – undo
784 787
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
785 788
 	 * with <b>edit</b> command name.
786 789
 	 * @param TDataGridCommandEventParameter event parameter
790
+	 * @param TDataGridCommandEventParameter $param
787 791
 	 */
788 792
 	public function onEditCommand($param)
789 793
 	{
@@ -794,6 +798,7 @@  discard block
 block discarded – undo
794 798
 	 * Raises <b>OnItemCommand</b> event.
795 799
 	 * This method is invoked when a button control raises <b>OnCommand</b> event.
796 800
 	 * @param TDataGridCommandEventParameter event parameter
801
+	 * @param TDataGridCommandEventParameter $param
797 802
 	 */
798 803
 	public function onItemCommand($param)
799 804
 	{
@@ -805,6 +810,7 @@  discard block
 block discarded – undo
805 810
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
806 811
 	 * with <b>sort</b> command name.
807 812
 	 * @param TDataGridSortCommandEventParameter event parameter
813
+	 * @param TDataGridSortCommandEventParameter $param
808 814
 	 */
809 815
 	public function onSortCommand($param)
810 816
 	{
@@ -816,6 +822,7 @@  discard block
 block discarded – undo
816 822
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
817 823
 	 * with <b>update</b> command name.
818 824
 	 * @param TDataGridCommandEventParameter event parameter
825
+	 * @param TDataGridCommandEventParameter $param
819 826
 	 */
820 827
 	public function onUpdateCommand($param)
821 828
 	{
@@ -827,6 +834,7 @@  discard block
 block discarded – undo
827 834
 	 * This method is invoked right after a datagrid item is created and before
828 835
 	 * added to page hierarchy.
829 836
 	 * @param TDataGridItemEventParameter event parameter
837
+	 * @param TDataGridItemEventParameter $param
830 838
 	 */
831 839
 	public function onItemCreated($param)
832 840
 	{
@@ -838,6 +846,7 @@  discard block
 block discarded – undo
838 846
 	 * This method is invoked right after a datagrid pager is created and before
839 847
 	 * added to page hierarchy.
840 848
 	 * @param TDataGridPagerEventParameter event parameter
849
+	 * @param TDataGridPagerEventParameter $param
841 850
 	 */
842 851
 	public function onPagerCreated($param)
843 852
 	{
@@ -849,6 +858,7 @@  discard block
 block discarded – undo
849 858
 	 * This method is invoked for each datagrid item after it performs
850 859
 	 * databinding.
851 860
 	 * @param TDataGridItemEventParameter event parameter
861
+	 * @param TDataGridItemEventParameter $param
852 862
 	 */
853 863
 	public function onItemDataBound($param)
854 864
 	{
@@ -859,6 +869,7 @@  discard block
 block discarded – undo
859 869
 	 * Raises <b>OnPageIndexChanged</b> event.
860 870
 	 * This method is invoked when current page is changed.
861 871
 	 * @param TDataGridPageChangedEventParameter event parameter
872
+	 * @param TDataGridPageChangedEventParameter $param
862 873
 	 */
863 874
 	public function onPageIndexChanged($param)
864 875
 	{
@@ -1155,6 +1166,11 @@  discard block
 block discarded – undo
1155 1166
 		return new TDataGridItem($itemIndex,$dataSourceIndex,$itemType);
1156 1167
 	}
1157 1168
 
1169
+	/**
1170
+	 * @param integer $itemIndex
1171
+	 * @param boolean $dataBind
1172
+	 * @param TList $columns
1173
+	 */
1158 1174
 	private function createItemInternal($itemIndex,$dataSourceIndex,$itemType,$dataBind,$dataItem,$columns)
1159 1175
 	{
1160 1176
 		$item=$this->createItem($itemIndex,$dataSourceIndex,$itemType);
@@ -1180,6 +1196,7 @@  discard block
 block discarded – undo
1180 1196
 	 * Initializes a datagrid item and cells inside it
1181 1197
 	 * @param TDataGrid datagrid item to be initialized
1182 1198
 	 * @param TDataGridColumnCollection datagrid columns to be used to initialize the cells in the item
1199
+	 * @param TDataGridItem $item
1183 1200
 	 */
1184 1201
 	protected function initializeItem($item,$columns)
1185 1202
 	{
@@ -1212,6 +1229,7 @@  discard block
 block discarded – undo
1212 1229
 	/**
1213 1230
 	 * Builds the pager content based on pager style.
1214 1231
 	 * @param TDataGridPager the container for the pager
1232
+	 * @param TDataGridPager $pager
1215 1233
 	 */
1216 1234
 	protected function buildPager($pager)
1217 1235
 	{
@@ -1237,6 +1255,9 @@  discard block
 block discarded – undo
1237 1255
 	 * @param string caption of the button
1238 1256
 	 * @param string CommandName corresponding to the OnCommand event of the button
1239 1257
 	 * @param string CommandParameter corresponding to the OnCommand event of the button
1258
+	 * @param TDataGridPagerButtonType $buttonType
1259
+	 * @param boolean $enabled
1260
+	 * @param string $commandName
1240 1261
 	 * @return mixed the button instance
1241 1262
 	 */
1242 1263
 	protected function createPagerButton($pager,$buttonType,$enabled,$text,$commandName,$commandParameter)
@@ -1881,6 +1902,7 @@  discard block
 block discarded – undo
1881 1902
 	 * Constructor.
1882 1903
 	 * @param TControl the control originally raises the <b>OnCommand</b> event.
1883 1904
 	 * @param integer new page index
1905
+	 * @param integer $newPageIndex
1884 1906
 	 */
1885 1907
 	public function __construct($source,$newPageIndex)
1886 1908
 	{
@@ -1957,7 +1979,7 @@  discard block
 block discarded – undo
1957 1979
 	}
1958 1980
 
1959 1981
 	/**
1960
-	 * @return TListItemType item type.
1982
+	 * @return string item type.
1961 1983
 	 */
1962 1984
 	public function getItemType()
1963 1985
 	{
@@ -2062,6 +2084,7 @@  discard block
 block discarded – undo
2062 2084
 	/**
2063 2085
 	 * Constructor.
2064 2086
 	 * @param TDataGrid datagrid object
2087
+	 * @param TDataGrid $dataGrid
2065 2088
 	 */
2066 2089
 	public function __construct($dataGrid)
2067 2090
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataGridColumn.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -281,6 +281,7 @@  discard block
 block discarded – undo
281 281
 	 *
282 282
 	 * @param string the name of the viewstate value to be returned
283 283
 	 * @param mixed the default value. If $key is not found in viewstate, $defaultValue will be returned
284
+	 * @param string $key
284 285
 	 * @return mixed the viewstate value corresponding to $key
285 286
 	 */
286 287
 	protected function getViewState($key,$defaultValue=null)
@@ -295,6 +296,7 @@  discard block
 block discarded – undo
295 296
 	 * @param string the name of the viewstate value
296 297
 	 * @param mixed the viewstate value to be set
297 298
 	 * @param mixed default value. If $value===$defaultValue, the item will be cleared from the viewstate.
299
+	 * @param string $key
298 300
 	 */
299 301
 	protected function setViewState($key,$value,$defaultValue=null)
300 302
 	{
@@ -356,6 +358,7 @@  discard block
 block discarded – undo
356 358
 	 * If the data is a component, the field is used as the name of a property.
357 359
 	 * @param mixed data containing the field of value
358 360
 	 * @param string the data field
361
+	 * @param string $field
359 362
 	 * @return mixed data value at the specified field
360 363
 	 * @throws TInvalidDataValueException if the data or the field is invalid.
361 364
 	 */
@@ -515,6 +518,7 @@  discard block
 block discarded – undo
515 518
 	 * as the first and second parameters in {@link sprintf}.
516 519
 	 * @param string format string
517 520
 	 * @param mixed the data to be formatted
521
+	 * @param string $formatString
518 522
 	 * @return string the formatted result
519 523
 	 */
520 524
 	protected function formatDataValue($formatString,$value)
Please login to merge, or discard this patch.