Completed
Push — prado-3.3 ( f4da81...5dd4b5 )
by Fabio
09:03
created
framework/Web/UI/WebControls/TDataSourceView.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 	public function setStartRowIndex($value)
32 32
 	{
33
-		if(($value=TPropertyValue::ensureInteger($value))<0)
33
+		if(($value=TPropertyValue::ensureInteger($value)) < 0)
34 34
 			$value=0;
35 35
 		$this->_startRowIndex=$value;
36 36
 	}
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 	public function setMaximumRows($value)
44 44
 	{
45
-		if(($value=TPropertyValue::ensureInteger($value))<0)
45
+		if(($value=TPropertyValue::ensureInteger($value)) < 0)
46 46
 			$value=0;
47 47
 		$this->_maximumRows=$value;
48 48
 	}
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
 	public function setTotalRowCount($value)
66 66
 	{
67
-		if(($value=TPropertyValue::ensureInteger($value))<0)
67
+		if(($value=TPropertyValue::ensureInteger($value)) < 0)
68 68
 			$value=0;
69 69
 		$this->_totalRowCount=$value;
70 70
 	}
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	private $_owner;
83 83
 	private $_name;
84 84
 
85
-	public function __construct(IDataSource $owner,$viewName)
85
+	public function __construct(IDataSource $owner, $viewName)
86 86
 	{
87 87
 		$this->_owner=$owner;
88 88
 		$this->_name=$viewName;
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 * @param array|TMap new values
112 112
 	 * @return integer affected rows
113 113
 	 */
114
-	public function update($keys,$values)
114
+	public function update($keys, $values)
115 115
 	{
116 116
 		throw new TNotSupportedException('datasourceview_update_unsupported');
117 117
 	}
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
 	public function onDataSourceViewChanged($param)
170 170
 	{
171
-		$this->raiseEvent('OnDataSourceViewChanged',$this,$param);
171
+		$this->raiseEvent('OnDataSourceViewChanged', $this, $param);
172 172
 	}
173 173
 }
174 174
 
@@ -183,9 +183,9 @@  discard block
 block discarded – undo
183 183
 {
184 184
 	private $_dataSource=null;
185 185
 
186
-	public function __construct(IDataSource $owner,$viewName,$dataSource)
186
+	public function __construct(IDataSource $owner, $viewName, $dataSource)
187 187
 	{
188
-		parent::__construct($owner,$viewName);
188
+		parent::__construct($owner, $viewName);
189 189
 		if($dataSource===null || is_array($dataSource))
190 190
 			$this->_dataSource=new TMap($dataSource);
191 191
 		else if($dataSource instanceof Traversable)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TLabel.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	 */
38 38
 	protected function getTagName()
39 39
 	{
40
-		return ($this->getForControl()==='')?'span':'label';
40
+		return ($this->getForControl()==='') ? 'span' : 'label';
41 41
 	}
42 42
 
43 43
 	/**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	protected function addAttributesToRender($writer)
49 49
 	{
50 50
 		if($this->_forControl!=='')
51
-			$writer->addAttribute('for',$this->_forControl);
51
+			$writer->addAttribute('for', $this->_forControl);
52 52
 		parent::addAttributesToRender($writer);
53 53
 	}
54 54
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 				}
72 72
 			}
73 73
 			else
74
-				throw new TInvalidDataValueException('label_associatedcontrol_invalid',$aid);
74
+				throw new TInvalidDataValueException('label_associatedcontrol_invalid', $aid);
75 75
 		}
76 76
 		else
77 77
 			parent::render($writer);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 */
95 95
 	public function getText()
96 96
 	{
97
-		return $this->getViewState('Text','');
97
+		return $this->getViewState('Text', '');
98 98
 	}
99 99
 
100 100
 	/**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	public function setText($value)
104 104
 	{
105
-		$this->setViewState('Text',TPropertyValue::ensureString($value),'');
105
+		$this->setViewState('Text', TPropertyValue::ensureString($value), '');
106 106
 	}
107 107
 
108 108
 	/**
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 	 */
137 137
 	public function getForControl()
138 138
 	{
139
-		return $this->getViewState('ForControl','');
139
+		return $this->getViewState('ForControl', '');
140 140
 	}
141 141
 
142 142
 	/**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 */
147 147
 	public function setForControl($value)
148 148
 	{
149
-		$this->setViewState('ForControl',$value,'');
149
+		$this->setViewState('ForControl', $value, '');
150 150
 	}
151 151
 }
152 152
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -233,8 +233,7 @@  discard block
 block discarded – undo
233 233
 				$newid=substr($id,$pos+1);
234 234
 				if ($control!==null)
235 235
 					$control=$control->$newid;
236
-			}
237
-			else
236
+			} else
238 237
 			{
239 238
 				// TCheckBoxList overrides findControl() with a fake implementation
240 239
 				// but accepts a second parameter to use the standard one
@@ -296,8 +295,7 @@  discard block
 block discarded – undo
296 295
 		{
297 296
 			$group=$this->getValidationGroup();
298 297
 			return $this->getPage()->getValidators($group)->getCount()>0;
299
-		}
300
-		else
298
+		} else
301 299
 			return false;
302 300
 	}
303 301
 
Please login to merge, or discard this patch.
framework/Web/UI/TSessionPageStatePersister.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	public function setHistorySize($value)
81 81
 	{
82
-		if(($value=TPropertyValue::ensureInteger($value))>0)
82
+		if(($value=TPropertyValue::ensureInteger($value)) > 0)
83 83
 			$this->_historySize=$value;
84 84
 		else
85 85
 			throw new TInvalidDataValueException('sessionpagestatepersister_historysize_invalid');
@@ -93,19 +93,19 @@  discard block
 block discarded – undo
93 93
 		$session=$this->_page->getSession();
94 94
 		$session->open();
95 95
 		$data=serialize($state);
96
-		$timestamp=(string)microtime(true);
96
+		$timestamp=(string) microtime(true);
97 97
 		$key=self::STATE_SESSION_KEY.$timestamp;
98
-		$session->add($key,$data);
98
+		$session->add($key, $data);
99 99
 		if(($queue=$session->itemAt(self::QUEUE_SESSION_KEY))===null)
100 100
 			$queue=array();
101 101
 		$queue[]=$key;
102
-		if(count($queue)>$this->getHistorySize())
102
+		if(count($queue) > $this->getHistorySize())
103 103
 		{
104 104
 			$expiredKey=array_shift($queue);
105 105
 			$session->remove($expiredKey);
106 106
 		}
107
-		$session->add(self::QUEUE_SESSION_KEY,$queue);
108
-		$this->_page->setClientState(TPageStateFormatter::serialize($this->_page,$timestamp));
107
+		$session->add(self::QUEUE_SESSION_KEY, $queue);
108
+		$this->_page->setClientState(TPageStateFormatter::serialize($this->_page, $timestamp));
109 109
 	}
110 110
 
111 111
 	/**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 */
116 116
 	public function load()
117 117
 	{
118
-		if(($timestamp=TPageStateFormatter::unserialize($this->_page,$this->_page->getRequestClientState()))!==null)
118
+		if(($timestamp=TPageStateFormatter::unserialize($this->_page, $this->_page->getRequestClientState()))!==null)
119 119
 		{
120 120
 			$session=$this->_page->getSession();
121 121
 			$session->open();
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 			if(($data=$session->itemAt($key))!==null)
124 124
 				return unserialize($data);
125 125
 		}
126
-		throw new THttpException(400,'sessionpagestatepersister_pagestate_corrupted');
126
+		throw new THttpException(400, 'sessionpagestatepersister_pagestate_corrupted');
127 127
 	}
128 128
 }
129 129
 
Please login to merge, or discard this patch.
framework/Web/UI/TControlAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 	 */
49 49
 	public function getPage()
50 50
 	{
51
-		return $this->_control?$this->_control->getPage():null;
51
+		return $this->_control ? $this->_control->getPage() : null;
52 52
 	}
53 53
 
54 54
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/THtmlWriter.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
 	public function setWriter($writer)
90 90
 	{
91
-		$this->_writer = $writer;
91
+		$this->_writer=$writer;
92 92
 	}
93 93
 	/**
94 94
 	 * Adds a list of attributes to be rendered.
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	 * @param string name of the attribute
106 106
 	 * @param string value of the attribute
107 107
 	 */
108
-	public function addAttribute($name,$value)
108
+	public function addAttribute($name, $value)
109 109
 	{
110 110
 		$this->_attributes[THttpUtility::htmlStrip($name)]=THttpUtility::htmlEncode($value);
111 111
 	}
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 * @param string stylesheet attribute name
135 135
 	 * @param string stylesheet attribute value
136 136
 	 */
137
-	public function addStyleAttribute($name,$value)
137
+	public function addStyleAttribute($name, $value)
138 138
 	{
139 139
 		$this->_styles[THttpUtility::htmlStrip($name)]=THttpUtility::htmlEncode($value);
140 140
 	}
@@ -203,12 +203,12 @@  discard block
 block discarded – undo
203 203
 		if(isset(self::$_simpleTags[$tagName]))
204 204
 		{
205 205
 			$str.=' />';
206
-			$this->_openTags[] = '';
206
+			$this->_openTags[]='';
207 207
 		}
208 208
 		else
209 209
 		{
210 210
 			$str.='>';
211
-			$this->_openTags[] = $tagName;
211
+			$this->_openTags[]=$tagName;
212 212
 		}
213 213
 		$this->_writer->write($str);
214 214
 		$this->_attributes=array();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
 		if ($this->sourcepath === NULL)
59 59
 		{
60 60
 			$this->sourcepath = $sourcepath;
61
-		}
62
-		else
61
+		} else
63 62
 		{
64 63
 			$this->sourcepath->append($sourcepath);
65 64
 		}
Please login to merge, or discard this patch.
framework/Web/UI/TControl.php 3 patches
Spacing   +136 added lines, -136 removed lines patch added patch discarded remove patch
@@ -110,17 +110,17 @@  discard block
 block discarded – undo
