@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function setDecayRate($value) |
| 81 | 81 | { |
| 82 | - $decay = TPropertyValue::ensureFloat($value); |
|
| 82 | + $decay=TPropertyValue::ensureFloat($value); |
|
| 83 | 83 | if($decay < 0) |
| 84 | 84 | throw new TConfigurationException('callback_decay_be_not_negative', $this->getID()); |
| 85 | 85 | $this->setViewState('Decay', $decay); |
@@ -90,10 +90,10 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | protected function getTriggerOptions() |
| 92 | 92 | { |
| 93 | - $options = parent::getTriggerOptions(); |
|
| 94 | - $options['PropertyName'] = $this->getPropertyName(); |
|
| 95 | - $options['Interval'] = $this->getInterval(); |
|
| 96 | - $options['Decay'] = $this->getDecayRate(); |
|
| 93 | + $options=parent::getTriggerOptions(); |
|
| 94 | + $options['PropertyName']=$this->getPropertyName(); |
|
| 95 | + $options['Interval']=$this->getInterval(); |
|
| 96 | + $options['Decay']=$this->getDecayRate(); |
|
| 97 | 97 | return $options; |
| 98 | 98 | } |
| 99 | 99 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | public function getClientSide() |
| 37 | 37 | { |
| 38 | 38 | if($this->_clientSide===null) |
| 39 | - $this->_clientSide = $this->createClientSide(); |
|
| 39 | + $this->_clientSide=$this->createClientSide(); |
|
| 40 | 40 | return $this->_clientSide; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | protected function getTargetControl() |
| 46 | 46 | { |
| 47 | - $id = $this->getControlID(); |
|
| 47 | + $id=$this->getControlID(); |
|
| 48 | 48 | if(($control=$this->findControl($id)) instanceof TControl) |
| 49 | 49 | return $control->getClientID(); |
| 50 | 50 | if($id==='') |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | protected function getTriggerOptions() |
| 62 | 62 | { |
| 63 | - $options['ID'] = $this->getClientID(); |
|
| 64 | - $options['EventTarget'] = $this->getUniqueID(); |
|
| 65 | - $options['ControlID'] = $this->getTargetControl(); |
|
| 63 | + $options['ID']=$this->getClientID(); |
|
| 64 | + $options['EventTarget']=$this->getUniqueID(); |
|
| 65 | + $options['ControlID']=$this->getTargetControl(); |
|
| 66 | 66 | return $options; |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | */ |
| 265 | 265 | public function setEnablePageStateUpdate($value) |
| 266 | 266 | { |
| 267 | - $enabled = TPropertyValue::ensureBoolean($value); |
|
| 267 | + $enabled=TPropertyValue::ensureBoolean($value); |
|
| 268 | 268 | $this->setOption('EnablePageStateUpdate', $enabled); |
| 269 | 269 | } |
| 270 | 270 | |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | */ |
| 275 | 275 | public function getEnablePageStateUpdate() |
| 276 | 276 | { |
| 277 | - $option = $this->getOption('EnablePageStateUpdate'); |
|
| 277 | + $option=$this->getOption('EnablePageStateUpdate'); |
|
| 278 | 278 | return ($option===null) ? true : $option; |
| 279 | 279 | } |
| 280 | 280 | |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | public function setPostBackTarget($value) |
| 293 | 293 | { |
| 294 | 294 | if($value instanceof TControl) |
| 295 | - $value = $value->getUniqueID(); |
|
| 295 | + $value=$value->getUniqueID(); |
|
| 296 | 296 | $this->setOption('EventTarget', $value); |
| 297 | 297 | } |
| 298 | 298 | |
@@ -47,8 +47,8 @@ |
||
| 47 | 47 | */ |
| 48 | 48 | public function __construct($response, $parameter) |
| 49 | 49 | { |
| 50 | - $this->_response = $response; |
|
| 51 | - $this->_parameter = $parameter; |
|
| 50 | + $this->_response=$response; |
|
| 51 | + $this->_parameter=$parameter; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -64,10 +64,10 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | protected function getTriggerOptions() |
| 66 | 66 | { |
| 67 | - $options = parent::getTriggerOptions(); |
|
| 68 | - $name = preg_replace('/^on/', '', $this->getEventName()); |
|
| 69 | - $options['EventName'] = strtolower($name); |
|
| 70 | - $options['StopEvent'] = $this->getPreventDefaultAction(); |
|
| 67 | + $options=parent::getTriggerOptions(); |
|
| 68 | + $name=preg_replace('/^on/', '', $this->getEventName()); |
|
| 69 | + $options['EventName']=strtolower($name); |
|
| 70 | + $options['StopEvent']=$this->getPreventDefaultAction(); |
|
| 71 | 71 | return $options; |
| 72 | 72 | } |
| 73 | 73 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function getTagName() |
| 39 | 39 | { |
| 40 | - return ($this->_tagName !== null) ? $this->_tagName : ($this->_tagName = $this->getDefaultTagName()); |
|
| 40 | + return ($this->_tagName!==null) ? $this->_tagName : ($this->_tagName=$this->getDefaultTagName()); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -61,6 +61,6 @@ discard block |
||
| 61 | 61 | * @return boolean true if TagName has deviated from the default. |
| 62 | 62 | */ |
| 63 | 63 | public function getIsMutated() { |
| 64 | - return $this->_tagName !== null && $this->_tagName != $this->getDefaultTagName(); |
|
| 64 | + return $this->_tagName!==null && $this->_tagName!=$this->getDefaultTagName(); |
|
| 65 | 65 | } |
| 66 | 66 | } |
@@ -105,11 +105,11 @@ discard block |
||
| 105 | 105 | public function onPreRender($param) |
| 106 | 106 | { |
| 107 | 107 | parent::onPreRender($param); |
| 108 | - $scripts = preg_split('/,|\s+/', $this->getPradoScripts()); |
|
| 109 | - $cs = $this->getPage()->getClientScript(); |
|
| 108 | + $scripts=preg_split('/,|\s+/', $this->getPradoScripts()); |
|
| 109 | + $cs=$this->getPage()->getClientScript(); |
|
| 110 | 110 | foreach($scripts as $script) |
| 111 | 111 | { |
| 112 | - if(($script = trim($script))!=='') |
|
| 112 | + if(($script=trim($script))!=='') |
|
| 113 | 113 | $cs->registerPradoScript($script); |
| 114 | 114 | } |
| 115 | 115 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public function render($writer) |
| 124 | 124 | { |
| 125 | - if ($this->getFlushScriptFiles()) |
|
| 125 | + if($this->getFlushScriptFiles()) |
|
| 126 | 126 | $this->getPage()->getClientScript()->flushScriptFiles($writer, $this); |
| 127 | 127 | $this->renderCustomScriptFile($writer); |
| 128 | 128 | $this->renderCustomScript($writer); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | protected function renderCustomScriptFile($writer) |
| 136 | 136 | { |
| 137 | - if(($scriptUrl = $this->getScriptUrl())!=='') |
|
| 137 | + if(($scriptUrl=$this->getScriptUrl())!=='') |
|
| 138 | 138 | $writer->write("<script type=\"text/javascript\" src=\"$scriptUrl\"></script>\n"); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function __construct() |
| 46 | 46 | { |
| 47 | 47 | parent::__construct(); |
| 48 | - $this->EnableViewState = false; |
|
| 48 | + $this->EnableViewState=false; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function setContinueBuffering($value) |
| 63 | 63 | { |
| 64 | - $this->_continueBuffering = TPropertyValue::ensureBoolean($value); |
|
| 64 | + $this->_continueBuffering=TPropertyValue::ensureBoolean($value); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | //$writer->write('<!-- flush -->'); |
| 74 | 74 | // ajax responses can't be parsed by the client side before loaded and returned completely, |
| 75 | 75 | // so don't bother with flushing output somewhere mid-page if refreshing in a callback |
| 76 | - if (!$this->Page->IsCallback) |
|
| 76 | + if(!$this->Page->IsCallback) |
|
| 77 | 77 | { |
| 78 | 78 | $this->Page->flushWriter(); |
| 79 | 79 | // $this->Application->flushOutput($this->ContinueBuffering); |