@@ -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 |
@@ -303,15 +303,15 @@ |
||
| 303 | 303 | |
| 304 | 304 | $this->setAdapter(new TActivePageAdapter($this)); |
| 305 | 305 | |
| 306 | - $callbackEventParameter = $this->getRequest()->itemAt(TPage::FIELD_CALLBACK_PARAMETER); |
|
| 307 | - if(strlen($callbackEventParameter) > 0) |
|
| 308 | - $this->_postData[TPage::FIELD_CALLBACK_PARAMETER]=TJavaScript::jsonDecode((string)$callbackEventParameter); |
|
| 309 | - |
|
| 310 | - // Decode Callback postData from UTF-8 to current Charset |
|
| 311 | - if (($g=$this->getApplication()->getGlobalization(false))!==null && |
|
| 312 | - strtoupper($enc=$g->getCharset())!='UTF-8') |
|
| 313 | - foreach ($this->_postData as $k=>$v) |
|
| 314 | - $this->_postData[$k]=self::decodeUTF8($v, $enc); |
|
| 306 | + $callbackEventParameter = $this->getRequest()->itemAt(TPage::FIELD_CALLBACK_PARAMETER); |
|
| 307 | + if(strlen($callbackEventParameter) > 0) |
|
| 308 | + $this->_postData[TPage::FIELD_CALLBACK_PARAMETER]=TJavaScript::jsonDecode((string)$callbackEventParameter); |
|
| 309 | + |
|
| 310 | + // Decode Callback postData from UTF-8 to current Charset |
|
| 311 | + if (($g=$this->getApplication()->getGlobalization(false))!==null && |
|
| 312 | + strtoupper($enc=$g->getCharset())!='UTF-8') |
|
| 313 | + foreach ($this->_postData as $k=>$v) |
|
| 314 | + $this->_postData[$k]=self::decodeUTF8($v, $enc); |
|
| 315 | 315 | |
| 316 | 316 | Prado::trace("Page onPreInit()",'System.Web.UI.TPage'); |
| 317 | 317 | $this->onPreInit(null); |
@@ -90,10 +90,10 @@ |
||
| 90 | 90 | { |
| 91 | 91 | return array('altField', 'altFormat', 'appendText', 'autoSize', 'buttonImage', 'buttonImageOnly', 'buttonText', 'calculateWeek', |
| 92 | 92 | 'changeMonth', 'changeYear', 'closeText', 'constrainInput', 'currentText', 'dateFormat', 'dayNames', 'dayNamesMin', |
| 93 | - 'dayNamesShort', 'defaultDate', 'duration', 'firstDay', 'gotoCurrent', 'hideIfNoPrevNext', 'isRTL', 'maxDate', |
|
| 93 | + 'dayNamesShort', 'defaultDate', 'duration', 'firstDay', 'gotoCurrent', 'hideIfNoPrevNext', 'isRTL', 'maxDate', |
|
| 94 | 94 | 'minDate', 'monthNames', 'monthNamesShort', 'navigationAsDateFormat', 'nextText', 'numberOfMonths', 'prevText', |
| 95 | 95 | 'selectOtherMonths', 'shortYearCutoff', 'showAnim', 'showButtonPanel', 'showCurrentAtPos', 'showMonthAfterYear', |
| 96 | - 'showOn', 'showOptions', 'showOtherMonths', 'showWeek', 'stepMonths', 'weekHeader', 'yearRange', 'yearSuffix', |
|
| 96 | + 'showOn', 'showOptions', 'showOtherMonths', 'showWeek', 'stepMonths', 'weekHeader', 'yearRange', 'yearSuffix', |
|
| 97 | 97 | 'beforeShow', 'beforeShowDay', 'onChangeMonthYear', 'onClose', 'onSelect'); |
| 98 | 98 | } |
| 99 | 99 | |
@@ -30,9 +30,9 @@ discard block |
||
| 30 | 30 | class TActiveMultiView extends TMultiView implements IActiveControl |
| 31 | 31 | { |
| 32 | 32 | /** |
| 33 | - * Creates a new callback control, sets the adapter to |
|
| 34 | - * TActiveControlAdapter. |
|
| 35 | - */ |
|
| 33 | + * Creates a new callback control, sets the adapter to |
|
| 34 | + * TActiveControlAdapter. |
|
| 35 | + */ |
|
| 36 | 36 | public function __construct() |
| 37 | 37 | { |
| 38 | 38 | parent::__construct(); |
@@ -40,28 +40,28 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @return TBaseActiveControl standard active control options. |
|
| 44 | - */ |
|
| 43 | + * @return TBaseActiveControl standard active control options. |
|
| 44 | + */ |
|
| 45 | 45 | public function getActiveControl() |
| 46 | 46 | { |
| 47 | 47 | return $this->getAdapter()->getBaseActiveControl(); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * Returns the id of the surrounding container (span). |
|
| 52 | - * @return string container id |
|
| 53 | - */ |
|
| 51 | + * Returns the id of the surrounding container (span). |
|
| 52 | + * @return string container id |
|
| 53 | + */ |
|
| 54 | 54 | protected function getContainerID() |
| 55 | 55 | { |
| 56 | 56 | return $this->ClientID.'_Container'; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * Renders the TActiveMultiView. |
|
| 61 | - * If the MutliView did not pass the prerender phase yet, it will register itself for rendering later. |
|
| 62 | - * Else it will call the {@link renderMultiView()} method which will do the rendering of the MultiView. |
|
| 63 | - * @param THtmlWriter writer for the rendering purpose |
|
| 64 | - */ |
|
| 60 | + * Renders the TActiveMultiView. |
|
| 61 | + * If the MutliView did not pass the prerender phase yet, it will register itself for rendering later. |
|
| 62 | + * Else it will call the {@link renderMultiView()} method which will do the rendering of the MultiView. |
|
| 63 | + * @param THtmlWriter writer for the rendering purpose |
|
| 64 | + */ |
|
| 65 | 65 | public function render($writer) |
| 66 | 66 | { |
| 67 | 67 | if($this->getHasPreRendered()) { |
@@ -74,10 +74,10 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * Renders the TActiveMultiView by writing a span tag with the container id obtained from {@link getContainerID()} |
|
| 78 | - * which will be called by the replacement method of the client script to update it's content. |
|
| 79 | - * @param $writer THtmlWriter writer for the rendering purpose |
|
| 80 | - */ |
|
| 77 | + * Renders the TActiveMultiView by writing a span tag with the container id obtained from {@link getContainerID()} |
|
| 78 | + * which will be called by the replacement method of the client script to update it's content. |
|
| 79 | + * @param $writer THtmlWriter writer for the rendering purpose |
|
| 80 | + */ |
|
| 81 | 81 | protected function renderMultiView($writer) |
| 82 | 82 | { |
| 83 | 83 | $writer->addAttribute('id', $this->getContainerID()); |
@@ -87,9 +87,9 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param integer the zero-based index of the current view in the view collection. -1 if no active view. |
|
| 91 | - * @throws TInvalidDataValueException if the view index is invalid |
|
| 92 | - */ |
|
| 90 | + * @param integer the zero-based index of the current view in the view collection. -1 if no active view. |
|
| 91 | + * @throws TInvalidDataValueException if the view index is invalid |
|
| 92 | + */ |
|
| 93 | 93 | public function setActiveViewIndex($value) |
| 94 | 94 | { |
| 95 | 95 | $old=parent::getActiveViewIndex(); |
@@ -99,9 +99,9 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * @param TView the view to be activated |
|
| 103 | - * @throws TInvalidOperationException if the view is not in the view collection |
|
| 104 | - */ |
|
| 102 | + * @param TView the view to be activated |
|
| 103 | + * @throws TInvalidOperationException if the view is not in the view collection |
|
| 104 | + */ |
|
| 105 | 105 | public function setActiveView($value) |
| 106 | 106 | { |
| 107 | 107 | $old=parent::getActiveView(); |
@@ -53,8 +53,8 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @var TTable parent row control containing the cell |
|
| 57 | - */ |
|
| 56 | + * @var TTable parent row control containing the cell |
|
| 57 | + */ |
|
| 58 | 58 | private $_row; |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -226,8 +226,8 @@ discard block |
||
| 226 | 226 | { |
| 227 | 227 | |
| 228 | 228 | /** |
| 229 | - * @var integer the zero-based index of the cell. |
|
| 230 | - */ |
|
| 229 | + * @var integer the zero-based index of the cell. |
|
| 230 | + */ |
|
| 231 | 231 | private $_selectedCellIndex = -1; |
| 232 | 232 | |
| 233 | 233 | /** |
@@ -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 | { |
@@ -244,8 +244,8 @@ |
||
| 244 | 244 | class TActiveTableRowEventParameter extends TCallbackEventParameter |
| 245 | 245 | { |
| 246 | 246 | /** |
| 247 | - * @var integer the zero-based index of the row. |
|
| 248 | - */ |
|
| 247 | + * @var integer the zero-based index of the row. |
|
| 248 | + */ |
|
| 249 | 249 | private $_selectedRowIndex = -1; |
| 250 | 250 | |
| 251 | 251 | /** |
@@ -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 | /** |