110 110
 	 * Indexes for the rare fields.
111 111
 	 * In order to save memory, rare fields will only be created if they are needed.
112 112
 	 */
113
-	const RF_CONTROLS=0;			// child controls
114
-	const RF_CHILD_STATE=1;			// child state field
115
-	const RF_NAMED_CONTROLS=2;		// list of controls whose namingcontainer is this control
116
-	const RF_NAMED_CONTROLS_ID=3;	// counter for automatic id
117
-	const RF_SKIN_ID=4;				// skin ID
118
-	const RF_DATA_BINDINGS=5;		// data bindings
119
-	const RF_EVENTS=6;				// event handlers
120
-	const RF_CONTROLSTATE=7;		// controlstate
121
-	const RF_NAMED_OBJECTS=8;		// controls declared with ID on template
122
-	const RF_ADAPTER=9;				// adapter
123
-	const RF_AUTO_BINDINGS=10;		// auto data bindings
113
+	const RF_CONTROLS=0; // child controls
114
+	const RF_CHILD_STATE=1; // child state field
115
+	const RF_NAMED_CONTROLS=2; // list of controls whose namingcontainer is this control
116
+	const RF_NAMED_CONTROLS_ID=3; // counter for automatic id
117
+	const RF_SKIN_ID=4; // skin ID
118
+	const RF_DATA_BINDINGS=5; // data bindings
119
+	const RF_EVENTS=6; // event handlers
120
+	const RF_CONTROLSTATE=7; // controlstate
121
+	const RF_NAMED_OBJECTS=8; // controls declared with ID on template
122
+	const RF_ADAPTER=9; // adapter
123
+	const RF_AUTO_BINDINGS=10; // auto data bindings
124 124
 
125 125
 	/**
126 126
 	 * @var string control ID
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 */
209 209
 	public function getAdapter()
210 210
 	{
211
-		return isset($this->_rf[self::RF_ADAPTER])?$this->_rf[self::RF_ADAPTER]:null;
211
+		return isset($this->_rf[self::RF_ADAPTER]) ? $this->_rf[self::RF_ADAPTER] : null;
212 212
 	}
213 213
 
214 214
 	/**
@@ -348,10 +348,10 @@  discard block
 block discarded – undo
348 348
 	 */
349 349
 	public function setID($id)
