diff options
author | xue <> | 2005-12-13 18:57:22 +0000 |
---|---|---|
committer | xue <> | 2005-12-13 18:57:22 +0000 |
commit | 3071d459eee19f9b01ec0a6241615562548d5fef (patch) | |
tree | 4764fcb1ba38df7c4ba34330161c7d65868d14bf /framework/Web/UI/TControl.php | |
parent | 1ed5d8c3f241116df31b92031ae18a2e6b5b3d4c (diff) |
Added clearViewState and clearControlState.
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r-- | framework/Web/UI/TControl.php | 18 |
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
|