Completed
Push — prado-3.3 ( 93ffb3...b1ee51 )
by Fabio
19:32
created
framework/Web/UI/TTemplateManager.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -69,6 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
 	/**
71 71
 	 * Loads the template from the specified file.
72
+	 * @param string $fileName
72 73
 	 * @return ITemplate template parsed from the specified file, null if the file doesn't exist.
73 74
 	 */
74 75
 	public function getTemplateByFileName($fileName)
@@ -415,6 +416,7 @@  discard block
 block discarded – undo
415 416
 	 * @param TControl control to be configured
416 417
 	 * @param string property name
417 418
 	 * @param mixed property initial value
419
+	 * @param TControl $control
418 420
 	 */
419 421
 	protected function configureControl($control,$name,$value)
420 422
 	{
@@ -431,6 +433,7 @@  discard block
 block discarded – undo
431 433
 	 * @param TComponent component to be configured
432 434
 	 * @param string property name
433 435
 	 * @param mixed property initial value
436
+	 * @param TComponent $component
434 437
 	 */
435 438
 	protected function configureComponent($component,$name,$value)
436 439
 	{
@@ -817,6 +820,8 @@  discard block
 block discarded – undo
817 820
 	/**
818 821
 	 * Parses the attributes of a tag from a string.
819 822
 	 * @param string the string to be parsed.
823
+	 * @param string $str
824
+	 * @param string $offset
820 825
 	 * @return array attribute values indexed by names.
821 826
 	 */
822 827
 	protected function parseAttributes($str,$offset)
@@ -851,6 +856,9 @@  discard block
 block discarded – undo
851 856
 		return $attributes;
852 857
 	}
853 858
 
859
+	/**
860
+	 * @param string $content
861
+	 */
854 862
 	protected function parseTemplateProperty($content,$offset)
855 863
 	{
856 864
 		$line=$this->_startingLine+count(explode("\n",substr($this->_content,0,$offset)))-1;
@@ -860,6 +868,7 @@  discard block
 block discarded – undo
860 868
 	/**
861 869
 	 * Parses a single attribute.
862 870
 	 * @param string the string to be parsed.
871
+	 * @param string $value
863 872
 	 * @return array attribute initialization
864 873
 	 */
865 874
 	protected function parseAttribute($value)
@@ -1002,6 +1011,8 @@  discard block
 block discarded – undo
1002 1011
 	 * @param Exception template exception
1003 1012
 	 * @param int line number
1004 1013
 	 * @param string template string if no source file is used
1014
+	 * @param Exception $e
1015
+	 * @param integer $line
1005 1016
 	 */
1006 1017
 	protected function handleException($e,$line,$input=null)
1007 1018
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/assets/captcha.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
 	return $caseSensitive?$token:strtoupper($token);
55 55
 }
56 56
 
57
+/**
58
+ * @param string $hex
59
+ */
57 60
 function hash2string($hex,$alphabet)
58 61
 {
59 62
 	if(strlen($alphabet)<2)
@@ -121,6 +124,11 @@  discard block
 block discarded – undo
121 124
 	imagedestroy($image);
122 125
 }
123 126
 
127
+/**
128
+ * @param resource $image
129
+ * @param double $width
130
+ * @param double $height
131
+ */
124 132
 function addBackground($image,$width,$height,$opaque,$noisy,$hasGrid,$hasScribble,$morph)
125 133
 {
126 134
 	$background=imagecreatetruecolor($width*2,$height*2);
@@ -148,6 +156,9 @@  discard block
 block discarded – undo
148 156
 		imagecolortransparent($image,$white);
149 157
 }
150 158
 
159
+/**
160
+ * @param resource $image
161
+ */
151 162
 function addNoise($image,$width,$height)
152 163
 {
153 164
 	for($x=0;$x<$width;++$x)
@@ -164,6 +175,9 @@  discard block
 block discarded – undo
164 175
 	}
165 176
 }
166 177
 
178
+/**
179
+ * @param resource $image
180
+ */
167 181
 function addGrid($image,$width,$height)
168 182
 {
169 183
 	for($i=0;$i<$width;$i+=rand(15,25))
@@ -182,6 +196,9 @@  discard block
 block discarded – undo
182 196
 	}
183 197
 }
184 198
 
199
+/**
200
+ * @param resource $image
201
+ */
185 202
 function addScribble($image,$width,$height)
186 203
 {
187 204
 	for($i=0;$i<8;$i++)
@@ -199,6 +216,9 @@  discard block
 block discarded – undo
199 216
 	}
200 217
 }
201 218
 
