@@ -117,14 +117,14 @@ |
||
| 117 | 117 | */ |
| 118 | 118 | public function getIsValid() |
| 119 | 119 | { |
| 120 | - return $this->_isValid; |
|
| 120 | + return $this->_isValid; |
|
| 121 | 121 | } |
| 122 | 122 | /** |
| 123 | 123 | * @param bool wether this control is valid. |
| 124 | 124 | */ |
| 125 | 125 | public function setIsValid($value) |
| 126 | 126 | { |
| 127 | - $this->_isValid=TPropertyValue::ensureBoolean($value); |
|
| 127 | + $this->_isValid=TPropertyValue::ensureBoolean($value); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
@@ -251,14 +251,14 @@ discard block |
||
| 251 | 251 | */ |
| 252 | 252 | public function getIsValid() |
| 253 | 253 | { |
| 254 | - return $this->_isValid; |
|
| 254 | + return $this->_isValid; |
|
| 255 | 255 | } |
| 256 | 256 | /** |
| 257 | 257 | * @param bool wether this control is valid. |
| 258 | 258 | */ |
| 259 | 259 | public function setIsValid($value) |
| 260 | 260 | { |
| 261 | - $this->_isValid=TPropertyValue::ensureBoolean($value); |
|
| 261 | + $this->_isValid=TPropertyValue::ensureBoolean($value); |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | /** |
@@ -329,8 +329,8 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | /** |
| 331 | 331 | * @return boolean a value indicating whether an automatic postback to the server |
| 332 | - * will occur whenever the user modifies the text in the TTextBox control and |
|
| 333 | - * then tabs out of the component. Defaults to false. |
|
| 332 | + * will occur whenever the user modifies the text in the TTextBox control and |
|
| 333 | + * then tabs out of the component. Defaults to false. |
|
| 334 | 334 | */ |
| 335 | 335 | public function getAutoPostBack() |
| 336 | 336 | { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | - * @return string rating style css class name. |
|
| 218 | + * @return string rating style css class name. |
|
| 219 | 219 | */ |
| 220 | 220 | protected function getRatingStyleCssClass() |
| 221 | 221 | { |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | } |
| 259 | 259 | |
| 260 | 260 | /** |
| 261 | - * @return string find the client ID of the caption control. |
|
| 261 | + * @return string find the client ID of the caption control. |
|
| 262 | 262 | */ |
| 263 | 263 | protected function getCaptionControlID() |
| 264 | 264 | { |
@@ -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 | /** |