summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/TControl.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index 6e36c123..b50caeca 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -657,6 +657,15 @@ class TControl extends TComponent
}
/**
+ * Clears a controlstate value.
+ * @param string the name of the controlstate value to be cleared
+ */
+ protected function clearControlState($key)
+ {
+ unset($this->_rf[self::RF_CONTROLSTATE][$key]);
+ }
+
+ /**
* Returns a viewstate value.
*
* This function is very useful in defining getter functions for component properties
@@ -689,6 +698,15 @@ class TControl extends TComponent
}
/**
+ * Clears a viewstate value.
+ * @param string the name of the viewstate value to be cleared
+ */
+ protected function clearViewState($key)
+ {
+ unset($this->_viewState[$key]);
+ }
+
+ /**
* Sets up the binding between a property (or property path) and an expression.
* The context of the expression is the control itself.
* @param string the property name, or property path