350 350
 	{
351
-		if(!preg_match(self::ID_FORMAT,$id))
352
-			throw new TInvalidDataValueException('control_id_invalid',get_class($this),$id);
351
+		if(!preg_match(self::ID_FORMAT, $id))
352
+			throw new TInvalidDataValueException('control_id_invalid', get_class($this), $id);
353 353
 		$this->_id=$id;
354
-		$this->_flags |= self::IS_ID_SET;
354
+		$this->_flags|=self::IS_ID_SET;
355 355
 		$this->clearCachedUniqueID($this instanceof INamingContainer);
356 356
 		if($this->_namingContainer)
357 357
 			$this->_namingContainer->clearNameTable();
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 	{
369 369
 		if($this->_uid==='' || $this->_uid===null)	// need to build the UniqueID
370 370
 		{
371
-			$this->_uid='';  // set to not-null, so that clearCachedUniqueID() may take action
371
+			$this->_uid=''; // set to not-null, so that clearCachedUniqueID() may take action
372 372
 			if($namingContainer=$this->getNamingContainer())
373 373
 			{
374 374
 				if($this->getPage()===$namingContainer)
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 	 */
403 403
 	public function getClientID()
404 404
 	{
405
-		return strtr($this->getUniqueID(),self::ID_SEPARATOR,self::CLIENT_ID_SEPARATOR);
405
+		return strtr($this->getUniqueID(), self::ID_SEPARATOR, self::CLIENT_ID_SEPARATOR);
406 406
 	}
407 407
 
408 408
 	/**
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
 	 */
413 413
 	public static function convertUniqueIdToClientId($uniqueID)
414 414
 	{
415
-		return strtr($uniqueID,self::ID_SEPARATOR,self::CLIENT_ID_SEPARATOR);
415
+		return strtr($uniqueID, self::ID_SEPARATOR, self::CLIENT_ID_SEPARATOR);
416 416
 	}
417 417
 
418 418
 	/**
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 	 */
421 421
 	public function getSkinID()
422 422
 	{
423
-		return isset($this->_rf[self::RF_SKIN_ID])?$this->_rf[self::RF_SKIN_ID]:'';
423
+		return isset($this->_rf[self::RF_SKIN_ID]) ? $this->_rf[self::RF_SKIN_ID] : '';
424 424
 	}
425 425
 
426 426
 	/**
@@ -429,8 +429,8 @@  discard block
 block discarded – undo
429 429
 	 */
430 430
 	public function setSkinID($value)
431 431
 	{
432
-		if(($this->_flags & self::IS_SKIN_APPLIED) || $this->_stage>=self::CS_CHILD_INITIALIZED)
433
-			throw new TInvalidOperationException('control_skinid_unchangeable',get_class($this));
432
+		if(($this->_flags & self::IS_SKIN_APPLIED) || $this->_stage >= self::CS_CHILD_INITIALIZED)
433
+			throw new TInvalidOperationException('control_skinid_unchangeable', get_class($this));
434 434
 		else
435 435
 			$this->_rf[self::RF_SKIN_ID]=$value;
436 436
 	}
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 		if($this->_flags & self::IS_DISABLE_THEMING)
454 454
 			return false;
455 455
 		else
456
-			return $this->_parent?$this->_parent->getEnableTheming():true;
456
+			return $this->_parent ? $this->_parent->getEnableTheming() : true;
457 457
 	}
458 458
 
459 459
 	/**
@@ -462,12 +462,12 @@  discard block
 block discarded – undo
462 462
 	 */
463 463
 	public function setEnableTheming($value)
464 464
 	{
465
-		if($this->_stage>=self::CS_CHILD_INITIALIZED)
466
-			throw new TInvalidOperationException('control_enabletheming_unchangeable',get_class($this),$this->getUniqueID());
465
+		if($this->_stage >= self::CS_CHILD_INITIALIZED)
466
+			throw new TInvalidOperationException('control_enabletheming_unchangeable', get_class($this), $this->getUniqueID());
467 467
 		else if(TPropertyValue::ensureBoolean($value))
468
-			$this->_flags &= ~self::IS_DISABLE_THEMING;
468
+			$this->_flags&=~self::IS_DISABLE_THEMING;
469 469
 		else
470
-			$this->_flags |= self::IS_DISABLE_THEMING;
470
+			$this->_flags|=self::IS_DISABLE_THEMING;
471 471
 	}
472 472
 
473 473
 	/**
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 	 */
480 480
 	public function getCustomData()
481 481
 	{
482
-		return $this->getViewState('CustomData',null);
482
+		return $this->getViewState('CustomData', null);
483 483
 	}
484 484
 
485 485
 	/**
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
 	 */
490 490
 	public function setCustomData($value)
491 491
 	{
492
-		$this->setViewState('CustomData',$value,null);
492
+		$this->setViewState('CustomData', $value, null);
493 493
 	}
494 494
 
495 495
 	/**
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
 	 */
498 498
 	public function getHasControls()
499 499
 	{
500
-		return isset($this->_rf[self::RF_CONTROLS]) && $this->_rf[self::RF_CONTROLS]->getCount()>0;
500
+		return isset($this->_rf[self::RF_CONTROLS]) && $this->_rf[self::RF_CONTROLS]->getCount() > 0;
501 501
 	}
502 502
 
503 503
 	/**
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
 	 */
518 518
 	protected function createControlCollection()
519 519
 	{
520
-		return $this->getAllowChildControls()?new TControlCollection($this):new TEmptyControlCollection($this);
520
+		return $this->getAllowChildControls() ? new TControlCollection($this) : new TEmptyControlCollection($this);
521 521
 	}
522 522
 
523 523
 	/**
@@ -531,13 +531,13 @@  discard block
 block discarded – undo
531 531
 	{
532 532
 		if($checkParents)
533 533
 		{
534
-			for($control=$this;$control;$control=$control->_parent)
534
+			for($control=$this; $control; $control=$control->_parent)
535 535
 				if(!$control->getVisible(false))
536 536
 					return false;
537 537
 			return true;
538 538
 		}
539 539
 		else
540
-			return $this->getViewState('Visible',true);
540
+			return $this->getViewState('Visible', true);
541 541
 	}
542 542
 
543 543
 	/**
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 	 */
546 546
 	public function setVisible($value)
547 547
 	{
548
-		$this->setViewState('Visible',TPropertyValue::ensureBoolean($value),true);
548
+		$this->setViewState('Visible', TPropertyValue::ensureBoolean($value), true);
549 549
 	}
550 550
 
551 551
 	/**
@@ -562,13 +562,13 @@  discard block
 block discarded – undo
562 562
 	{
563 563
 		if($checkParents)
564 564
 		{
565
-			for($control=$this;$control;$control=$control->_parent)
566
-				if(!$control->getViewState('Enabled',true))
565
+			for($control=$this; $control; $control=$control->_parent)
566
+				if(!$control->getViewState('Enabled', true))
567 567
 					return false;
568 568
 			return true;
569 569
 		}
570 570
 		else
571
-			return $this->getViewState('Enabled',true);
571
+			return $this->getViewState('Enabled', true);
572 572
 	}
573 573
 
574 574
 	/**
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
 	 */
577 577
 	public function setEnabled($value)
578 578
 	{
579
-		$this->setViewState('Enabled',TPropertyValue::ensureBoolean($value),true);
579
+		$this->setViewState('Enabled', TPropertyValue::ensureBoolean($value), true);
580 580
 	}
581 581
 
582 582
 	/**
@@ -584,8 +584,8 @@  discard block
 block discarded – undo
584 584
 	 */
585 585
 	public function getHasAttributes()
586 586
 	{
587
-		if($attributes=$this->getViewState('Attributes',null))
588
-			return $attributes->getCount()>0;
587
+		if($attributes=$this->getViewState('Attributes', null))
588
+			return $attributes->getCount() > 0;
589 589
 		else
590 590
 			return false;
591 591
 	}
@@ -598,12 +598,12 @@  discard block
 block discarded – undo
598 598
 	 */
599 599
 	public function getAttributes()
600 600
 	{
601
-		if($attributes=$this->getViewState('Attributes',null))
601
+		if($attributes=$this->getViewState('Attributes', null))
602 602
 			return $attributes;
603 603
 		else
604 604
 		{
605 605
 			$attributes=new TAttributeCollection;
606
-			$this->setViewState('Attributes',$attributes,null);
606
+			$this->setViewState('Attributes', $attributes, null);
607 607
 			return $attributes;
608 608
 		}
609 609
 	}
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
 	 */
614 614
 	public function hasAttribute($name)
615 615
 	{
616
-		if($attributes=$this->getViewState('Attributes',null))
616
+		if($attributes=$this->getViewState('Attributes', null))
617 617
 			return $attributes->contains($name);
618 618
 		else
619 619
 			return false;
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
 	 */
625 625
 	public function getAttribute($name)
626 626
 	{
627
-		if($attributes=$this->getViewState('Attributes',null))
627
+		if($attributes=$this->getViewState('Attributes', null))
628 628
 			return $attributes->itemAt($name);
629 629
 		else
630 630
 			return null;
@@ -635,9 +635,9 @@  discard block
 block discarded – undo
635 635
 	 * @param string attribute name
636 636
 	 * @param string value of the attribute
637 637
 	 */
638
-	public function setAttribute($name,$value)
638
+	public function setAttribute($name, $value)
639 639
 	{
640
-		$this->getAttributes()->add($name,$value);
640
+		$this->getAttributes()->add($name, $value);
641 641
 	}
642 642
 
643 643
 	/**
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 	 */
648 648
 	public function removeAttribute($name)
649 649
 	{
650
-		if($attributes=$this->getViewState('Attributes',null))
650
+		if($attributes=$this->getViewState('Attributes', null))
651 651
 			return $attributes->remove($name);
652 652
 		else
653 653
 			return null;
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
 	{
661 661
 		if($checkParents)
662 662
 		{
663
-			for($control=$this;$control!==null;$control=$control->getParent())
663
+			for($control=$this; $control!==null; $control=$control->getParent())
664 664
 				if($control->_flags & self::IS_DISABLE_VIEWSTATE)
665 665
 					return false;
666 666
 			return true;
@@ -675,9 +675,9 @@  discard block
 block discarded – undo
675 675
 	public function setEnableViewState($value)
676 676
 	{
677 677
 		if(TPropertyValue::ensureBoolean($value))
678
-			$this->_flags &= ~self::IS_DISABLE_VIEWSTATE;
678
+			$this->_flags&=~self::IS_DISABLE_VIEWSTATE;
679 679
 		else
680
-			$this->_flags |= self::IS_DISABLE_VIEWSTATE;
680
+			$this->_flags|=self::IS_DISABLE_VIEWSTATE;
681 681
 	}
682 682
 
683 683
 	/**
@@ -689,9 +689,9 @@  discard block
 block discarded – undo
689 689
 	 * @param mixed the default value. If $key is not found in controlstate, $defaultValue will be returned
690 690
 	 * @return mixed the controlstate value corresponding to $key
691 691
 	 */
692
-	protected function getControlState($key,$defaultValue=null)
692
+	protected function getControlState($key, $defaultValue=null)
693 693
 	{
694
-		return isset($this->_rf[self::RF_CONTROLSTATE][$key])?$this->_rf[self::RF_CONTROLSTATE][$key]:$defaultValue;
694
+		return isset($this->_rf[self::RF_CONTROLSTATE][$key]) ? $this->_rf[self::RF_CONTROLSTATE][$key] : $defaultValue;
695 695
 	}
696 696
 
697 697
 	/**
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
 	 * @param mixed the controlstate value to be set
705 705
 	 * @param mixed default value. If $value===$defaultValue, the item will be cleared from controlstate
706 706
 	 */
707
-	protected function setControlState($key,$value,$defaultValue=null)
707
+	protected function setControlState($key, $value, $defaultValue=null)
708 708
 	{
709 709
 		if($value===$defaultValue)
710 710
 			unset($this->_rf[self::RF_CONTROLSTATE][$key]);
@@ -741,10 +741,10 @@  discard block
 block discarded – undo
741 741
 	 * @param mixed the default value. If $key is not found in viewstate, $defaultValue will be returned
742 742
 	 * @return mixed the viewstate value corresponding to $key
743 743
 	 */
744
-	public function getViewState($key,$defaultValue=null)
744
+	public function getViewState($key, $defaultValue=null)
745 745
 	{
746 746
 		if(isset($this->_viewState[$key]))
747
-			return $this->_viewState[$key]!==null?$this->_viewState[$key]:$defaultValue;
747
+			return $this->_viewState[$key]!==null ? $this->_viewState[$key] : $defaultValue;
748 748
 		else if(isset($this->_tempState[$key]))
749 749
 		{
750 750
 			if(is_object($this->_tempState[$key]) && $this->_trackViewState)
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
 	 * @param mixed the viewstate value to be set
766 766
 	 * @param mixed default value. If $value===$defaultValue, the item will be cleared from the viewstate.
767 767
 	 */
768
-	public function setViewState($key,$value,$defaultValue=null)
768
+	public function setViewState($key, $value, $defaultValue=null)
769 769
 	{
770 770
 		if($this->_trackViewState)
771 771
 		{
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
 	 * @param string the property name, or property path
802 802
 	 * @param string the expression
803 803
 	 */
804
-	public function bindProperty($name,$expression)
804
+	public function bindProperty($name, $expression)
805 805
 	{
806 806
 		$this->_rf[self::RF_DATA_BINDINGS][$name]=$expression;
807 807
 	}
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
 	 * @param string the property name, or property path
824 824
 	 * @param string the expression
825 825
 	 */
826
-	public function autoBindProperty($name,$expression)
826
+	public function autoBindProperty($name, $expression)
827 827
 	{
828 828
 		$this->_rf[self::RF_AUTO_BINDINGS][$name]=$expression;
829 829
 	}
@@ -843,13 +843,13 @@  discard block
 block discarded – undo
843 843
 	 */
844 844
 	protected function dataBindProperties()
845 845
 	{
846
-		Prado::trace("Data bind properties",'System.Web.UI.TControl');
846
+		Prado::trace("Data bind properties", 'System.Web.UI.TControl');
847 847
 		if(isset($this->_rf[self::RF_DATA_BINDINGS]))
848 848
 		{
849 849
 			if(($context=$this->getTemplateControl())===null)
850 850
 				$context=$this;
851 851
 			foreach($this->_rf[self::RF_DATA_BINDINGS] as $property=>$expression)
852
-				$this->setSubProperty($property,$context->evaluateExpression($expression));
852
+				$this->setSubProperty($property, $context->evaluateExpression($expression));
853 853
 		}
854 854
 	}
855 855
 
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
 			if(($context=$this->getTemplateControl())===null)
864 864
 				$context=$this;
865 865
 			foreach($this->_rf[self::RF_AUTO_BINDINGS] as $property=>$expression)
866
-				$this->setSubProperty($property,$context->evaluateExpression($expression));
866
+				$this->setSubProperty($property, $context->evaluateExpression($expression));
867 867
 		}
868 868
 	}
869 869
 
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
 	 */
873 873
 	protected function dataBindChildren()
874 874
 	{
875
-		Prado::trace("dataBindChildren()",'System.Web.UI.TControl');
875
+		Prado::trace("dataBindChildren()", 'System.Web.UI.TControl');
876 876
 		if(isset($this->_rf[self::RF_CONTROLS]))
877 877
 		{
878 878
 			foreach($this->_rf[self::RF_CONTROLS] as $control)
@@ -897,12 +897,12 @@  discard block
 block discarded – undo
897 897
 	final protected function setChildControlsCreated($value)
898 898
 	{
899 899
 		if($value)
900
-			$this->_flags |= self::IS_CHILD_CREATED;
900
+			$this->_flags|=self::IS_CHILD_CREATED;
901 901
 		else
902 902
 		{
903 903
 			if($this->getHasControls() && ($this->_flags & self::IS_CHILD_CREATED))
904 904
 				$this->getControls()->clear();
905
-			$this->_flags &= ~self::IS_CHILD_CREATED;
905
+			$this->_flags&=~self::IS_CHILD_CREATED;
906 906
 		}
907 907
 	}
908 908
 
@@ -917,18 +917,18 @@  discard block
 block discarded – undo
917 917
 		{
918 918
 			try
919 919
 			{
920
-				$this->_flags |= self::IS_CREATING_CHILD;
920
+				$this->_flags|=self::IS_CREATING_CHILD;
921 921
 				if(isset($this->_rf[self::RF_ADAPTER]))
922 922
 					$this->_rf[self::RF_ADAPTER]->createChildControls();
923 923
 				else
924 924
 					$this->createChildControls();
925
-				$this->_flags &= ~self::IS_CREATING_CHILD;
926
-				$this->_flags |= self::IS_CHILD_CREATED;
925
+				$this->_flags&=~self::IS_CREATING_CHILD;
926
+				$this->_flags|=self::IS_CHILD_CREATED;
927 927
 			}
928 928
 			catch(Exception $e)
929 929
 			{
930
-				$this->_flags &= ~self::IS_CREATING_CHILD;
931
-				$this->_flags |= self::IS_CHILD_CREATED;
930
+				$this->_flags&=~self::IS_CREATING_CHILD;
931
+				$this->_flags|=self::IS_CHILD_CREATED;
932 932
 				throw $e;
933 933
 			}
934 934
 		}
@@ -957,21 +957,21 @@  discard block
 block discarded – undo
957 957
 	 */
958 958
 	public function findControl($id)
959 959
 	{
960
-		$id=strtr($id,'.',self::ID_SEPARATOR);
961
-		$container=($this instanceof INamingContainer)?$this:$this->getNamingContainer();
960
+		$id=strtr($id, '.', self::ID_SEPARATOR);
961
+		$container=($this instanceof INamingContainer) ? $this : $this->getNamingContainer();
962 962
 		if(!$container || !$container->getHasControls())
963 963
 			return null;
964 964
 		if(!isset($container->_rf[self::RF_NAMED_CONTROLS]))
965 965
 		{
966 966
 			$container->_rf[self::RF_NAMED_CONTROLS]=array();
967
-			$container->fillNameTable($container,$container->_rf[self::RF_CONTROLS]);
967
+			$container->fillNameTable($container, $container->_rf[self::RF_CONTROLS]);
968 968
 		}
969
-		if(($pos=strpos($id,self::ID_SEPARATOR))===false)
970
-			return isset($container->_rf[self::RF_NAMED_CONTROLS][$id])?$container->_rf[self::RF_NAMED_CONTROLS][$id]:null;
969
+		if(($pos=strpos($id, self::ID_SEPARATOR))===false)
970
+			return isset($container->_rf[self::RF_NAMED_CONTROLS][$id]) ? $container->_rf[self::RF_NAMED_CONTROLS][$id] : null;
971 971
 		else
972 972
 		{
973
-			$cid=substr($id,0,$pos);
974
-			$sid=substr($id,$pos+1);
973
+			$cid=substr($id, 0, $pos);
974
+			$sid=substr($id, $pos + 1);
975 975
 			if(isset($container->_rf[self::RF_NAMED_CONTROLS][$cid]))
976 976
 				return $container->_rf[self::RF_NAMED_CONTROLS][$cid]->findControl($sid);
977 977
 			else
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
 	 * @param boolean whether the type comparison is strict or not. If false, controls of the parent classes of the specified class will also be returned.
986 986
 	 * @return array list of controls found
987 987
 	 */
988
-	public function findControlsByType($type,$strict=true)
988
+	public function findControlsByType($type, $strict=true)
989 989
 	{
990 990
 		$controls=array();
991 991
 		if($this->getHasControls())
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
 				if(is_object($control) && (get_class($control)===$type || (!$strict && ($control instanceof $type))))
996 996
 					$controls[]=$control;
997 997
 				if(($control instanceof TControl) && $control->getHasControls())
998
-					$controls=array_merge($controls,$control->findControlsByType($type,$strict));
998
+					$controls=array_merge($controls, $control->findControlsByType($type, $strict));
999 999
 			}
1000 1000
 		}
1001 1001
 		return $controls;
@@ -1021,7 +1021,7 @@  discard block
 block discarded – undo
1021 1021
 				{
1022 1022
 					if($control->_id===$id)
1023 1023
 						$controls[]=$control;
1024
-					$controls=array_merge($controls,$control->findControlsByID($id));
1024
+					$controls=array_merge($controls, $control->findControlsByID($id));
1025 1025
 				}
1026 1026
 			}
1027 1027
 		}
@@ -1046,10 +1046,10 @@  discard block
 block discarded – undo
1046 1046
 	 * @param object object to be declared
1047 1047
 	 * @see __get
1048 1048
 	 */
1049
-	public function registerObject($name,$object)
1049
+	public function registerObject($name, $object)
1050 1050
 	{
1051 1051
 		if(isset($this->_rf[self::RF_NAMED_OBJECTS][$name]))
1052
-			throw new TInvalidOperationException('control_object_reregistered',$name);
1052
+			throw new TInvalidOperationException('control_object_reregistered', $name);
1053 1053
 		$this->_rf[self::RF_NAMED_OBJECTS][$name]=$object;
1054 1054
 	}
1055 1055
 
@@ -1121,7 +1121,7 @@  discard block
 block discarded – undo
1121 1121
 	 */
1122 1122
 	public function getRegisteredObject($name)
1123 1123
 	{
1124
-		return isset($this->_rf[self::RF_NAMED_OBJECTS][$name])?$this->_rf[self::RF_NAMED_OBJECTS][$name]:null;
1124
+		return isset($this->_rf[self::RF_NAMED_OBJECTS][$name]) ? $this->_rf[self::RF_NAMED_OBJECTS][$name] : null;
1125 1125
 	}
1126 1126
 
1127 1127
 	/**
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
 			$control->_parent->getControls()->remove($control);
1182 1182
 		$control->_parent=$this;
1183 1183
 		$control->_page=$this->getPage();
1184
-		$namingContainer=($this instanceof INamingContainer)?$this:$this->_namingContainer;
1184
+		$namingContainer=($this instanceof INamingContainer) ? $this : $this->_namingContainer;
1185 1185
 		if($namingContainer)
1186 1186
 		{
1187 1187
 			$control->_namingContainer=$namingContainer;
@@ -1192,10 +1192,10 @@  discard block
 block discarded – undo
1192 1192
 			$control->clearCachedUniqueID($control instanceof INamingContainer);
1193 1193
 		}
1194 1194
 
1195
-		if($this->_stage>=self::CS_CHILD_INITIALIZED)
1195
+		if($this->_stage >= self::CS_CHILD_INITIALIZED)
1196 1196
 		{
1197 1197
 			$control->initRecursive($namingContainer);
1198
-			if($this->_stage>=self::CS_STATE_LOADED)
1198
+			if($this->_stage >= self::CS_STATE_LOADED)
1199 1199
 			{
1200 1200
 				if(isset($this->_rf[self::RF_CHILD_STATE][$control->_id]))
1201 1201
 				{
@@ -1204,11 +1204,11 @@  discard block
 block discarded – undo
1204 1204
 				}
1205 1205
 				else
1206 1206
 					$state=null;
1207
-				$control->loadStateRecursive($state,!($this->_flags & self::IS_DISABLE_VIEWSTATE));
1208
-				if($this->_stage>=self::CS_LOADED)
1207
+				$control->loadStateRecursive($state, !($this->_flags & self::IS_DISABLE_VIEWSTATE));
1208
+				if($this->_stage >= self::CS_LOADED)
1209 1209
 				{
1210 1210
 					$control->loadRecursive();
1211
-					if($this->_stage>=self::CS_PRERENDERED)
1211
+					if($this->_stage >= self::CS_PRERENDERED)
1212 1212
 						$control->preRenderRecursive();
1213 1213
 				}
1214 1214
 			}
@@ -1262,13 +1262,13 @@  discard block
 block discarded – undo
1262 1262
 				}
1263 1263
 			}
1264 1264
 		}
1265
-		if($this->_stage<self::CS_INITIALIZED)
1265
+		if($this->_stage < self::CS_INITIALIZED)
1266 1266
 		{
1267 1267
 			$this->_stage=self::CS_CHILD_INITIALIZED;
1268 1268
 			if(($page=$this->getPage()) && $this->getEnableTheming() && !($this->_flags & self::IS_SKIN_APPLIED))
1269 1269
 			{
1270 1270
 				$page->applyControlSkin($this);
1271
-				$this->_flags |= self::IS_SKIN_APPLIED;
1271
+				$this->_flags|=self::IS_SKIN_APPLIED;
1272 1272
 			}
1273 1273
 			if(isset($this->_rf[self::RF_ADAPTER]))
1274 1274
 				$this->_rf[self::RF_ADAPTER]->onInit(null);
@@ -1284,7 +1284,7 @@  discard block
 block discarded – undo
1284 1284
 	 */
1285 1285
 	protected function loadRecursive()
1286 1286
 	{
1287
-		if($this->_stage<self::CS_LOADED)
1287
+		if($this->_stage < self::CS_LOADED)
1288 1288
 		{
1289 1289
 			if(isset($this->_rf[self::RF_ADAPTER]))
1290 1290
 				$this->_rf[self::RF_ADAPTER]->onLoad(null);
@@ -1299,7 +1299,7 @@  discard block
 block discarded – undo
1299 1299
 					$control->loadRecursive();
1300 1300
 			}
1301 1301
 		}
1302
-		if($this->_stage<self::CS_LOADED)
1302
+		if($this->_stage < self::CS_LOADED)
1303 1303
 			$this->_stage=self::CS_LOADED;
1304 1304
 	}
1305 1305
 
@@ -1360,7 +1360,7 @@  discard block
 block discarded – undo
1360 1360
 	 */
1361 1361
 	public function onInit($param)
1362 1362
 	{
1363
-		$this->raiseEvent('OnInit',$this,$param);
1363
+		$this->raiseEvent('OnInit', $this, $param);
1364 1364
 	}
1365 1365
 
1366 1366
 	/**
@@ -1372,7 +1372,7 @@  discard block
 block discarded – undo
1372 1372
 	 */
1373 1373
 	public function onLoad($param)
1374 1374
 	{
1375
-		$this->raiseEvent('OnLoad',$this,$param);
1375
+		$this->raiseEvent('OnLoad', $this, $param);
1376 1376
 	}
1377 1377
 
1378 1378
 	/**
@@ -1382,8 +1382,8 @@  discard block
 block discarded – undo
1382 1382
 	 */
1383 1383
 	public function onDataBinding($param)
1384 1384
 	{
1385
-		Prado::trace("onDataBinding()",'System.Web.UI.TControl');
1386
-		$this->raiseEvent('OnDataBinding',$this,$param);
1385
+		Prado::trace("onDataBinding()", 'System.Web.UI.TControl');
1386
+		$this->raiseEvent('OnDataBinding', $this, $param);
1387 1387
 	}
1388 1388
 
1389 1389
 
@@ -1396,7 +1396,7 @@  discard block
 block discarded – undo
1396 1396
 	 */
1397 1397
 	public function onUnload($param)
1398 1398
 	{
1399
-		$this->raiseEvent('OnUnload',$this,$param);
1399
+		$this->raiseEvent('OnUnload', $this, $param);
1400 1400
 	}
1401 1401
 
1402 1402
 	/**
@@ -1408,7 +1408,7 @@  discard block
 block discarded – undo
1408 1408
 	 */
1409 1409
 	public function onPreRender($param)
1410 1410
 	{
1411
-		$this->raiseEvent('OnPreRender',$this,$param);
1411
+		$this->raiseEvent('OnPreRender', $this, $param);
1412 1412
 	}
1413 1413
 
1414 1414
 	/**
@@ -1418,12 +1418,12 @@  discard block
 block discarded – undo
1418 1418
 	 * @param TEventParameter event parameter
1419 1419
 	 * @see bubbleEvent
1420 1420
 	 */
1421
-	protected function raiseBubbleEvent($sender,$param)
1421
+	protected function raiseBubbleEvent($sender, $param)
1422 1422
 	{
1423 1423
 		$control=$this;
1424 1424
 		while($control=$control->_parent)
1425 1425
 		{
1426
-			if($control->bubbleEvent($sender,$param))
1426
+			if($control->bubbleEvent($sender, $param))
1427 1427
 				break;
1428 1428
 		}
1429 1429
 	}
@@ -1437,7 +1437,7 @@  discard block
 block discarded – undo
1437 1437
 	 * @return boolean true if the event bubbling is handled and no more bubbling.
1438 1438
 	 * @see raiseBubbleEvent
1439 1439
 	 */
1440
-	public function bubbleEvent($sender,$param)
1440
+	public function bubbleEvent($sender, $param)
1441 1441
 	{
1442 1442
 		return false;
1443 1443
 	}
@@ -1458,10 +1458,10 @@  discard block
 block discarded – undo
1458 1458
 	 * @param TControl sender of this event
1459 1459
 	 * @param TEventParameter event parameter
1460 1460
 	 */
1461
-	public function broadcastEvent($name,$sender,$param)
1461
+	public function broadcastEvent($name, $sender, $param)
1462 1462
 	{
1463
-		$rootControl=(($page=$this->getPage())===null)?$this:$page;
1464
-		$rootControl->broadcastEventInternal($name,$sender,new TBroadcastEventParameter($name,$param));
1463
+		$rootControl=(($page=$this->getPage())===null) ? $this : $page;
1464
+		$rootControl->broadcastEventInternal($name, $sender, new TBroadcastEventParameter($name, $param));
1465 1465
 	}
1466 1466
 
1467 1467
 	/**
@@ -1471,18 +1471,18 @@  discard block
 block discarded – undo
1471 1471
 	 * @param TControl sender of the event
1472 1472
 	 * @param TBroadcastEventParameter event parameter
1473 1473
 	 */
1474
-	private function broadcastEventInternal($name,$sender,$param)
1474
+	private function broadcastEventInternal($name, $sender, $param)
1475 1475
 	{
1476 1476
 		if($this->hasEvent($name))
1477
-			$this->raiseEvent($name,$sender,$param->getParameter());
1477
+			$this->raiseEvent($name, $sender, $param->getParameter());
1478 1478
 		if($this instanceof IBroadcastEventReceiver)
1479
-			$this->broadcastEventReceived($sender,$param);
1479
+			$this->broadcastEventReceived($sender, $param);
1480 1480
 		if($this->getHasControls())
1481 1481
 		{
1482 1482
 			foreach($this->_rf[self::RF_CONTROLS] as $control)
1483 1483
 			{
1484 1484
 				if($control instanceof TControl)
1485
-					$control->broadcastEventInternal($name,$sender,$param);
1485
+					$control->broadcastEventInternal($name, $sender, $param);
1486 1486
 			}
1487 1487
 		}
1488 1488
 	}
@@ -1504,22 +1504,22 @@  discard block
 block discarded – undo
1504 1504
 	 * @param callback callback invoked before traversing child controls. If null, it is ignored.
1505 1505
 	 * @param callback callback invoked after traversing child controls. If null, it is ignored.
1506 1506
 	 */
1507
-	protected function traverseChildControls($param,$preCallback=null,$postCallback=null)
1507
+	protected function traverseChildControls($param, $preCallback=null, $postCallback=null)
1508 1508
 	{
1509 1509
 		if($preCallback!==null)
1510
-			call_user_func($preCallback,$this,$param);
1510
+			call_user_func($preCallback, $this, $param);
1511 1511
 		if($this->getHasControls())
1512 1512
 		{
1513 1513
 			foreach($this->_rf[self::RF_CONTROLS] as $control)
1514 1514
 			{
1515 1515
 				if($control instanceof TControl)
1516 1516
 				{
1517
-					$control->traverseChildControls($param,$preCallback,$postCallback);
1517
+					$control->traverseChildControls($param, $preCallback, $postCallback);
1518 1518
 				}
1519 1519
 			}
1520 1520
 		}
1521 1521
 		if($postCallback!==null)
1522
-			call_user_func($postCallback,$this,$param);
1522
+			call_user_func($postCallback, $this, $param);
1523 1523
 	}
1524 1524
 
1525 1525
 	/**
@@ -1596,7 +1596,7 @@  discard block
 block discarded – undo
1596 1596
 	 * @param array the collection of the state
1597 1597
 	 * @param boolean whether the viewstate should be loaded
1598 1598
 	 */
1599
-	protected function loadStateRecursive(&$state,$needViewState=true)
1599
+	protected function loadStateRecursive(&$state, $needViewState=true)
1600 1600
 	{
1601 1601
 		if(is_array($state))
1602 1602
 		{
@@ -1626,7 +1626,7 @@  discard block
 block discarded – undo
1626 1626
 					{
1627 1627
 						if(isset($state[$control->_id]))
1628 1628
 						{
1629
-							$control->loadStateRecursive($state[$control->_id],$needViewState);
1629
+							$control->loadStateRecursive($state[$control->_id], $needViewState);
1630 1630
 							unset($state[$control->_id]);
1631 1631
 						}
1632 1632
 					}
@@ -1662,7 +1662,7 @@  discard block
 block discarded – undo
1662 1662
 			{
1663 1663
 				if($control instanceof TControl)
1664 1664
 				{
1665
-					if(count($tmp = &$control->saveStateRecursive($needViewState)))
1665
+					if(count($tmp=&$control->saveStateRecursive($needViewState)))
1666 1666
 						$state[$control->_id]=$tmp;
1667 1667
 				}
1668 1668
 			}
@@ -1684,10 +1684,10 @@  discard block
 block discarded – undo
1684 1684
 		if($page && !($this->_flags & self::IS_STYLESHEET_APPLIED))
1685 1685
 		{
1686 1686
 			$page->applyControlStyleSheet($this);
1687
-			$this->_flags |= self::IS_STYLESHEET_APPLIED;
1687
+			$this->_flags|=self::IS_STYLESHEET_APPLIED;
1688 1688
 		}
1689 1689
 		else if($this->_flags & self::IS_STYLESHEET_APPLIED)
1690
-			throw new TInvalidOperationException('control_stylesheet_applied',get_class($this));
1690
+			throw new TInvalidOperationException('control_stylesheet_applied', get_class($this));
1691 1691
 	}
1692 1692
 
1693 1693
 	/**
@@ -1711,11 +1711,11 @@  discard block
 block discarded – undo
1711 1711
 	 */
1712 1712
 	private function generateAutomaticID()
1713 1713
 	{
1714
-		$this->_flags &= ~self::IS_ID_SET;
1714
+		$this->_flags&=~self::IS_ID_SET;
1715 1715
 		if(!isset($this->_namingContainer->_rf[self::RF_NAMED_CONTROLS_ID]))
1716 1716
 			$this->_namingContainer->_rf[self::RF_NAMED_CONTROLS_ID]=0;
1717 1717
 		$id=$this->_namingContainer->_rf[self::RF_NAMED_CONTROLS_ID]++;
1718
-		$this->_id=self::AUTOMATIC_ID_PREFIX . $id;
1718
+		$this->_id=self::AUTOMATIC_ID_PREFIX.$id;
1719 1719
 		$this->_namingContainer->clearNameTable();
1720 1720
 	}
1721 1721
 
@@ -1733,7 +1733,7 @@  discard block
 block discarded – undo
1733 1733
 	 * @param TControlCollection list of controls
1734 1734
 	 * @throws TInvalidDataValueException if a control's ID is not unique within its naming container.
1735 1735
 	 */
1736
-	private function fillNameTable($container,$controls)
1736
+	private function fillNameTable($container, $controls)
1737 1737
 	{
1738 1738
 		foreach($controls as $control)
1739 1739
 		{
@@ -1742,12 +1742,12 @@  discard block
 block discarded – undo
1742 1742
 				if($control->_id!=='')
1743 1743
 				{
1744 1744
 					if(isset($container->_rf[self::RF_NAMED_CONTROLS][$control->_id]))
1745
-						throw new TInvalidDataValueException('control_id_nonunique',get_class($control),$control->_id);
1745
+						throw new TInvalidDataValueException('control_id_nonunique', get_class($control), $control->_id);
1746 1746
 					else
1747 1747
 						$container->_rf[self::RF_NAMED_CONTROLS][$control->_id]=$control;
1748 1748
 				}
1749 1749
 				if(!($control instanceof INamingContainer) && $control->getHasControls())
1750
-					$this->fillNameTable($container,$control->_rf[self::RF_CONTROLS]);
1750
+					$this->fillNameTable($container, $control->_rf[self::RF_CONTROLS]);
1751 1751
 			}
1752 1752
 		}
1753 1753
 	}
@@ -1777,10 +1777,10 @@  discard block
 block discarded – undo
1777 1777
 	 * @param TControl the control that owns this collection.
1778 1778
 	 * @param boolean whether the list is read-only
1779 1779
 	 */
1780
-	public function __construct(TControl $owner,$readOnly=false)
1780
+	public function __construct(TControl $owner, $readOnly=false)
1781 1781
 	{
1782 1782
 		$this->_o=$owner;
1783
-		parent::__construct(null,$readOnly);
1783
+		parent::__construct(null, $readOnly);
1784 1784
 	}
1785 1785
 
1786 1786
 	/**
@@ -1799,15 +1799,15 @@  discard block
 block discarded – undo
1799 1799
 	 * @param mixed new item
1800 1800
 	 * @throws TInvalidDataTypeException if the item to be inserted is neither a string nor a TControl.
1801 1801
 	 */
1802
-	public function insertAt($index,$item)
1802
+	public function insertAt($index, $item)
1803 1803
 	{
1804 1804
 		if($item instanceof TControl)
1805 1805
 		{
1806
-			parent::insertAt($index,$item);
1806
+			parent::insertAt($index, $item);
1807 1807
 			$this->_o->addedControl($item);
1808 1808
 		}
1809 1809
 		else if(is_string($item) || ($item instanceof IRenderable))
1810
-			parent::insertAt($index,$item);
1810
+			parent::insertAt($index, $item);
1811 1811
 		else
1812 1812
 			throw new TInvalidDataTypeException('controlcollection_control_required');
1813 1813
 	}
@@ -1856,7 +1856,7 @@  discard block
 block discarded – undo
1856 1856
 	 */
1857 1857
 	public function __construct(TControl $owner)
1858 1858
 	{
1859
-		parent::__construct($owner,true);
1859
+		parent::__construct($owner, true);
1860 1860
 	}
1861 1861
 
1862 1862
 	/**
@@ -1865,10 +1865,10 @@  discard block
 block discarded – undo
1865 1865
 	 * @param integer the speicified position.
1866 1866
 	 * @param mixed new item
1867 1867
 	 */
1868
-	public function insertAt($index,$item)
1868
+	public function insertAt($index, $item)
1869 1869
 	{
1870 1870
 		if(!is_string($item))  // string is possible if property tag is used. we simply ignore it in this case
1871
-			parent::insertAt($index,$item);  // this will generate an exception in parent implementation
1871
+			parent::insertAt($index, $item); // this will generate an exception in parent implementation
1872 1872
 	}
1873 1873
 }
1874 1874
 
@@ -1923,7 +1923,7 @@  discard block
 block discarded – undo
1923 1923
 	 * @param array the input data collection
1924 1924
 	 * @return boolean whether the data of the control has been changed
1925 1925
 	 */
1926
-	public function loadPostData($key,$values);
1926
+	public function loadPostData($key, $values);
1927 1927
 	/**
1928 1928
 	 * Raises postdata changed event.
1929 1929
 	 * The implementation of this function should raise appropriate event(s) (e.g. OnTextChanged)
@@ -2019,7 +2019,7 @@  discard block
 block discarded – undo
2019 2019
 	 * @param TControl sender of the event
2020 2020
 	 * @param TBroadCastEventParameter event parameter
2021 2021
 	 */
2022
-	public function broadcastEventReceived($sender,$param);
2022
+	public function broadcastEventReceived($sender, $param);
2023 2023
 }
2024 2024
 
2025 2025
 /**
@@ -2192,7 +2192,7 @@  discard block
 block discarded – undo
2192 2192
 	 * @param string name of the broadcast event
2193 2193
 	 * @param mixed parameter of the broadcast event
2194 2194
 	 */
2195
-	public function __construct($name='',$parameter=null)
2195
+	public function __construct($name='', $parameter=null)
2196 2196
 	{
2197 2197
 		$this->_name=$name;
2198 2198
 		$this->_param=$parameter;
@@ -2253,7 +2253,7 @@  discard block
 block discarded – undo
2253 2253
 	 * @param string name of the command
2254 2254
 	 * @param string parameter of the command
2255 2255
 	 */
2256
-	public function __construct($name='',$parameter='')
2256
+	public function __construct($name='', $parameter='')
2257 2257
 	{
2258 2258
 		$this->_name=$name;
2259 2259
 		$this->_param=$parameter;
@@ -2345,7 +2345,7 @@  discard block
 block discarded – undo
2345 2345
 	 */
2346 2346
 	public function evaluateDynamicContent()
2347 2347
 	{
2348
-		$context=$this->_container===null?$this:$this->_container;
2348
+		$context=$this->_container===null ? $this : $this->_container;
2349 2349
 		foreach($this->_expressions as $id=>$expression)
2350 2350
 			$this->_items[$id]=$context->evaluateExpression($expression);
2351 2351
 		foreach($this->_statements as $id=>$statement)
@@ -2358,7 +2358,7 @@  discard block
 block discarded – undo
2358 2358
 	 */
2359 2359
 	public function dataBind()
2360 2360
 	{
2361
-		$context=$this->_container===null?$this:$this->_container;
2361
+		$context=$this->_container===null ? $this : $this->_container;
2362 2362
 		foreach($this->_bindings as $id=>$binding)
2363 2363
 			$this->_items[$id]=$context->evaluateExpression($binding);
2364 2364
 	}
@@ -2370,7 +2370,7 @@  discard block
 block discarded – undo
2370 2370
 	 */
2371 2371
 	public function render($writer)
2372 2372
 	{
2373
-		$writer->write(implode('',$this->_items));
2373
+		$writer->write(implode('', $this->_items));
2374 2374
 	}
2375 2375
 }
2376 2376
 
Please login to merge, or discard this patch.
Braces   +16 added lines, -28 removed lines patch added patch discarded remove patch
@@ -377,11 +377,9 @@  discard block
 block discarded – undo
377 377
 					return $this->_id;
378 378
 				else
379 379
 					return ($this->_uid=$prefix.self::ID_SEPARATOR.$this->_id);
380
-			}
381
-			else	// no naming container
380
+			} else	// no naming container
382 381
 				return $this->_id;
383
-		}
384
-		else
382
+		} else
385 383
 			return $this->_uid;
386 384
 	}
387 385
 
@@ -535,8 +533,7 @@  discard block
 block discarded – undo
535 533
 				if(!$control->getVisible(false))
536 534
 					return false;
537 535
 			return true;
538
-		}
539
-		else
536
+		} else
540 537
 			return $this->getViewState('Visible',true);
541 538
 	}
542 539
 
@@ -566,8 +563,7 @@  discard block
 block discarded – undo
566 563
 				if(!$control->getViewState('Enabled',true))
567 564
 					return false;
568 565
 			return true;
569
-		}
570
-		else
566
+		} else
571 567
 			return $this->getViewState('Enabled',true);
572 568
 	}
