@@ -35,9 +35,9 @@ |
||
| 35 | 35 | public function getPHPType() |
| 36 | 36 | { |
| 37 | 37 | $dbtype = strtolower($this->getDbType()); |
| 38 | - foreach(self::$types as $type => $dbtypes) |
|
| 38 | + foreach (self::$types as $type => $dbtypes) |
|
| 39 | 39 | { |
| 40 | - if(in_array($dbtype, $dbtypes)) |
|
| 40 | + if (in_array($dbtype, $dbtypes)) |
|
| 41 | 41 | return $type; |
| 42 | 42 | } |
| 43 | 43 | return 'string'; |
@@ -39,8 +39,9 @@ |
||
| 39 | 39 | $dbtype = strtolower($this->getDbType()); |
| 40 | 40 | foreach(self::$types as $type => $dbtypes) |
| 41 | 41 | { |
| 42 | - if(in_array($dbtype, $dbtypes)) |
|
| 43 | - return $type; |
|
| 42 | + if(in_array($dbtype, $dbtypes)) { |
|
| 43 | + return $type; |
|
| 44 | + } |
|
| 44 | 45 | } |
| 45 | 46 | return 'string'; |
| 46 | 47 | } |
@@ -55,12 +55,14 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function setText($value) |
| 57 | 57 | { |
| 58 | - if(parent::getText() === $value) |
|
| 59 | - return; |
|
| 58 | + if(parent::getText() === $value) { |
|
| 59 | + return; |
|
| 60 | + } |
|
| 60 | 61 | |
| 61 | 62 | parent::setText($value); |
| 62 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 63 | - $this->getPage()->getCallbackClient()->update($this, $value); |
|
| 63 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 64 | + $this->getPage()->getCallbackClient()->update($this, $value); |
|
| 65 | + } |
|
| 64 | 66 | } |
| 65 | 67 | |
| 66 | 68 | /** |
@@ -71,8 +73,9 @@ discard block |
||
| 71 | 73 | */ |
| 72 | 74 | public function setForControl($value) |
| 73 | 75 | { |
| 74 | - if(parent::getForControl() === $value) |
|
| 75 | - return; |
|
| 76 | + if(parent::getForControl() === $value) { |
|
| 77 | + return; |
|
| 78 | + } |
|
| 76 | 79 | |
| 77 | 80 | parent::setForControl($value); |
| 78 | 81 | if($this->getActiveControl()->canUpdateClientSide()) |
@@ -59,11 +59,11 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function setText($value) |
| 61 | 61 | { |
| 62 | - if(parent::getText() === $value) |
|
| 62 | + if (parent::getText() === $value) |
|
| 63 | 63 | return; |
| 64 | 64 | |
| 65 | 65 | parent::setText($value); |
| 66 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 66 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 67 | 67 | $this->getPage()->getCallbackClient()->update($this, $value); |
| 68 | 68 | } |
| 69 | 69 | |
@@ -75,11 +75,11 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function setForControl($value) |
| 77 | 77 | { |
| 78 | - if(parent::getForControl() === $value) |
|
| 78 | + if (parent::getForControl() === $value) |
|
| 79 | 79 | return; |
| 80 | 80 | |
| 81 | 81 | parent::setForControl($value); |
| 82 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 82 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 83 | 83 | { |
| 84 | 84 | $id = $this->findControl($value)->getClientID(); |
| 85 | 85 | $this->getPage()->getCallbackClient()->setAttribute($this, 'for', $id); |
@@ -55,12 +55,14 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function setValue($value) |
| 57 | 57 | { |
| 58 | - if(parent::getValue() === $value) |
|
| 59 | - return; |
|
| 58 | + if(parent::getValue() === $value) { |
|
| 59 | + return; |
|
| 60 | + } |
|
| 60 | 61 | |
| 61 | 62 | parent::setValue($value); |
| 62 | - if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) |
|
| 63 | - $this->getPage()->getCallbackClient()->setValue($this, $value); |
|
| 63 | + if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) { |
|
| 64 | + $this->getPage()->getCallbackClient()->setValue($this, $value); |
|
| 65 | + } |
|
| 64 | 66 | } |
| 65 | 67 | |
| 66 | 68 | /** |
@@ -60,11 +60,11 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | public function setValue($value) |
| 62 | 62 | { |
| 63 | - if(parent::getValue() === $value) |
|
| 63 | + if (parent::getValue() === $value) |
|
| 64 | 64 | return; |
| 65 | 65 | |
| 66 | 66 | parent::setValue($value); |
| 67 | - if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) |
|
| 67 | + if ($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) |
|
| 68 | 68 | $this->getPage()->getCallbackClient()->setValue($this, $value); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -62,12 +62,14 @@ |
||
| 62 | 62 | */ |
| 63 | 63 | public function setText($value) |
| 64 | 64 | { |
| 65 | - if(parent::getText() === $value) |
|
| 66 | - return; |
|
| 65 | + if(parent::getText() === $value) { |
|
| 66 | + return; |
|
| 67 | + } |
|
| 67 | 68 | |
| 68 | 69 | parent::setText($value); |
| 69 | - if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) |
|
| 70 | - $this->getPage()->getCallbackClient()->setValue($this, $value); |
|
| 70 | + if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) { |
|
| 71 | + $this->getPage()->getCallbackClient()->setValue($this, $value); |
|
| 72 | + } |
|
| 71 | 73 | } |
| 72 | 74 | |
| 73 | 75 | /** |
@@ -66,11 +66,11 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | public function setText($value) |
| 68 | 68 | { |
| 69 | - if(parent::getText() === $value) |
|
| 69 | + if (parent::getText() === $value) |
|
| 70 | 70 | return; |
| 71 | 71 | |
| 72 | 72 | parent::setText($value); |
| 73 | - if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) |
|
| 73 | + if ($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) |
|
| 74 | 74 | $this->getPage()->getCallbackClient()->setValue($this, $value); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function setText($value) |
| 52 | 52 | { |
| 53 | - if(parent::getText() === $value) |
|
| 53 | + if (parent::getText() === $value) |
|
| 54 | 54 | return; |
| 55 | 55 | |
| 56 | 56 | parent::setText($value); |
| 57 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 57 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 58 | 58 | $this->getPage()->getCallbackClient()->update($this, $value); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function setImageUrl($value) |
| 66 | 66 | { |
| 67 | - if(parent::getImageUrl() === $value) |
|
| 67 | + if (parent::getImageUrl() === $value) |
|
| 68 | 68 | return; |
| 69 | 69 | |
| 70 | 70 | parent::setImageUrl($value); |
| 71 | - if($this->getActiveControl()->canUpdateClientSide() && $value !== '') |
|
| 71 | + if ($this->getActiveControl()->canUpdateClientSide() && $value !== '') |
|
| 72 | 72 | { |
| 73 | 73 | $textWriter = new TTextWriter; |
| 74 | 74 | $renderer = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), $textWriter); |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function setNavigateUrl($value) |
| 85 | 85 | { |
| 86 | - if(parent::getNavigateUrl() === $value) |
|
| 86 | + if (parent::getNavigateUrl() === $value) |
|
| 87 | 87 | return; |
| 88 | 88 | |
| 89 | 89 | parent::setNavigateUrl($value); |
| 90 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 90 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 91 | 91 | { |
| 92 | 92 | //replace & with & and urldecode the url (setting the href using javascript is literal) |
| 93 | 93 | $url = urldecode(str_replace('&', '&', $value)); |
@@ -101,11 +101,11 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | public function setTarget($value) |
| 103 | 103 | { |
| 104 | - if(parent::getTarget() === $value) |
|
| 104 | + if (parent::getTarget() === $value) |
|
| 105 | 105 | return; |
| 106 | 106 | |
| 107 | 107 | parent::setTarget($value); |
| 108 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 108 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 109 | 109 | $this->getPage()->getCallbackClient()->setAttribute($this, 'target', $value); |
| 110 | 110 | } |
| 111 | 111 | } |
@@ -50,12 +50,14 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function setText($value) |
| 52 | 52 | { |
| 53 | - if(parent::getText() === $value) |
|
| 54 | - return; |
|
| 53 | + if(parent::getText() === $value) { |
|
| 54 | + return; |
|
| 55 | + } |
|
| 55 | 56 | |
| 56 | 57 | parent::setText($value); |
| 57 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 58 | - $this->getPage()->getCallbackClient()->update($this, $value); |
|
| 58 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 59 | + $this->getPage()->getCallbackClient()->update($this, $value); |
|
| 60 | + } |
|
| 59 | 61 | } |
| 60 | 62 | |
| 61 | 63 | /** |
@@ -64,8 +66,9 @@ discard block |
||
| 64 | 66 | */ |
| 65 | 67 | public function setImageUrl($value) |
| 66 | 68 | { |
| 67 | - if(parent::getImageUrl() === $value) |
|
| 68 | - return; |
|
| 69 | + if(parent::getImageUrl() === $value) { |
|
| 70 | + return; |
|
| 71 | + } |
|
| 69 | 72 | |
| 70 | 73 | parent::setImageUrl($value); |
| 71 | 74 | if($this->getActiveControl()->canUpdateClientSide() && $value !== '') |
@@ -83,8 +86,9 @@ discard block |
||
| 83 | 86 | */ |
| 84 | 87 | public function setNavigateUrl($value) |
| 85 | 88 | { |
| 86 | - if(parent::getNavigateUrl() === $value) |
|
| 87 | - return; |
|
| 89 | + if(parent::getNavigateUrl() === $value) { |
|
| 90 | + return; |
|
| 91 | + } |
|
| 88 | 92 | |
| 89 | 93 | parent::setNavigateUrl($value); |
| 90 | 94 | if($this->getActiveControl()->canUpdateClientSide()) |
@@ -101,12 +105,14 @@ discard block |
||
| 101 | 105 | */ |
| 102 | 106 | public function setTarget($value) |
| 103 | 107 | { |
| 104 | - if(parent::getTarget() === $value) |
|
| 105 | - return; |
|
| 108 | + if(parent::getTarget() === $value) { |
|
| 109 | + return; |
|
| 110 | + } |
|
| 106 | 111 | |
| 107 | 112 | parent::setTarget($value); |
| 108 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 109 | - $this->getPage()->getCallbackClient()->setAttribute($this, 'target', $value); |
|
| 113 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 114 | + $this->getPage()->getCallbackClient()->setAttribute($this, 'target', $value); |
|
| 115 | + } |
|
| 110 | 116 | } |
| 111 | 117 | } |
| 112 | 118 | |
@@ -89,8 +89,9 @@ |
||
| 89 | 89 | * @param string text content for the textbox |
| 90 | 90 | */ |
| 91 | 91 | public function setText($value){ |
| 92 | - if(parent::getText() === $value) |
|
| 93 | - return; |
|
| 92 | + if(parent::getText() === $value) { |
|
| 93 | + return; |
|
| 94 | + } |
|
| 94 | 95 | |
| 95 | 96 | parent::setText($value); |
| 96 | 97 | if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()){ |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | /** |
| 88 | 88 | * @return TBaseActiveCallbackControl standard callback control options. |
| 89 | 89 | */ |
| 90 | - public function getActiveControl(){ |
|
| 90 | + public function getActiveControl() { |
|
| 91 | 91 | return $this->getAdapter()->getBaseActiveControl(); |
| 92 | 92 | } |
| 93 | 93 | |
@@ -95,12 +95,12 @@ discard block |
||
| 95 | 95 | * Client-side Text property can only be updated after the OnLoad stage. |
| 96 | 96 | * @param string text content for the textbox |
| 97 | 97 | */ |
| 98 | - public function setText($value){ |
|
| 99 | - if(parent::getText() === $value) |
|
| 98 | + public function setText($value) { |
|
| 99 | + if (parent::getText() === $value) |
|
| 100 | 100 | return; |
| 101 | 101 | |
| 102 | 102 | parent::setText($value); |
| 103 | - if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()){ |
|
| 103 | + if ($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) { |
|
| 104 | 104 | $cb = $this->getPage()->getCallbackClient(); |
| 105 | 105 | $cb->setValue($this, $value); |
| 106 | 106 | if ($this->getInputMode() == TDatePickerInputMode::DropDownList) |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | $dt = new \DateTime; |
| 109 | 109 | $dt->setTimeStamp($this->getTimeStampFromText()); |
| 110 | 110 | $id = $this->getClientID(); |
| 111 | - $cb->select($id . TControl::CLIENT_ID_SEPARATOR . 'day', 'Value', $dt->format('j'), 'select'); |
|
| 112 | - $cb->select($id . TControl::CLIENT_ID_SEPARATOR . 'month', 'Value', $dt->format('n') - 1, 'select'); |
|
| 113 | - $cb->select($id . TControl::CLIENT_ID_SEPARATOR . 'year', 'Value', $dt->format('Y'), 'select'); |
|
| 111 | + $cb->select($id.TControl::CLIENT_ID_SEPARATOR.'day', 'Value', $dt->format('j'), 'select'); |
|
| 112 | + $cb->select($id.TControl::CLIENT_ID_SEPARATOR.'month', 'Value', $dt->format('n') - 1, 'select'); |
|
| 113 | + $cb->select($id.TControl::CLIENT_ID_SEPARATOR.'year', 'Value', $dt->format('Y'), 'select'); |
|
| 114 | 114 | |
| 115 | 115 | } |
| 116 | 116 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * This method is mainly used by framework and control developers. |
| 123 | 123 | * @param TCallbackEventParameter the event parameter |
| 124 | 124 | */ |
| 125 | - public function raiseCallbackEvent($param){ |
|
| 125 | + public function raiseCallbackEvent($param) { |
|
| 126 | 126 | $this->onCallback($param); |
| 127 | 127 | } |
| 128 | 128 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * handler can be invoked. |
| 134 | 134 | * @param TCallbackEventParameter event parameter to be passed to the event handlers |
| 135 | 135 | */ |
| 136 | - public function onCallback($param){ |
|
| 136 | + public function onCallback($param) { |
|
| 137 | 137 | $this->raiseEvent('OnCallback', $this, $param); |
| 138 | 138 | } |
| 139 | 139 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | protected function renderClientControlScript($writer) |
| 151 | 151 | { |
| 152 | 152 | $cs = $this->getPage()->getClientScript(); |
| 153 | - if(!$cs->isEndScriptRegistered('TDatePicker.spacer')) |
|
| 153 | + if (!$cs->isEndScriptRegistered('TDatePicker.spacer')) |
|
| 154 | 154 | { |
| 155 | 155 | $spacer = $this->getAssetUrl('spacer.gif'); |
| 156 | 156 | $code = "Prado.WebUI.TDatePicker.spacer = '$spacer';"; |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | $options = TJavaScript::encode($this->getDatePickerOptions()); |
| 161 | 161 | $code = "new Prado.WebUI.TActiveDatePicker($options);"; |
| 162 | - $cs->registerEndScript("prado:" . $this->getClientID(), $code); |
|
| 162 | + $cs->registerEndScript("prado:".$this->getClientID(), $code); |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | /** |
@@ -58,12 +58,14 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function setAlternateText($value) |
| 60 | 60 | { |
| 61 | - if(parent::getAlternateText() === $value) |
|
| 62 | - return; |
|
| 61 | + if(parent::getAlternateText() === $value) { |
|
| 62 | + return; |
|
| 63 | + } |
|
| 63 | 64 | |
| 64 | 65 | parent::setAlternateText($value); |
| 65 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 66 | - $this->getPage()->getCallbackClient()->setAttribute($this, 'alt', $value); |
|
| 66 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 67 | + $this->getPage()->getCallbackClient()->setAttribute($this, 'alt', $value); |
|
| 68 | + } |
|
| 67 | 69 | } |
| 68 | 70 | |
| 69 | 71 | /** |
@@ -75,12 +77,14 @@ discard block |
||
| 75 | 77 | */ |
| 76 | 78 | public function setImageAlign($value) |
| 77 | 79 | { |
| 78 | - if(parent::getImageAlign() === $value) |
|
| 79 | - return; |
|
| 80 | + if(parent::getImageAlign() === $value) { |
|
| 81 | + return; |
|
| 82 | + } |
|
| 80 | 83 | |
| 81 | 84 | parent::setImageAlign($value); |
| 82 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 83 | - $this->getPage()->getCallbackClient()->setAttribute($this, 'align', $value); |
|
| 85 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 86 | + $this->getPage()->getCallbackClient()->setAttribute($this, 'align', $value); |
|
| 87 | + } |
|
| 84 | 88 | } |
| 85 | 89 | |
| 86 | 90 | /** |
@@ -88,12 +92,14 @@ discard block |
||
| 88 | 92 | */ |
| 89 | 93 | public function setImageUrl($value) |
| 90 | 94 | { |
| 91 | - if(parent::getImageUrl() === $value) |
|
| 92 | - return; |
|
| 95 | + if(parent::getImageUrl() === $value) { |
|
| 96 | + return; |
|
| 97 | + } |
|
| 93 | 98 | |
| 94 | 99 | parent::setImageUrl($value); |
| 95 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 96 | - $this->getPage()->getCallbackClient()->setAttribute($this, 'src', $value); |
|
| 100 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 101 | + $this->getPage()->getCallbackClient()->setAttribute($this, 'src', $value); |
|
| 102 | + } |
|
| 97 | 103 | } |
| 98 | 104 | |
| 99 | 105 | /** |
@@ -101,12 +107,14 @@ discard block |
||
| 101 | 107 | */ |
| 102 | 108 | public function setDescriptionUrl($value) |
| 103 | 109 | { |
| 104 | - if(parent::getDescriptionUrl() === $value) |
|
| 105 | - return; |
|
| 110 | + if(parent::getDescriptionUrl() === $value) { |
|
| 111 | + return; |
|
| 112 | + } |
|
| 106 | 113 | |
| 107 | 114 | parent::setDescriptionUrl($value); |
| 108 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 109 | - $this->getPage()->getCallbackClient()->setAttribute($this, 'longdesc', $value); |
|
| 115 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 116 | + $this->getPage()->getCallbackClient()->setAttribute($this, 'longdesc', $value); |
|
| 117 | + } |
|
| 110 | 118 | } |
| 111 | 119 | |
| 112 | 120 | /** |
@@ -62,11 +62,11 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function setAlternateText($value) |
| 64 | 64 | { |
| 65 | - if(parent::getAlternateText() === $value) |
|
| 65 | + if (parent::getAlternateText() === $value) |
|
| 66 | 66 | return; |
| 67 | 67 | |
| 68 | 68 | parent::setAlternateText($value); |
| 69 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 69 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 70 | 70 | $this->getPage()->getCallbackClient()->setAttribute($this, 'alt', $value); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -79,11 +79,11 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function setImageAlign($value) |
| 81 | 81 | { |
| 82 | - if(parent::getImageAlign() === $value) |
|
| 82 | + if (parent::getImageAlign() === $value) |
|
| 83 | 83 | return; |
| 84 | 84 | |
| 85 | 85 | parent::setImageAlign($value); |
| 86 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 86 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 87 | 87 | $this->getPage()->getCallbackClient()->setAttribute($this, 'align', $value); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -92,11 +92,11 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function setImageUrl($value) |
| 94 | 94 | { |
| 95 | - if(parent::getImageUrl() === $value) |
|
| 95 | + if (parent::getImageUrl() === $value) |
|
| 96 | 96 | return; |
| 97 | 97 | |
| 98 | 98 | parent::setImageUrl($value); |
| 99 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 99 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 100 | 100 | $this->getPage()->getCallbackClient()->setAttribute($this, 'src', $value); |
| 101 | 101 | } |
| 102 | 102 | |
@@ -105,11 +105,11 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function setDescriptionUrl($value) |
| 107 | 107 | { |
| 108 | - if(parent::getDescriptionUrl() === $value) |
|
| 108 | + if (parent::getDescriptionUrl() === $value) |
|
| 109 | 109 | return; |
| 110 | 110 | |
| 111 | 111 | parent::setDescriptionUrl($value); |
| 112 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 112 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 113 | 113 | $this->getPage()->getCallbackClient()->setAttribute($this, 'longdesc', $value); |
| 114 | 114 | } |
| 115 | 115 | |
@@ -95,12 +95,14 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function setText($value) |
| 97 | 97 | { |
| 98 | - if(parent::getText() === $value) |
|
| 99 | - return; |
|
| 98 | + if(parent::getText() === $value) { |
|
| 99 | + return; |
|
| 100 | + } |
|
| 100 | 101 | |
| 101 | 102 | parent::setText($value); |
| 102 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 103 | - $this->getPage()->getCallbackClient()->update($this, $value); |
|
| 103 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 104 | + $this->getPage()->getCallbackClient()->update($this, $value); |
|
| 105 | + } |
|
| 104 | 106 | } |
| 105 | 107 | |
| 106 | 108 | /** |
@@ -134,8 +136,9 @@ discard block |
||
| 134 | 136 | */ |
| 135 | 137 | public function setEnabled($value) |
| 136 | 138 | { |
| 137 | - if(parent::getEnabled() === $value) |
|
| 138 | - return; |
|
| 139 | + if(parent::getEnabled() === $value) { |
|
| 140 | + return; |
|
| 141 | + } |
|
| 139 | 142 | |
| 140 | 143 | parent::setEnabled($value); |
| 141 | 144 | if($this->getActiveControl()->canUpdateClientSide()) |
@@ -99,11 +99,11 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function setText($value) |
| 101 | 101 | { |
| 102 | - if(parent::getText() === $value) |
|
| 102 | + if (parent::getText() === $value) |
|
| 103 | 103 | return; |
| 104 | 104 | |
| 105 | 105 | parent::setText($value); |
| 106 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 106 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 107 | 107 | $this->getPage()->getCallbackClient()->update($this, $value); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | parent::addAttributesToRender($writer); |
| 125 | 125 | $writer->addAttribute('id', $this->getClientID()); |
| 126 | 126 | |
| 127 | - if($this->getEnabled(true)) |
|
| 127 | + if ($this->getEnabled(true)) |
|
| 128 | 128 | { |
| 129 | 129 | $this->getActiveControl()->registerCallbackClientScript( |
| 130 | 130 | $this->getClientClassName(), $this->getPostBackOptions()); |
@@ -138,15 +138,15 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | public function setEnabled($value) |
| 140 | 140 | { |
| 141 | - if(parent::getEnabled() === $value) |
|
| 141 | + if (parent::getEnabled() === $value) |
|
| 142 | 142 | return; |
| 143 | 143 | |
| 144 | 144 | parent::setEnabled($value); |
| 145 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 145 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 146 | 146 | { |
| 147 | - if($this->getEnabled(true)) |
|
| 147 | + if ($this->getEnabled(true)) |
|
| 148 | 148 | { |
| 149 | - $nop = "javascript:;//" . $this->getClientID(); |
|
| 149 | + $nop = "javascript:;//".$this->getClientID(); |
|
| 150 | 150 | $this->getPage()->getCallbackClient()->setAttribute($this, 'href', $nop); |
| 151 | 151 | |
| 152 | 152 | $this->getActiveControl()->registerCallbackClientScript( |
@@ -94,12 +94,14 @@ |
||
| 94 | 94 | */ |
| 95 | 95 | public function setText($value) |
| 96 | 96 | { |
| 97 | - if(parent::getText() === $value) |
|
| 98 | - return; |
|
| 97 | + if(parent::getText() === $value) { |
|
| 98 | + return; |
|
| 99 | + } |
|
| 99 | 100 | |
| 100 | 101 | parent::setText($value); |
| 101 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 102 | - $this->getPage()->getCallbackClient()->setAttribute($this, 'value', $value); |
|
| 102 | + if($this->getActiveControl()->canUpdateClientSide()) { |
|
| 103 | + $this->getPage()->getCallbackClient()->setAttribute($this, 'value', $value); |
|
| 104 | + } |
|
| 103 | 105 | } |
| 104 | 106 | |
| 105 | 107 | /** |
@@ -98,11 +98,11 @@ |
||
| 98 | 98 | */ |
| 99 | 99 | public function setText($value) |
| 100 | 100 | { |
| 101 | - if(parent::getText() === $value) |
|
| 101 | + if (parent::getText() === $value) |
|
| 102 | 102 | return; |
| 103 | 103 | |
| 104 | 104 | parent::setText($value); |
| 105 | - if($this->getActiveControl()->canUpdateClientSide()) |
|
| 105 | + if ($this->getActiveControl()->canUpdateClientSide()) |
|
| 106 | 106 | $this->getPage()->getCallbackClient()->setAttribute($this, 'value', $value); |
| 107 | 107 | } |
| 108 | 108 | |