@@ -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()) |
@@ -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 | /** |
@@ -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 | /** |
@@ -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()){ |
@@ -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 | /** |
@@ -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()) |
@@ -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 | /** |
@@ -80,8 +80,9 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function setReadOnly($value) |
| 82 | 82 | { |
| 83 | - if(parent::getReadOnly() === $value) |
|
| 84 | - return; |
|
| 83 | + if(parent::getReadOnly() === $value) { |
|
| 84 | + return; |
|
| 85 | + } |
|
| 85 | 86 | |
| 86 | 87 | parent::setReadOnly($value); |
| 87 | 88 | $value = $this->getReadOnly(); |
@@ -93,8 +94,9 @@ discard block |
||
| 93 | 94 | */ |
| 94 | 95 | public function setRating($value) |
| 95 | 96 | { |
| 96 | - if(parent::getRating() === $value) |
|
| 97 | - return; |
|
| 97 | + if(parent::getRating() === $value) { |
|
| 98 | + return; |
|
| 99 | + } |
|
| 98 | 100 | |
| 99 | 101 | parent::setRating($value); |
| 100 | 102 | $value = $this->getRating(); |
@@ -121,8 +123,9 @@ discard block |
||
| 121 | 123 | */ |
| 122 | 124 | public function setCaption($value) |
| 123 | 125 | { |
| 124 | - if(parent::getCaption() === $value) |
|
| 125 | - return; |
|
| 126 | + if(parent::getCaption() === $value) { |
|
| 127 | + return; |
|
| 128 | + } |
|
| 126 | 129 | |
| 127 | 130 | parent::setCaption($value); |
| 128 | 131 | // if it's an active control, this should not be needed. |