573 569
 
@@ -664,8 +660,7 @@  discard block
 block discarded – undo
664 660
 				if($control->_flags & self::IS_DISABLE_VIEWSTATE)
665 661
 					return false;
666 662
 			return true;
667
-		}
668
-		else
663
+		} else
669 664
 			return !($this->_flags & self::IS_DISABLE_VIEWSTATE);
670 665
 	}
671 666
 
@@ -750,8 +745,7 @@  discard block
 block discarded – undo
750 745
 			if(is_object($this->_tempState[$key]) && $this->_trackViewState)
751 746
 				$this->_viewState[$key]=$this->_tempState[$key];
752 747
 			return $this->_tempState[$key];
753
-		}
754
-		else
748
+		} else
755 749
 			return $defaultValue;
756 750
 	}
757 751
 
@@ -774,8 +768,7 @@  discard block
 block discarded – undo
774 768
 				unset($this->_viewState[$key]);
775 769
 			else
776 770
 				$this->_viewState[$key]=$value;
777
-		}
778
-		else
771
+		} else
779 772
 		{
780 773
 			unset($this->_viewState[$key]);
781 774
 			if($value===$defaultValue)
@@ -924,8 +917,7 @@  discard block
 block discarded – undo
924 917
 					$this->createChildControls();
925 918
 				$this->_flags &= ~self::IS_CREATING_CHILD;
926 919
 				$this->_flags |= self::IS_CHILD_CREATED;
927
-			}
928
-			catch(Exception $e)
920
+			} catch(Exception $e)
929 921
 			{
930 922
 				$this->_flags &= ~self::IS_CREATING_CHILD;
931 923
 				$this->_flags |= self::IS_CHILD_CREATED;
@@ -1164,8 +1156,9 @@  discard block
 block discarded – undo
1164 1156
 	final protected function isDescendentOf($ancestor)
1165 1157
 	{
1166 1158
 		$control=$this;
1167
-		while($control!==$ancestor && $control->_parent)
1168
-			$control=$control->_parent;
1159
+		while($control!==$ancestor && $control->_parent) {
1160
+					$control=$control->_parent;
1161
+		}
1169 1162
 		return $control===$ancestor;
1170 1163
 	}
1171 1164
 
@@ -1201,8 +1194,7 @@  discard block
 block discarded – undo
1201 1194
 				{
1202 1195
 					$state=$this->_rf[self::RF_CHILD_STATE][$control->_id];
1203 1196
 					unset($this->_rf[self::RF_CHILD_STATE][$control->_id]);
1204
-				}
1205
-				else
1197
+				} else
1206 1198
 					$state=null;
