Completed
Branch scrutinizer (4d54e2)
by Fabio
15:49
created
framework/pradolite.php 1 patch
Indentation   +97 added lines, -97 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * File Name: pradolite.php
4
- * Last Update: 2016/03/09 11:34:32
5
- * Generated By: buildscripts/phpbuilder/build.php
6
- *
7
- * This file is used in lieu of prado.php to boost PRADO application performance.
8
- * It is generated by expanding prado.php with included files.
9
- * Comments and trace statements are stripped off.
10
- *
11
- * Do not modify this file manually.
12
- */
3
+	 * File Name: pradolite.php
4
+	 * Last Update: 2016/03/09 11:34:32
5
+	 * Generated By: buildscripts/phpbuilder/build.php
6
+	 *
7
+	 * This file is used in lieu of prado.php to boost PRADO application performance.
8
+	 * It is generated by expanding prado.php with included files.
9
+	 * Comments and trace statements are stripped off.
10
+	 *
11
+	 * Do not modify this file manually.
12
+	 */
13 13
 
14 14
 if(!defined('PRADO_DIR'))
15 15
 	define('PRADO_DIR',dirname(__FILE__));
@@ -4170,10 +4170,10 @@  discard block
 block discarded – undo
4170 4170
 		{
4171 4171
 			$value=TPropertyValue::ensureEnum($value,'THttpSessionCookieMode');
4172 4172
 			if($value===THttpSessionCookieMode::None) 
4173
-      {
4173
+	  {
4174 4174
 				ini_set('session.use_cookies','0');
4175 4175
 			  ini_set('session.use_only_cookies','0');
4176
-      }
4176
+	  }
4177 4177
 			else if($value===THttpSessionCookieMode::Allow)
4178 4178
 			{
4179 4179
 				ini_set('session.use_cookies','1');
@@ -6837,77 +6837,77 @@  discard block
 block discarded – undo
6837 6837
 			throw new TConfigurationException('templatecontrol_mastercontrol_required',get_class($this));
6838 6838
 		parent::initRecursive($namingContainer);
6839 6839
 	}
6840
-        public function tryToUpdateView($arObj, $throwExceptions = false)
6841
-        {
6842
-                $objAttrs = get_class_vars(get_class($arObj));
6843
-                foreach (array_keys($objAttrs) as $key)
6844
-                {
6845
-                        try
6846
-                        {
6847
-                                if ($key != "RELATIONS")
6848
-                                {
6849
-                                        $control = $this->{$key};
6850
-                                        if ($control instanceof TTextBox)
6851
-                                                $control->Text = $arObj->{$key};
6852
-                                        elseif ($control instanceof TCheckBox)
6853
-                                                $control->Checked = (boolean) $arObj->{$key};
6854
-                                        elseif ($control instanceof TDatePicker)
6855
-                                                $control->Date = $arObj->{$key};
6856
-                                }
6857
-                                else
6858
-                                {
6859
-                                        foreach ($objAttrs["RELATIONS"] as $relKey => $relValues)
6860
-                                        {
6861
-                                                $relControl = $this->{$relKey};
6862
-                                                switch ($relValues[0])
6863
-                                                {
6864
-                                                        case TActiveRecord::BELONGS_TO:
6865
-                                                        case TActiveRecord::HAS_ONE:
6866
-                                                                $relControl->Text = $arObj->{$relKey};
6867
-                                                                break;
6868
-                                                        case TActiveRecord::HAS_MANY:
6869
-                                                                if ($relControl instanceof TListControl)
6870
-                                                                {
6871
-                                                                        $relControl->DataSource = $arObj->{$relKey};
6872
-                                                                        $relControl->dataBind();
6873
-                                                                }
6874
-                                                                break;
6875
-                                                }
6876
-                                        }
6877
-                                        break;
6878
-                                }
6879
-                        } 
6880
-                        catch (Exception $ex)
6881
-                        {
6882
-                                if ($throwExceptions)
6883
-                                        throw $ex;
6884
-                        }
6885
-                }
6886
-        }
6887
-        public function tryToUpdateAR($arObj, $throwExceptions = false)
6888
-        {
6889
-                $objAttrs = get_class_vars(get_class($arObj));
6890
-                foreach (array_keys($objAttrs) as $key)
6891
-                {
6892
-                        try
6893
-                        {
6894
-                                if ($key == "RELATIONS")
6895
-                                        break;
6896
-                                $control = $this->{$key};
6897
-                                if ($control instanceof TTextBox)
6898
-                                        $arObj->{$key} = $control->Text;
6899
-                                elseif ($control instanceof TCheckBox)
6900
-                                        $arObj->{$key} = $control->Checked;
6901
-                                elseif ($control instanceof TDatePicker)
6902
-                                        $arObj->{$key} = $control->Date;
6903
-                        } 
6904
-                        catch (Exception $ex)
6905
-                        {
6906
-                                if ($throwExceptions)
6907
-                                        throw $ex;
6908
-                        }
6909
-                }
6910
-        }
6840
+		public function tryToUpdateView($arObj, $throwExceptions = false)
6841
+		{
6842
+				$objAttrs = get_class_vars(get_class($arObj));
6843
+				foreach (array_keys($objAttrs) as $key)
6844
+				{
6845
+						try
6846
+						{
6847
+								if ($key != "RELATIONS")
6848
+								{
6849
+										$control = $this->{$key};
6850
+										if ($control instanceof TTextBox)
6851
+												$control->Text = $arObj->{$key};
6852
+										elseif ($control instanceof TCheckBox)
6853
+												$control->Checked = (boolean) $arObj->{$key};
6854
+										elseif ($control instanceof TDatePicker)
6855
+												$control->Date = $arObj->{$key};
6856
+								}
6857
+								else
6858
+								{
6859
+										foreach ($objAttrs["RELATIONS"] as $relKey => $relValues)
6860
+										{
6861
+												$relControl = $this->{$relKey};
6862
+												switch ($relValues[0])
6863
+												{
6864
+														case TActiveRecord::BELONGS_TO:
6865
+														case TActiveRecord::HAS_ONE:
6866
+																$relControl->Text = $arObj->{$relKey};
6867
+																break;
6868
+														case TActiveRecord::HAS_MANY:
6869
+																if ($relControl instanceof TListControl)
6870
+																{
6871
+																		$relControl->DataSource = $arObj->{$relKey};
6872
+																		$relControl->dataBind();
6873
+																}
6874
+																break;
6875
+												}
6876
+										}
6877
+										break;
6878
+								}
6879
+						} 
6880
+						catch (Exception $ex)
6881
+						{
6882
+								if ($throwExceptions)
6883
+										throw $ex;
6884
+						}
6885
+				}
6886
+		}
6887
+		public function tryToUpdateAR($arObj, $throwExceptions = false)
6888
+		{
6889
+				$objAttrs = get_class_vars(get_class($arObj));
6890
+				foreach (array_keys($objAttrs) as $key)
6891
+				{
6892
+						try
6893
+						{
6894
+								if ($key == "RELATIONS")
6895
+										break;
6896
+								$control = $this->{$key};
6897
+								if ($control instanceof TTextBox)
6898
+										$arObj->{$key} = $control->Text;
6899
+								elseif ($control instanceof TCheckBox)
6900
+										$arObj->{$key} = $control->Checked;
6901
+								elseif ($control instanceof TDatePicker)
6902
+										$arObj->{$key} = $control->Date;
6903
+						} 
6904
+						catch (Exception $ex)
6905
+						{
6906
+								if ($throwExceptions)
6907
+										throw $ex;
6908
+						}
6909
+				}
6910
+		}
6911 6911
 }
