@@ -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 | { |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * The following property is provided by TDataRenderer: |
| 21 | 21 | * - {@link getData Data}: data associated with this renderer. |
| 22 | - |
|
| 23 | 22 | * @author Qiang Xue <[email protected]> |
| 24 | 23 | * @package System.Web.UI.WebControls |
| 25 | 24 | * @since 3.1.2 |
@@ -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 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * Sets the horizontal alignment of the contents within the table item. |
| 92 | - * Valid values include 'NotSet', 'Justify', 'Left', 'Right', 'Center' |
|
| 92 | + * Valid values include 'NotSet', 'Justify', 'Left', 'Right', 'Center' |
|
| 93 | 93 | * @param string the horizontal alignment |
| 94 | 94 | */ |
| 95 | 95 | public function setHorizontalAlign($value) |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * Sets the vertical alignment of the contents within the table item. |
| 113 | - * Valid values include 'NotSet','Top','Bottom','Middle' |
|
| 113 | + * Valid values include 'NotSet','Top','Bottom','Middle' |
|
| 114 | 114 | * @param string the horizontal alignment |
| 115 | 115 | */ |
| 116 | 116 | public function setVerticalAlign($value) |
@@ -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 |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * TJuiResizable class file. |
|
| 4 | - * |
|
| 5 | - * @author Fabio Bas <ctrlaltca[at]gmail[dot]com> |
|
| 6 | - * @link https://github.com/pradosoft/prado |
|
| 7 | - * @copyright Copyright © 2013-2015 PradoSoft |
|
| 8 | - * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT |
|
| 9 | - * @package System.Web.UI.JuiControls |
|
| 10 | - */ |
|
| 3 | + * TJuiResizable class file. |
|
| 4 | + * |
|
| 5 | + * @author Fabio Bas <ctrlaltca[at]gmail[dot]com> |
|
| 6 | + * @link https://github.com/pradosoft/prado |
|
| 7 | + * @copyright Copyright © 2013-2015 PradoSoft |
|
| 8 | + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT |
|
| 9 | + * @package System.Web.UI.JuiControls |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | Prado::using('System.Web.UI.JuiControls.TJuiControlAdapter'); |
| 13 | 13 | Prado::using('System.Web.UI.ActiveControls.TActivePanel'); |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * TJuiControlAdapter class file. |
|
| 4 | - * |
|
| 5 | - * @author Fabio Bas <[email protected]> |
|
| 6 | - * @link https://github.com/pradosoft/prado |
|
| 7 | - * @copyright Copyright © 2013-2015 PradoSoft |
|
| 8 | - * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT |
|
| 9 | - * @package System.Web.UI.JuiControls |
|
| 10 | - */ |
|
| 3 | + * TJuiControlAdapter class file. |
|
| 4 | + * |
|
| 5 | + * @author Fabio Bas <[email protected]> |
|
| 6 | + * @link https://github.com/pradosoft/prado |
|
| 7 | + * @copyright Copyright © 2013-2015 PradoSoft |
|
| 8 | + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT |
|
| 9 | + * @package System.Web.UI.JuiControls |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | Prado::using('System.Web.UI.ActiveControls.TActiveControlAdapter'); |
| 13 | 13 | Prado::using('System.Web.UI.JuiControls.TJuiControlOptions'); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function loadState() { |
| 98 | 98 | parent::loadState(); |
| 99 | - $this->getControl()->getOptions()->setControl($this->getControl()); |
|
| 99 | + $this->getControl()->getOptions()->setControl($this->getControl()); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | } |
@@ -130,10 +130,10 @@ discard block |
||
| 130 | 130 | class TJuiEventParameter extends TCallbackEventParameter |
| 131 | 131 | { |
| 132 | 132 | /** |
| 133 | - * getControl |
|
| 134 | - * |
|
| 135 | - * Compatibility method to get a control from its clientside id |
|
| 136 | - * @return TControl control, or null if not found |
|
| 133 | + * getControl |
|
| 134 | + * |
|
| 135 | + * Compatibility method to get a control from its clientside id |
|
| 136 | + * @return TControl control, or null if not found |
|
| 137 | 137 | */ |
| 138 | 138 | public function getControl($id) |
| 139 | 139 | { |
@@ -184,9 +184,9 @@ discard block |
||
| 184 | 184 | */ |
| 185 | 185 | protected function addStatesToTrack() |
| 186 | 186 | { |
| 187 | - parent::addStatesToTrack(); |
|
| 188 | - $states = $this->getStatesToTrack(); |
|
| 189 | - $states['JuiOptions'] = array('TMapCollectionDiff', array($this, 'updateJuiOptions')); |
|
| 187 | + parent::addStatesToTrack(); |
|
| 188 | + $states = $this->getStatesToTrack(); |
|
| 189 | + $states['JuiOptions'] = array('TMapCollectionDiff', array($this, 'updateJuiOptions')); |
|
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | /** |
@@ -195,9 +195,9 @@ discard block |
||
| 195 | 195 | */ |
| 196 | 196 | protected function updateJuiOptions($options) |
| 197 | 197 | { |
| 198 | - foreach ($options as $key => $value) $options[$key] = $key . ': ' . (is_string($value) ? "'{$value}'" : TPropertyValue::ensureString($value)); |
|
| 199 | - $code = "jQuery('#{$this->_control->getWidgetID()}').{$this->_control->getWidget()}('option', { " . implode(', ', $options) . " });"; |
|
| 200 | - $this->_control->getPage()->getClientScript()->registerEndScript(sprintf('%08X', crc32($code)), $code); |
|
| 198 | + foreach ($options as $key => $value) $options[$key] = $key . ': ' . (is_string($value) ? "'{$value}'" : TPropertyValue::ensureString($value)); |
|
| 199 | + $code = "jQuery('#{$this->_control->getWidgetID()}').{$this->_control->getWidget()}('option', { " . implode(', ', $options) . " });"; |
|
| 200 | + $this->_control->getPage()->getClientScript()->registerEndScript(sprintf('%08X', crc32($code)), $code); |
|
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | } |
| 204 | 204 | \ No newline at end of file |