219
+/**
220
+ * @param resource $image
221
+ */
202 222
 function morphImage($image,$width,$height)
203 223
 {
204 224
 	$tempImage=imagecreatetruecolor($width,$height);
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TAccordion.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
 	private $_active=false;
553 553
 
554 554
 	/**
555
-	 * @return the tag name for the view element
555
+	 * @return string tag name for the view element
556 556
 	 */
557 557
 	protected function getTagName()
558 558
 	{
@@ -725,6 +725,7 @@  discard block
 block discarded – undo
725 725
 	/**
726 726
 	 * Finds the index of the accordion view whose ID is the same as the one being looked for.
727 727
 	 * @param string the explicit ID of the accordion view to be looked for
728
+	 * @param string $id
728 729
 	 * @return integer the index of the accordion view found, -1 if not found.
729 730
 	 */
730 731
 	public function findIndexByID($id)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TBaseDataList.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -166,6 +166,7 @@
 block discarded – undo
166 166
 	 * Otherwise, an exception will be raised.
167 167
 	 * @param mixed data item
168 168
 	 * @param mixed field name
169
+	 * @param string $field
169 170
 	 * @return mixed data value at the specified field
170 171
 	 * @throws TInvalidDataValueException if the data is invalid
171 172
 	 */
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TBaseValidator.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,6 +182,7 @@  discard block
 block discarded – undo
182 182
 	 * TBaseValidator::$_clientClass, be sure to update the corresponding
183 183
 	 * "Javascript/validation3.js" file as well.
184 184
 	 * @param TControl control to validate.
185
+	 * @param TControl $control
185 186
 	 * @return string control type for client-side validation.
186 187
 	 */
187 188
 	private function getClientControlClass($control)
@@ -259,7 +260,7 @@  discard block
 block discarded – undo
259 260
 	/**
260 261
 	 * Update the ControlToValidate component's css class depending
261 262
 	 * if the ControlCssClass property is set, and whether this is valid.
262
-	 * @return boolean true if change, false otherwise.
263
+	 * @return boolean|null true if change, false otherwise.
263 264
 	 */
264 265
 	protected function updateControlCssClass()
265 266
 	{
@@ -384,6 +385,7 @@  discard block
 block discarded – undo
384 385
 	 * The ID path is the dot-connected IDs of the controls reaching from
385 386
 	 * the validator's naming container to the target control.
386 387
 	 * @param string the ID path
388
+	 * @param string $value
387 389
 	 */
388 390
 	public function setControlToValidate($value)
389 391
 	{
@@ -549,6 +551,7 @@  discard block
 block discarded – undo
549 551
 
550 552
 	/**
551 553
 	 * @param string the css class that is applied to the control being validated in case the validation fails
554
+	 * @param string $value
552 555
 	 */
553 556
 	public function setControlCssClass($value)
554 557
 	{
@@ -691,7 +694,7 @@  discard block
 block discarded – undo
691 694
 	}
692 695
 
693 696
 	/**
694
-	 * @return boolean true to observe changes.
697
+	 * @return boolean|string true to observe changes.
695 698
 	 */
696 699
 	public function getObserveChanges()
697 700
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TBulletedList.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -216,6 +216,7 @@  discard block
 block discarded – undo
216 216
 	 * This method is invoked when the {@link getDisplayMode DisplayMode} is 'LinkButton'
217 217
 	 * and end-users click on one of the buttons.
218 218
 	 * @param TBulletedListEventParameter event parameter.
219
+	 * @param TBulletedListEventParameter $param
219 220
 	 */
220 221
 	public function onClick($param)
221 222
 	{
@@ -425,6 +426,7 @@  discard block
 block discarded – undo
425 426
 	/**
426 427
 	 * Constructor.
427 428
 	 * @param integer index of the item clicked
429
+	 * @param integer $index
428 430
 	 */
429 431
 	public function __construct($index)
430 432
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TButton.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -218,6 +218,7 @@  discard block
 block discarded – undo
218 218
 	 * If you override this method, be sure to call the parent implementation
219 219
 	 * so that the event handlers can be invoked.
220 220
 	 * @param TCommandEventParameter event parameter to be passed to the event handlers
221
+	 * @param TCommandEventParameter $param
221 222
 	 */
222 223
 	public function onCommand($param)
223 224
 	{
@@ -342,6 +343,7 @@  discard block
 block discarded – undo
342 343
 
343 344
 	/**
344 345
 	 * @param string the group of validators which the button causes validation upon postback
346
+	 * @param string $value
345 347
 	 */
346 348
 	public function setValidationGroup($value)
347 349
 	{
Please login to merge, or discard this patch.
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.