6912 6912
 class TForm extends TControl
6913 6913
 {
@@ -7569,13 +7569,13 @@  discard block
 block discarded – undo
7569 7569
 		Prado::using('System.Web.UI.ActiveControls.TActivePageAdapter');
7570 7570
 		Prado::using('System.Web.UI.JuiControls.TJuiControlOptions');
7571 7571
 		$this->setAdapter(new TActivePageAdapter($this));
7572
-        $callbackEventParameter = $this->getRequest()->itemAt(TPage::FIELD_CALLBACK_PARAMETER);
7573
-        if(strlen($callbackEventParameter) > 0)
7574
-            $this->_postData[TPage::FIELD_CALLBACK_PARAMETER]=TJavaScript::jsonDecode((string)$callbackEventParameter);
7575
-                if (($g=$this->getApplication()->getGlobalization(false))!==null &&
7576
-            strtoupper($enc=$g->getCharset())!='UTF-8')
7577
-                foreach ($this->_postData as $k=>$v)
7578
-                	$this->_postData[$k]=self::decodeUTF8($v, $enc);
7572
+		$callbackEventParameter = $this->getRequest()->itemAt(TPage::FIELD_CALLBACK_PARAMETER);
7573
+		if(strlen($callbackEventParameter) > 0)
7574
+			$this->_postData[TPage::FIELD_CALLBACK_PARAMETER]=TJavaScript::jsonDecode((string)$callbackEventParameter);
7575
+				if (($g=$this->getApplication()->getGlobalization(false))!==null &&
7576
+			strtoupper($enc=$g->getCharset())!='UTF-8')
7577
+				foreach ($this->_postData as $k=>$v)
7578
+					$this->_postData[$k]=self::decodeUTF8($v, $enc);
7579 7579
 		$this->onPreInit(null);
7580 7580
 		$this->initRecursive();
7581 7581
 		$this->onInitComplete(null);
@@ -9160,15 +9160,15 @@  discard block
 block discarded – undo
9160 9160
 	  $component=new ReflectionClass('TComponent');
9161 9161
 	  $behaviors=$component->getStaticProperties();
9162 9162
 	  if(!isset($behaviors['_um']))
9163
-	    return false;
9163
+		return false;
9164 9164
 	  foreach($behaviors['_um'] as $name=>$list)
9165 9165
 	  {
9166
-	    if(strtolower($class->getShortName())!==$name && !$class->isSubclassOf($name)) continue;
9167
-	    foreach($list as $param)
9168
-	    {
9169
-	      if(method_exists($param->getBehavior(),$method))
9170
-	        return true;
9171
-	    }
9166
+		if(strtolower($class->getShortName())!==$name && !$class->isSubclassOf($name)) continue;
9167
+		foreach($list as $param)
9168
+		{
9169
+		  if(method_exists($param->getBehavior(),$method))
9170
+			return true;
9171
+		}
9172 9172
 	  }
9173 9173
 	  return false;
9174 9174
 	}
Please login to merge, or discard this patch.