@@ -100,21 +100,21 @@ discard block |
||
| 100 | 100 | $font=dirname(__FILE__).DIRECTORY_SEPARATOR.'verase.ttf'; |
| 101 | 101 | |
| 102 | 102 | if(function_exists('imagefilter')) |
| 103 | - imagefilter($image,IMG_FILTER_GAUSSIAN_BLUR); |
|
| 103 | + imagefilter($image,IMG_FILTER_GAUSSIAN_BLUR); |
|
| 104 | 104 | |
| 105 | 105 | $hasShadow=($theme&THEME_SHADOWED_TEXT); |
| 106 | - for($i=0;$i<$length;$i++) |
|
| 106 | + for($i=0;$i<$length;$i++) |
|
| 107 | 107 | { |
| 108 | - $color=imagecolorallocate($image,rand(150,220),rand(150,220),rand(150,220)); |
|
| 109 | - $size=rand($fontWidth-10,$fontWidth); |
|
| 110 | - $angle=rand(-30,30); |
|
| 111 | - $x=$padding+$i*$fontWidth; |
|
| 112 | - $y=rand($fontHeight-15,$fontHeight-10); |
|
| 113 | - imagettftext($image,$size,$angle,$x,$y,$color,$font,$token[$i]); |
|
| 114 | - if($hasShadow) |
|
| 115 | - imagettftext($image,$size,$angle,$x+2,$y+2,$color,$font,$token[$i]); |
|
| 116 | - imagecolordeallocate($image,$color); |
|
| 117 | - } |
|
| 108 | + $color=imagecolorallocate($image,rand(150,220),rand(150,220),rand(150,220)); |
|
| 109 | + $size=rand($fontWidth-10,$fontWidth); |
|
| 110 | + $angle=rand(-30,30); |
|
| 111 | + $x=$padding+$i*$fontWidth; |
|
| 112 | + $y=rand($fontHeight-15,$fontHeight-10); |
|
| 113 | + imagettftext($image,$size,$angle,$x,$y,$color,$font,$token[$i]); |
|
| 114 | + if($hasShadow) |
|
| 115 | + imagettftext($image,$size,$angle,$x+2,$y+2,$color,$font,$token[$i]); |
|
| 116 | + imagecolordeallocate($image,$color); |
|
| 117 | + } |
|
| 118 | 118 | |
| 119 | 119 | header('Content-Type: image/png'); |
| 120 | 120 | imagepng($image); |
@@ -158,8 +158,8 @@ discard block |
||
| 158 | 158 | { |
| 159 | 159 | $color=imagecolorallocate($image,rand(150,220),rand(150,220),rand(150,220)); |
| 160 | 160 | imagesetpixel($image,$x,$y,$color); |
| 161 | - imagecolordeallocate($image,$color); |
|
| 162 | - } |
|
| 161 | + imagecolordeallocate($image,$color); |
|
| 162 | + } |
|
| 163 | 163 | } |
| 164 | 164 | } |
| 165 | 165 | } |
@@ -129,9 +129,9 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * Sets the date format for a date validation |
|
| 133 | - * @param string the date format value |
|
| 134 | - */ |
|
| 132 | + * Sets the date format for a date validation |
|
| 133 | + * @param string the date format value |
|
| 134 | + */ |
|
| 135 | 135 | public function setDateFormat($value) |
| 136 | 136 | { |
| 137 | 137 | $this->setViewState('DateFormat', $value, ''); |
@@ -189,10 +189,10 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /** |
| 192 | - * Determine if the value is within the integer range. |
|
| 193 | - * @param string value to validate true |
|
| 194 | - * @return boolean true if within integer range. |
|
| 195 | - */ |
|
| 192 | + * Determine if the value is within the integer range. |
|
| 193 | + * @param string value to validate true |
|
| 194 | + * @return boolean true if within integer range. |
|
| 195 | + */ |
|
| 196 | 196 | protected function isValidInteger($value) |
| 197 | 197 | { |
| 198 | 198 | $minValue=$this->getMinValue(); |
@@ -81,9 +81,9 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * Returns the index of the active tab view. |
|
| 85 | - * Note, this property may not return the correct index. |
|
| 86 | - * To ensure the correctness, call {@link getActiveView()} first. |
|
| 84 | + * Returns the index of the active tab view. |
|
| 85 | + * Note, this property may not return the correct index. |
|
| 86 | + * To ensure the correctness, call {@link getActiveView()} first. |
|
| 87 | 87 | * @return integer the zero-based index of the active tab view. If -1, it means no active tab view. Default is 0 (the first view is active). |
| 88 | 88 | */ |
| 89 | 89 | public function getActiveViewIndex() |
@@ -100,24 +100,24 @@ discard block |
||
| 100 | 100 | $this->setViewState('ActiveViewIndex',TPropertyValue::ensureInteger($value),0); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | - /** |
|
| 104 | - * Returns the ID of the active tab view. |
|
| 105 | - * Note, this property may not return the correct ID. |
|
| 106 | - * To ensure the correctness, call {@link getActiveView()} first. |
|
| 107 | - * @return string The ID of the active tab view. Defaults to '', meaning not set. |
|
| 108 | - */ |
|
| 109 | - public function getActiveViewID() |
|
| 110 | - { |
|
| 103 | + /** |
|
| 104 | + * Returns the ID of the active tab view. |
|
| 105 | + * Note, this property may not return the correct ID. |
|
| 106 | + * To ensure the correctness, call {@link getActiveView()} first. |
|
| 107 | + * @return string The ID of the active tab view. Defaults to '', meaning not set. |
|
| 108 | + */ |
|
| 109 | + public function getActiveViewID() |
|
| 110 | + { |
|
| 111 | 111 | return $this->getViewState('ActiveViewID',''); |
| 112 | - } |
|
| 112 | + } |
|
| 113 | 113 | |
| 114 | - /** |
|
| 115 | - * @param string The ID of the active tab view. |
|
| 116 | - */ |
|
| 117 | - public function setActiveViewID($value) |
|
| 118 | - { |
|
| 114 | + /** |
|
| 115 | + * @param string The ID of the active tab view. |
|
| 116 | + */ |
|
| 117 | + public function setActiveViewID($value) |
|
| 118 | + { |
|
| 119 | 119 | $this->setViewState('ActiveViewID',$value,''); |
| 120 | - } |
|
| 120 | + } |
|
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | 123 | * Returns the currently active view. |
@@ -172,63 +172,63 @@ discard block |
||
| 172 | 172 | throw new TInvalidOperationException('tabpanel_view_inexistent'); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - /** |
|
| 176 | - * @return bool status of automatic tab switch on hover |
|
| 177 | - */ |
|
| 178 | - public function getAutoSwitch() |
|
| 179 | - { |
|
| 180 | - return TPropertyValue::ensureBoolean($this->getViewState('AutoSwitch')); |
|
| 181 | - } |
|
| 182 | - |
|
| 183 | - /** |
|
| 184 | - * @param bool whether to enable automatic tab switch on hover |
|
| 185 | - */ |
|
| 186 | - public function setAutoSwitch($value) |
|
| 187 | - { |
|
| 188 | - $this->setViewState('AutoSwitch',TPropertyValue::ensureBoolean($value)); |
|
| 189 | - } |
|
| 190 | - |
|
| 191 | - |
|
| 192 | - /** |
|
| 193 | - * @return string URL for the CSS file including all relevant CSS class definitions. Defaults to ''. |
|
| 194 | - */ |
|
| 195 | - public function getCssUrl() |
|
| 196 | - { |
|
| 197 | - return $this->getViewState('CssUrl','default'); |
|
| 198 | - } |
|
| 199 | - |
|
| 200 | - /** |
|
| 201 | - * @param string URL for the CSS file including all relevant CSS class definitions. |
|
| 202 | - */ |
|
| 203 | - public function setCssUrl($value) |
|
| 204 | - { |
|
| 205 | - $this->setViewState('CssUrl',TPropertyValue::ensureString($value),''); |
|
| 206 | - } |
|
| 207 | - |
|
| 208 | - /** |
|
| 209 | - * @return string CSS class for the whole tab control div. Defaults to 'tab-panel'. |
|
| 210 | - */ |
|
| 211 | - public function getCssClass() |
|
| 212 | - { |
|
| 213 | - $cssClass=parent::getCssClass(); |
|
| 214 | - return $cssClass===''?'tab-panel':$cssClass; |
|
| 215 | - } |
|
| 216 | - |
|
| 217 | - /** |
|
| 218 | - * @return string CSS class for the currently displayed view div. Defaults to 'tab-view'. |
|
| 219 | - */ |
|
| 220 | - public function getViewCssClass() |
|
| 221 | - { |
|
| 222 | - return $this->getViewStyle()->getCssClass(); |
|
| 223 | - } |
|
| 224 | - |
|
| 225 | - /** |
|
| 226 | - * @param string CSS class for the currently displayed view div. |
|
| 227 | - */ |
|
| 228 | - public function setViewCssClass($value) |
|
| 229 | - { |
|
| 230 | - $this->getViewStyle()->setCssClass($value); |
|
| 231 | - } |
|
| 175 | + /** |
|
| 176 | + * @return bool status of automatic tab switch on hover |
|
| 177 | + */ |
|
| 178 | + public function getAutoSwitch() |
|
| 179 | + { |
|
| 180 | + return TPropertyValue::ensureBoolean($this->getViewState('AutoSwitch')); |
|
| 181 | + } |
|
| 182 | + |
|
| 183 | + /** |
|
| 184 | + * @param bool whether to enable automatic tab switch on hover |
|
| 185 | + */ |
|
| 186 | + public function setAutoSwitch($value) |
|
| 187 | + { |
|
| 188 | + $this->setViewState('AutoSwitch',TPropertyValue::ensureBoolean($value)); |
|
| 189 | + } |
|
| 190 | + |
|
| 191 | + |
|
| 192 | + /** |
|
| 193 | + * @return string URL for the CSS file including all relevant CSS class definitions. Defaults to ''. |
|
| 194 | + */ |
|
| 195 | + public function getCssUrl() |
|
| 196 | + { |
|
| 197 | + return $this->getViewState('CssUrl','default'); |
|
| 198 | + } |
|
| 199 | + |
|
| 200 | + /** |
|
| 201 | + * @param string URL for the CSS file including all relevant CSS class definitions. |
|
| 202 | + */ |
|
| 203 | + public function setCssUrl($value) |
|
| 204 | + { |
|
| 205 | + $this->setViewState('CssUrl',TPropertyValue::ensureString($value),''); |
|
| 206 | + } |
|
| 207 | + |
|
| 208 | + /** |
|
| 209 | + * @return string CSS class for the whole tab control div. Defaults to 'tab-panel'. |
|
| 210 | + */ |
|
| 211 | + public function getCssClass() |
|
| 212 | + { |
|
| 213 | + $cssClass=parent::getCssClass(); |
|
| 214 | + return $cssClass===''?'tab-panel':$cssClass; |
|
| 215 | + } |
|
| 216 | + |
|
| 217 | + /** |
|
| 218 | + * @return string CSS class for the currently displayed view div. Defaults to 'tab-view'. |
|
| 219 | + */ |
|
| 220 | + public function getViewCssClass() |
|
| 221 | + { |
|
| 222 | + return $this->getViewStyle()->getCssClass(); |
|
| 223 | + } |
|
| 224 | + |
|
| 225 | + /** |
|
| 226 | + * @param string CSS class for the currently displayed view div. |
|
| 227 | + */ |
|
| 228 | + public function setViewCssClass($value) |
|
| 229 | + { |
|
| 230 | + $this->getViewStyle()->setCssClass($value); |
|
| 231 | + } |
|
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | 234 | * @return TStyle the style for all the view div |
@@ -244,21 +244,21 @@ discard block |
||
| 244 | 244 | return $style; |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | - /** |
|
| 248 | - * @return string CSS class for non-active tabs. Defaults to 'tab-normal'. |
|
| 249 | - */ |
|
| 250 | - public function getTabCssClass() |
|
| 251 | - { |
|
| 252 | - return $this->getTabStyle()->getCssClass(); |
|
| 253 | - } |
|
| 247 | + /** |
|
| 248 | + * @return string CSS class for non-active tabs. Defaults to 'tab-normal'. |
|
| 249 | + */ |
|
| 250 | + public function getTabCssClass() |
|
| 251 | + { |
|
| 252 | + return $this->getTabStyle()->getCssClass(); |
|
| 253 | + } |
|
| 254 | 254 | |
| 255 | - /** |
|
| 256 | - * @param string CSS class for non-active tabs. |
|
| 257 | - */ |
|
| 258 | - public function setTabCssClass($value) |
|
| 259 | - { |
|
| 260 | - $this->getTabStyle()->setCssClass($value); |
|
| 261 | - } |
|
| 255 | + /** |
|
| 256 | + * @param string CSS class for non-active tabs. |
|
| 257 | + */ |
|
| 258 | + public function setTabCssClass($value) |
|
| 259 | + { |
|
| 260 | + $this->getTabStyle()->setCssClass($value); |
|
| 261 | + } |
|
| 262 | 262 | |
| 263 | 263 | /** |
| 264 | 264 | * @return TStyle the style for all the inactive tab div |
@@ -274,21 +274,21 @@ discard block |
||
| 274 | 274 | return $style; |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | - /** |
|
| 278 | - * @return string CSS class for the active tab. Defaults to 'tab-active'. |
|
| 279 | - */ |
|
| 280 | - public function getActiveTabCssClass() |
|
| 281 | - { |
|
| 282 | - return $this->getActiveTabStyle()->getCssClass(); |
|
| 283 | - } |
|
| 284 | - |
|
| 285 | - /** |
|
| 286 | - * @param string CSS class for the active tab. |
|
| 287 | - */ |
|
| 288 | - public function setActiveTabCssClass($value) |
|
| 289 | - { |
|
| 290 | - $this->getActiveTabStyle()->setCssClass($value); |
|
| 291 | - } |
|
| 277 | + /** |
|
| 278 | + * @return string CSS class for the active tab. Defaults to 'tab-active'. |
|
| 279 | + */ |
|
| 280 | + public function getActiveTabCssClass() |
|
| 281 | + { |
|
| 282 | + return $this->getActiveTabStyle()->getCssClass(); |
|
| 283 | + } |
|
| 284 | + |
|
| 285 | + /** |
|
| 286 | + * @param string CSS class for the active tab. |
|
| 287 | + */ |
|
| 288 | + public function setActiveTabCssClass($value) |
|
| 289 | + { |
|
| 290 | + $this->getActiveTabStyle()->setCssClass($value); |
|
| 291 | + } |
|
| 292 | 292 | |
| 293 | 293 | /** |
| 294 | 294 | * @return TStyle the style for the active tab div |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @return boolean a value indicating whether an automatic postback to the server |
| 35 | - * will occur whenever the user modifies the text in the TActiveDatePicker control and |
|
| 36 | - * then tabs out of the component. Defaults to true. |
|
| 35 | + * will occur whenever the user modifies the text in the TActiveDatePicker control and |
|
| 36 | + * then tabs out of the component. Defaults to true. |
|
| 37 | 37 | */ |
| 38 | 38 | public function getAutoPostBack() |
| 39 | 39 | { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | class TActiveHiddenField extends THiddenField implements ICallbackEventHandler, IActiveControl |
| 24 | 24 | { |
| 25 | - /** |
|
| 25 | + /** |
|
| 26 | 26 | * Creates a new callback control, sets the adapter to |
| 27 | 27 | * TActiveControlAdapter. If you override this class, be sure to set the |
| 28 | 28 | * adapter appropriately by, for example, by calling this constructor. |
@@ -60,8 +60,8 @@ |
||
| 60 | 60 | * @param THtmlWriter the writer used for the rendering purpose |
| 61 | 61 | */ |
| 62 | 62 | protected function addAttributesToRender($writer) { |
| 63 | - $writer->addAttribute('id',$this->getClientID()); |
|
| 64 | - parent::addAttributesToRender($writer); |
|
| 63 | + $writer->addAttribute('id',$this->getClientID()); |
|
| 64 | + parent::addAttributesToRender($writer); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | && $this->getPage()->getClientSupportsJavaScript()) |
| 117 | 117 | { |
| 118 | 118 | $this->getActiveControl()->registerCallbackClientScript( |
| 119 | - $this->getClientClassName(), $this->getPostBackOptions()); |
|
| 119 | + $this->getClientClassName(), $this->getPostBackOptions()); |
|
| 120 | 120 | } |
| 121 | 121 | } |
| 122 | 122 | |
@@ -238,90 +238,90 @@ |
||
| 238 | 238 | parent::initRecursive($namingContainer); |
| 239 | 239 | } |
| 240 | 240 | |
| 241 | - /** |
|
| 242 | - * Function to update view controls with data in a given AR object. |
|
| 243 | - * View controls and AR object need to have the same name in IDs and Attrs respectively. |
|
| 244 | - * @param TActiveRecord $arObj |
|
| 245 | - * @param Boolean $throwExceptions Wheter or not to throw exceptions |
|
| 246 | - * @author Daniel Sampedro <[email protected]> |
|
| 247 | - */ |
|
| 248 | - public function tryToUpdateView($arObj, $throwExceptions = false) |
|
| 249 | - { |
|
| 250 | - $objAttrs = get_class_vars(get_class($arObj)); |
|
| 251 | - foreach (array_keys($objAttrs) as $key) |
|
| 252 | - { |
|
| 253 | - try |
|
| 254 | - { |
|
| 255 | - if ($key != "RELATIONS") |
|
| 256 | - { |
|
| 257 | - $control = $this->{$key}; |
|
| 258 | - if ($control instanceof TTextBox) |
|
| 259 | - $control->Text = $arObj->{$key}; |
|
| 260 | - elseif ($control instanceof TCheckBox) |
|
| 261 | - $control->Checked = (boolean) $arObj->{$key}; |
|
| 262 | - elseif ($control instanceof TDatePicker) |
|
| 263 | - $control->Date = $arObj->{$key}; |
|
| 264 | - } |
|
| 265 | - else |
|
| 266 | - { |
|
| 267 | - foreach ($objAttrs["RELATIONS"] as $relKey => $relValues) |
|
| 268 | - { |
|
| 269 | - $relControl = $this->{$relKey}; |
|
| 270 | - switch ($relValues[0]) |
|
| 271 | - { |
|
| 272 | - case TActiveRecord::BELONGS_TO: |
|
| 273 | - case TActiveRecord::HAS_ONE: |
|
| 274 | - $relControl->Text = $arObj->{$relKey}; |
|
| 275 | - break; |
|
| 276 | - case TActiveRecord::HAS_MANY: |
|
| 277 | - if ($relControl instanceof TListControl) |
|
| 278 | - { |
|
| 279 | - $relControl->DataSource = $arObj->{$relKey}; |
|
| 280 | - $relControl->dataBind(); |
|
| 281 | - } |
|
| 282 | - break; |
|
| 283 | - } |
|
| 284 | - } |
|
| 285 | - break; |
|
| 286 | - } |
|
| 287 | - } |
|
| 288 | - catch (Exception $ex) |
|
| 289 | - { |
|
| 290 | - if ($throwExceptions) |
|
| 291 | - throw $ex; |
|
| 292 | - } |
|
| 293 | - } |
|
| 294 | - } |
|
| 241 | + /** |
|
| 242 | + * Function to update view controls with data in a given AR object. |
|
| 243 | + * View controls and AR object need to have the same name in IDs and Attrs respectively. |
|
| 244 | + * @param TActiveRecord $arObj |
|
| 245 | + * @param Boolean $throwExceptions Wheter or not to throw exceptions |
|
| 246 | + * @author Daniel Sampedro <[email protected]> |
|
| 247 | + */ |
|
| 248 | + public function tryToUpdateView($arObj, $throwExceptions = false) |
|
| 249 | + { |
|
| 250 | + $objAttrs = get_class_vars(get_class($arObj)); |
|
| 251 | + foreach (array_keys($objAttrs) as $key) |
|
| 252 | + { |
|
| 253 | + try |
|
| 254 | + { |
|
| 255 | + if ($key != "RELATIONS") |
|
| 256 | + { |
|
| 257 | + $control = $this->{$key}; |
|
| 258 | + if ($control instanceof TTextBox) |
|
| 259 | + $control->Text = $arObj->{$key}; |
|
| 260 | + elseif ($control instanceof TCheckBox) |
|
| 261 | + $control->Checked = (boolean) $arObj->{$key}; |
|
| 262 | + elseif ($control instanceof TDatePicker) |
|
| 263 | + $control->Date = $arObj->{$key}; |
|
| 264 | + } |
|
| 265 | + else |
|
| 266 | + { |
|
| 267 | + foreach ($objAttrs["RELATIONS"] as $relKey => $relValues) |
|
| 268 | + { |
|
| 269 | + $relControl = $this->{$relKey}; |
|
| 270 | + switch ($relValues[0]) |
|
| 271 | + { |
|
| 272 | + case TActiveRecord::BELONGS_TO: |
|
| 273 | + case TActiveRecord::HAS_ONE: |
|
| 274 | + $relControl->Text = $arObj->{$relKey}; |
|
| 275 | + break; |
|
| 276 | + case TActiveRecord::HAS_MANY: |
|
| 277 | + if ($relControl instanceof TListControl) |
|
| 278 | + { |
|
| 279 | + $relControl->DataSource = $arObj->{$relKey}; |
|
| 280 | + $relControl->dataBind(); |
|
| 281 | + } |
|
| 282 | + break; |
|
| 283 | + } |
|
| 284 | + } |
|
| 285 | + break; |
|
| 286 | + } |
|
| 287 | + } |
|
| 288 | + catch (Exception $ex) |
|
| 289 | + { |
|
| 290 | + if ($throwExceptions) |
|
| 291 | + throw $ex; |
|
| 292 | + } |
|
| 293 | + } |
|
| 294 | + } |
|
| 295 | 295 | |
| 296 | - /** |
|
| 297 | - * Function to try to update an AR object with data in view controls. |
|
| 298 | - * @param TActiveRecord $arObj |
|
| 299 | - * @param Boolean $throwExceptions Wheter or not to throw exceptions |
|
| 300 | - * @author Daniel Sampedro <[email protected]> |
|
| 301 | - */ |
|
| 302 | - public function tryToUpdateAR($arObj, $throwExceptions = false) |
|
| 303 | - { |
|
| 304 | - $objAttrs = get_class_vars(get_class($arObj)); |
|
| 305 | - foreach (array_keys($objAttrs) as $key) |
|
| 306 | - { |
|
| 307 | - try |
|
| 308 | - { |
|
| 309 | - if ($key == "RELATIONS") |
|
| 310 | - break; |
|
| 311 | - $control = $this->{$key}; |
|
| 312 | - if ($control instanceof TTextBox) |
|
| 313 | - $arObj->{$key} = $control->Text; |
|
| 314 | - elseif ($control instanceof TCheckBox) |
|
| 315 | - $arObj->{$key} = $control->Checked; |
|
| 316 | - elseif ($control instanceof TDatePicker) |
|
| 317 | - $arObj->{$key} = $control->Date; |
|
| 318 | - } |
|
| 319 | - catch (Exception $ex) |
|
| 320 | - { |
|
| 321 | - if ($throwExceptions) |
|
| 322 | - throw $ex; |
|
| 323 | - } |
|
| 324 | - } |
|
| 325 | - } |
|
| 296 | + /** |
|
| 297 | + * Function to try to update an AR object with data in view controls. |
|
| 298 | + * @param TActiveRecord $arObj |
|
| 299 | + * @param Boolean $throwExceptions Wheter or not to throw exceptions |
|
| 300 | + * @author Daniel Sampedro <[email protected]> |
|
| 301 | + */ |
|
| 302 | + public function tryToUpdateAR($arObj, $throwExceptions = false) |
|
| 303 | + { |
|
| 304 | + $objAttrs = get_class_vars(get_class($arObj)); |
|
| 305 | + foreach (array_keys($objAttrs) as $key) |
|
| 306 | + { |
|
| 307 | + try |
|
| 308 | + { |
|
| 309 | + if ($key == "RELATIONS") |
|
| 310 | + break; |
|
| 311 | + $control = $this->{$key}; |
|
| 312 | + if ($control instanceof TTextBox) |
|
| 313 | + $arObj->{$key} = $control->Text; |
|
| 314 | + elseif ($control instanceof TCheckBox) |
|
| 315 | + $arObj->{$key} = $control->Checked; |
|
| 316 | + elseif ($control instanceof TDatePicker) |
|
| 317 | + $arObj->{$key} = $control->Date; |
|
| 318 | + } |
|
| 319 | + catch (Exception $ex) |
|
| 320 | + { |
|
| 321 | + if ($throwExceptions) |
|
| 322 | + throw $ex; |
|
| 323 | + } |
|
| 324 | + } |
|
| 325 | + } |
|
| 326 | 326 | } |
| 327 | 327 | |
@@ -602,7 +602,7 @@ |
||
| 602 | 602 | |
| 603 | 603 | /** |
| 604 | 604 | * @param string the application configuration type. 'xml' and 'php' are valid values |
| 605 | - */ |
|
| 605 | + */ |
|
| 606 | 606 | public function setConfigurationType($value) |
| 607 | 607 | { |
| 608 | 608 | $this->_configType = $value; |