1207 1199
 				$control->loadStateRecursive($state,!($this->_flags & self::IS_DISABLE_VIEWSTATE));
1208 1200
 				if($this->_stage>=self::CS_LOADED)
@@ -1607,8 +1599,7 @@  discard block
 block discarded – undo
1607 1599
 			{
1608 1600
 				$this->_rf[self::RF_CONTROLSTATE]=&$state[1];
1609 1601
 				unset($state[1]);
1610
-			}
1611
-			else
1602
+			} else
1612 1603
 				unset($this->_rf[self::RF_CONTROLSTATE]);
1613 1604
 			if($needViewState)
1614 1605
 			{
@@ -1685,8 +1676,7 @@  discard block
 block discarded – undo
1685 1676
 		{
1686 1677
 			$page->applyControlStyleSheet($this);
1687 1678
 			$this->_flags |= self::IS_STYLESHEET_APPLIED;
1688
-		}
1689
-		else if($this->_flags & self::IS_STYLESHEET_APPLIED)
1679
+		} else if($this->_flags & self::IS_STYLESHEET_APPLIED)
1690 1680
 			throw new TInvalidOperationException('control_stylesheet_applied',get_class($this));
1691 1681
 	}
1692 1682
 
@@ -1805,8 +1795,7 @@  discard block
 block discarded – undo
