diff options
author | xue <> | 2007-06-19 19:07:57 +0000 |
---|---|---|
committer | xue <> | 2007-06-19 19:07:57 +0000 |
commit | fb16cd829679f1459d3a6541d1bd4997c0c96d29 (patch) | |
tree | de67c333e061494409415fc2930bcdb00a6320bd /framework/Web/UI/TControl.php | |
parent | 1b329991e6893a3d1f44c0fe5ea979dca67bc21f (diff) |
Fixed the bug that causes TOutputCache to crash when a default button is set
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r-- | framework/Web/UI/TControl.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index dcfcec65..bb4874ab 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -415,6 +415,16 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable }
/**
+ * Converts a unique ID to a client ID.
+ * @param string the unique ID of a control
+ * @return string the client ID of the control
+ */
+ public static function convertUniqueIdToClientId($uniqueID)
+ {
+ return strtr($uniqueID,self::ID_SEPARATOR,self::CLIENT_ID_SEPARATOR);
+ }
+
+ /**
* @return string the skin ID of this control, '' if not set
*/
public function getSkinID()
|