From fb16cd829679f1459d3a6541d1bd4997c0c96d29 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 19 Jun 2007 19:07:57 +0000 Subject: Fixed the bug that causes TOutputCache to crash when a default button is set --- framework/Web/UI/TControl.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'framework/Web/UI/TControl.php') 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 @@ -414,6 +414,16 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable return strtr($this->getUniqueID(),self::ID_SEPARATOR,self::CLIENT_ID_SEPARATOR); } + /** + * 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 */ -- cgit v1.2.3