1805 1795
 		{
1806 1796
 			parent::insertAt($index,$item);
1807 1797
 			$this->_o->addedControl($item);
1808
-		}
1809
-		else if(is_string($item) || ($item instanceof IRenderable))
1798
+		} else if(is_string($item) || ($item instanceof IRenderable))
1810 1799
 			parent::insertAt($index,$item);
1811 1800
 		else
1812 1801
 			throw new TInvalidDataTypeException('controlcollection_control_required');
@@ -2318,8 +2307,7 @@  discard block
 block discarded – undo
2318 2307
 				else if($item[0]===self::TYPE_DATABINDING)
2319 2308
 					$this->_bindings[$id]=$item[1];
2320 2309
 				$this->_items[$id]='';
2321
-			}
2322
-			else
2310
+			} else
2323 2311
 				$this->_items[$id]=$item;
2324 2312
 		}
2325 2313
 	}
Please login to merge, or discard this patch.
Doc Comments   +37 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 * the control ID will take the precedence.
210 210
 	 *
211 211
 	 * @param string the property name or control ID
212
-	 * @return bool wether the control or property exists
212
+	 * @return boolean|null wether the control or property exists
213 213
 	 * @see __get
214 214
 	 */
215 215
 	public function __isset($name) {
@@ -286,6 +286,7 @@  discard block
 block discarded – undo
286 286
 	 * Sets the page for a control.
287 287
 	 * Only framework developers should use this method.
288 288
 	 * @param TPage the page that contains this control
289
+	 * @param TPage $page
289 290
 	 */
290 291
 	public function setPage($page)
291 292
 	{
@@ -567,6 +568,7 @@  discard block
 block discarded – undo
567 568
 
568 569
 	/**
569 570
 	 * @param boolean whether the control is visible
571
+	 * @param boolean $value
570 572
 	 */
571 573
 	public function setVisible($value)
572 574
 	{
@@ -634,6 +636,7 @@  discard block
 block discarded – undo
634 636
 	}
635 637
 
636 638
 	/**
639
+	 * @param string $name
637 640
 	 * @return boolean whether the named attribute exists
638 641
 	 */
639 642
 	public function hasAttribute($name)
@@ -645,6 +648,7 @@  discard block
 block discarded – undo
645 648
 	}
646 649
 
647 650
 	/**
651
+	 * @param string $name
648 652
 	 * @return string attribute value, null if attribute does not exist
649 653
 	 */
650 654
 	public function getAttribute($name)
@@ -659,6 +663,7 @@  discard block
 block discarded – undo
659 663
 	 * Sets a custom control attribute.
660 664
 	 * @param string attribute name
661 665
 	 * @param string value of the attribute
666
+	 * @param string $name
662 667
 	 */
663 668
 	public function setAttribute($name,$value)
664 669
 	{
@@ -696,6 +701,7 @@  discard block
 block discarded – undo
696 701
 
697 702
 	/**
698 703
 	 * @param boolean set whether to enable viewstate
704
+	 * @param boolean $value
699 705
 	 */
700 706
 	public function setEnableViewState($value)
701 707
 	{
@@ -712,6 +718,8 @@  discard block
 block discarded – undo
712 718
 	 * that must be kept in controlstate.
713 719
 	 * @param string the name of the controlstate value to be returned
714 720
 	 * @param mixed the default value. If $key is not found in controlstate, $defaultValue will be returned
721
+	 * @param string $key
722
+	 * @param integer $defaultValue
715 723
 	 * @return mixed the controlstate value corresponding to $key
716 724
 	 */
717 725
 	protected function getControlState($key,$defaultValue=null)
@@ -728,6 +736,8 @@  discard block
 block discarded – undo
728 736
 	 * @param string the name of the controlstate value
729 737
 	 * @param mixed the controlstate value to be set
730 738
 	 * @param mixed default value. If $value===$defaultValue, the item will be cleared from controlstate
739
+	 * @param string $key
740
+	 * @param integer $defaultValue
731 741
 	 */
732 742
 	protected function setControlState($key,$value,$defaultValue=null)
733 743
 	{
@@ -751,6 +761,7 @@  discard block
 block discarded – undo
751 761
 	 * When it is false, data saved via setViewState() will not be persisted.
752 762
 	 * By default, it is true, meaning data will be persisted across postbacks.
753 763
 	 * @param boolean whether data should be persisted
764
+	 * @param boolean $enabled
754 765
 	 */
755 766
 	public function trackViewState($enabled)
756 767
 	{
@@ -789,6 +800,7 @@  discard block
 block discarded – undo
789 800
 	 * @param string the name of the viewstate value
790 801
 	 * @param mixed the viewstate value to be set
791 802
 	 * @param mixed default value. If $value===$defaultValue, the item will be cleared from the viewstate.
803
+	 * @param string $key
792 804
 	 */
793 805
 	public function setViewState($key,$value,$defaultValue=null)
794 806
 	{
@@ -813,6 +825,7 @@  discard block
 block discarded – undo
813 825
 	/**
814 826
 	 * Clears a viewstate value.
815 827
 	 * @param string the name of the viewstate value to be cleared
828
+	 * @param string $key
816 829
 	 */
817 830
 	public function clearViewState($key)
818 831
 	{
@@ -918,6 +931,7 @@  discard block
 block discarded – undo
918 931
 	 * Sets a value indicating whether child controls are created.
919 932
 	 * If false, any existing child controls will be cleared up.
920 933
 	 * @param boolean whether child controls are created
934
+	 * @param boolean $value
921 935
 	 */
922 936
 	final protected function setChildControlsCreated($value)
923 937
 	{
@@ -1008,6 +1022,7 @@  discard block
 block discarded – undo
1008 1022
 	 * Finds all child and grand-child controls that are of the specified type.
1009 1023
 	 * @param string the class name
1010 1024
 	 * @param boolean whether the type comparison is strict or not. If false, controls of the parent classes of the specified class will also be returned.
1025
+	 * @param string $type
1011 1026
 	 * @return array list of controls found
1012 1027
 	 */
1013 1028
 	public function findControlsByType($type,$strict=true)
@@ -1142,6 +1157,7 @@  discard block
 block discarded – undo
1142 1157
 	 * A component with explicit ID on a template will be registered to
1143 1158
 	 * the template owner. This method allows you to obtain this component
1144 1159
 	 * with the ID.
1160
+	 * @param string $name
1145 1161
 	 * @return mixed the named registered object. Null if object is not found.
1146 1162
 	 */
1147 1163
 	public function getRegisteredObject($name)
@@ -1199,6 +1215,7 @@  discard block
 block discarded – undo
1199 1215
 	 * Control lifecycles will be caught up during the addition.
1200 1216
 	 * Only framework developers should use this method.
1201 1217
 	 * @param TControl the new child control
1218
+	 * @param TControl $control
1202 1219
 	 */
1203 1220
 	public function addedControl($control)
1204 1221
 	{
@@ -1244,6 +1261,7 @@  discard block
 block discarded – undo
1244 1261
 	 * Removes a control from the child collection of the control.
1245 1262
 	 * Only framework developers should use this method.
1246 1263
 	 * @param TControl the child control removed
1264
+	 * @param TControl $control
1247 1265
 	 */
1248 1266
 	public function removedControl($control)
1249 1267
 	{
@@ -1495,6 +1513,7 @@  discard block
 block discarded – undo
1495 1513
 	 * @param string name of the broadcast event
1496 1514
 	 * @param TControl sender of the event
1497 1515
 	 * @param TBroadcastEventParameter event parameter
1516
+	 * @param TBroadcastEventParameter $param
1498 1517
 	 */
1499 1518
 	private function broadcastEventInternal($name,$sender,$param)
1500 1519
 	{
@@ -1719,6 +1738,7 @@  discard block
 block discarded – undo
1719 1738
 	 * Clears the cached UniqueID.
1720 1739
 	 * If $recursive=true, all children's cached UniqueID will be cleared as well.
1721 1740
 	 * @param boolean whether the clearing is recursive.
1741
+	 * @param boolean $recursive
1722 1742
 	 */
1723 1743
 	private function clearCachedUniqueID($recursive)
1724 1744
 	{
@@ -1756,6 +1776,7 @@  discard block
 block discarded – undo
1756 1776
 	 * Updates the list of the controls whose IDs are managed by the specified naming container.
1757 1777
 	 * @param TControl the naming container
1758 1778
 	 * @param TControlCollection list of controls
1779
+	 * @param TControl $container
1759 1780
 	 * @throws TInvalidDataValueException if a control's ID is not unique within its naming container.
1760 1781
 	 */
1761 1782
 	private function fillNameTable($container,$controls)
@@ -1925,6 +1946,7 @@  discard block
 block discarded – undo
1925 1946
 	 * The implementation of this function should raise appropriate event(s) (e.g. OnClick, OnCommand)
1926 1947
 	 * indicating the component is responsible for the postback event.
1927 1948
 	 * @param string the parameter associated with the postback event
1949
+	 * @return void
1928 1950
 	 */
1929 1951
 	public function raisePostBackEvent($param);
1930 1952
 }
@@ -1953,6 +1975,7 @@  discard block
 block discarded – undo
1953 1975
 	 * Raises postdata changed event.
1954 1976
 	 * The implementation of this function should raise appropriate event(s) (e.g. OnTextChanged)
1955 1977
 	 * indicating the control data is changed.
1978
+	 * @return void
1956 1979
 	 */
1957 1980
 	public function raisePostDataChangedEvent();
1958 1981
 	/**
@@ -1986,6 +2009,7 @@  discard block
 block discarded – undo
1986 2009
 	public function getIsValid();
1987 2010
 	/**
1988 2011
 	 * @param boolean whether the validator validates successfully
2012
+	 * @return void
1989 2013
 	 */
1990 2014
 	public function setIsValid($value);
1991 2015
 	/**
@@ -1994,6 +2018,7 @@  discard block
 block discarded – undo
1994 2018
 	public function getErrorMessage();
1995 2019
 	/**
1996 2020
 	 * @param string error message for the validation
2021
+	 * @return void
1997 2022
 	 */
1998 2023
 	public function setErrorMessage($value);
1999 2024
 }
@@ -2061,6 +2086,7 @@  discard block
 block discarded – undo
2061 2086
 	/**
2062 2087
 	 * Applies this theme to the specified control.
2063 2088
 	 * @param TControl the control to be applied with this theme
2089
+	 * @return boolean
2064 2090
 	 */
2065 2091
 	public function applySkin($control);
2066 2092
 }
@@ -2082,6 +2108,7 @@  discard block
 block discarded – undo
2082 2108
 	 * Content in the template will be instantiated as components and text strings
2083 2109
 	 * and passed to the specified parent control.
2084 2110
 	 * @param TControl the parent control
2111
+	 * @return void
2085 2112
 	 */
2086 2113
 	public function instantiateIn($parent);
2087 2114
 }
@@ -2106,6 +2133,8 @@  discard block
 block discarded – undo
2106 2133
 
2107 2134
 	/**
2108 2135
 	 * @param string caption of the button
2136
+	 * @param string $value
2137
+	 * @return void
2109 2138
 	 */
2110 2139
 	public function setText($value);
2111 2140
 
@@ -2116,6 +2145,7 @@  discard block
 block discarded – undo
2116 2145
 
2117 2146
 	/**
2118 2147
 	 * @param boolean whether postback event trigger by this button will cause input validation
2148
+	 * @return void
2119 2149
 	 */
2120 2150
 	public function setCausesValidation($value);
2121 2151
 
@@ -2126,6 +2156,7 @@  discard block
 block discarded – undo
2126 2156
 
2127 2157
 	/**
2128 2158
 	 * @param string the command name associated with the {@link onCommand OnCommand} event.
2159
+	 * @return void
2129 2160
 	 */
2130 2161
 	public function setCommandName($value);
2131 2162
 
@@ -2136,6 +2167,7 @@  discard block
 block discarded – undo
2136 2167
 
2137 2168
 	/**
2138 2169
 	 * @param string the parameter associated with the {@link onCommand OnCommand} event.
2170
+	 * @return void
2139 2171
 	 */
2140 2172
 	public function setCommandParameter($value);
2141 2173
 
@@ -2146,23 +2178,27 @@  discard block
 block discarded – undo
2146 2178
 
2147 2179
 	/**
2148 2180
 	 * @param string the group of validators which the button causes validation upon postback
2181
+	 * @return void
2149 2182
 	 */
2150 2183
 	public function setValidationGroup($value);
2151 2184
 
2152 2185
 	/**
2153 2186
 	 * Raises <b>OnClick</b> event.
2154 2187
 	 * @param TEventParameter event parameter to be passed to the event handlers
2188
+	 * @return void
2155 2189
 	 */
2156 2190
 	public function onClick($param);
2157 2191
 
2158 2192
 	/**
2159 2193
 	 * Raises <b>OnCommand</b> event.
2160 2194
 	 * @param TCommandEventParameter event parameter to be passed to the event handlers
2195
+	 * @return void
2161 2196
 	 */
2162 2197
 	public function onCommand($param);
2163 2198
 
2164 2199
 	/**
2165 2200
 	 * @param boolean set by a panel to register this button as the default button for the panel.
2201
+	 * @return void
2166 2202
 	 */
2167 2203
 	public function setIsDefaultButton($value);
2168 2204
 
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiResizable.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 */
75 75
 	public function getOptions()
76 76
 	{
77
-		if (($options=$this->getViewState('JuiOptions'))===null)
77
+		if(($options=$this->getViewState('JuiOptions'))===null)
78 78
 		{
79 79
 		  $options=new TJuiControlOptions($this);
80 80
 		  $this->setViewState('JuiOptions', $options);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	 */
106 106
 	protected function getPostBackOptions()
107 107
 	{
108
-		$options = $this->getOptions()->toArray();
108
+		$options=$this->getOptions()->toArray();
109 109
 		return $options;
110 110
 	}
111 111
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	{
118 118
 		parent::addAttributesToRender($writer);
119 119
 
120
-		$writer->addAttribute('id',$this->getClientID());
120
+		$writer->addAttribute('id', $this->getClientID());
121 121
 		$options=TJavascript::encode($this->getPostBackOptions());
122 122
 		$cs=$this->getPage()->getClientScript();
123 123
 		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 * Raises the OnCreate event
139 139
 	 * @param object $params event parameters
140 140
 	 */
141
-	public function onCreate ($params)
141
+	public function onCreate($params)
142 142
 	{
143 143
 		$this->raiseEvent('OnCreate', $this, $params);
144 144
 	}
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * Raises the OnResize event
148 148
 	 * @param object $params event parameters
149 149
 	 */
150
-	public function onResize ($params)
150
+	public function onResize($params)
151 151
 	{
152 152
 		$this->raiseEvent('OnResize', $this, $params);
153 153
 	}
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	 * Raises the OnStart event
157 157
 	 * @param object $params event parameters
158 158
 	 */
159
-	public function onStart ($params)
159
+	public function onStart($params)
160 160
 	{
161 161
 		$this->raiseEvent('OnStart', $this, $params);
162 162
 	}
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 * Raises the OnStop event
166 166
 	 * @param object $params event parameters
167 167
 	 */
168
-	public function onStop ($params)
168
+	public function onStop($params)
169 169
 	{
170 170
 		$this->raiseEvent('OnStop', $this, $params);
171 171
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDraggable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	public function getOptions()
74 74
 	{
75
-		if (($options=$this->getViewState('JuiOptions'))===null)
75
+		if(($options=$this->getViewState('JuiOptions'))===null)
76 76
 		{
77 77
 		  $options=new TJuiControlOptions($this);
78 78
 		  $this->setViewState('JuiOptions', $options);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	{
115 115
 		parent::addAttributesToRender($writer);
116 116
 
117
-		$writer->addAttribute('id',$this->getClientID());
117
+		$writer->addAttribute('id', $this->getClientID());
118 118
 		$options=TJavascript::encode($this->getPostBackOptions());
119 119
 		$cs=$this->getPage()->getClientScript();
120 120
 		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	 * Raises the OnCreate event
136 136
 	 * @param object $params event parameters
137 137
 	 */
138
-	public function onCreate ($params)
138
+	public function onCreate($params)
139 139
 	{
140 140
 		$this->raiseEvent('OnCreate', $this, $params);
141 141
 	}
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * Raises the OnDrag event
145 145
 	 * @param object $params event parameters
146 146
 	 */
147
-	public function onDrag ($params)
147
+	public function onDrag($params)
148 148
 	{
149 149
 		$this->raiseEvent('OnDrag', $this, $params);
150 150
 	}
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	 * Raises the OnStart event
154 154
 	 * @param object $params event parameters
155 155
 	 */
156
-	public function onStart ($params)
156
+	public function onStart($params)
157 157
 	{
158 158
 		$this->raiseEvent('OnStart', $this, $params);
159 159
 	}
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	 * Raises the OnStop event
163 163
 	 * @param object $params event parameters
164 164
 	 */
165
-	public function onStop ($params)
165
+	public function onStop($params)
166 166
 	{
167 167
 		$this->raiseEvent('OnStop', $this, $params);
168 168
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDroppable.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	 */
93 93
 	public function getOptions()
94 94
 	{
95
-		if (($options=$this->getViewState('JuiOptions'))===null)
95
+		if(($options=$this->getViewState('JuiOptions'))===null)
96 96
 		{
97 97
 		  $options=new TJuiControlOptions($this);
98 98
 		  $this->setViewState('JuiOptions', $options);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	{
135 135
 		parent::addAttributesToRender($writer);
136 136
 
137
-		$writer->addAttribute('id',$this->getClientID());
137
+		$writer->addAttribute('id', $this->getClientID());
138 138
 		$options=TJavascript::encode($this->getPostBackOptions());
139 139
 		$cs=$this->getPage()->getClientScript();
140 140
 		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	 * Raises the OnActivate event
156 156
 	 * @param object $params event parameters
157 157
 	 */
158
-	public function onActivate ($params)
158
+	public function onActivate($params)
159 159
 	{
160 160
 		$this->raiseEvent('OnActivate', $this, $params);
161 161
 	}
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 	 * Raises the OnCreate event
165 165
 	 * @param object $params event parameters
166 166
 	 */
167
-	public function onCreate ($params)
167
+	public function onCreate($params)
168 168
 	{
169 169
 		$this->raiseEvent('OnCreate', $this, $params);
170 170
 	}
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 * Raises the OnDeactivate event
174 174
 	 * @param object $params event parameters
175 175
 	 */
176
-	public function onDeactivate ($params)
176
+	public function onDeactivate($params)
177 177
 	{
178 178
 		$this->raiseEvent('OnDeactivate', $this, $params);
179 179
 	}
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 	 * Raises the OnDrop event
183 183
 	 * @param object $params event parameters
184 184
 	 */
185
-	public function onDrop ($params)
185
+	public function onDrop($params)
186 186
 	{
187 187
 		$this->raiseEvent('OnDrop', $this, $params);
188 188
 	}
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 	 * Raises the OnOut event
192 192
 	 * @param object $params event parameters
193 193
 	 */
194
-	public function OnOut ($params)
194
+	public function OnOut($params)
195 195
 	{
196 196
 		$this->raiseEvent('OnOut', $this, $params);
197 197
 	}
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 	 * Raises the OnOver event
201 201
 	 * @param object $params event parameters
202 202
 	 */
203
-	public function OnOver ($params)
203
+	public function OnOver($params)
204 204
 	{
205 205
 		$this->raiseEvent('OnOver', $this, $params);
206 206
 	}
Please login to merge, or discard this patch.