From a54dcaa9d7fbdc7a3f14d33ef3cf36feb29f9f39 Mon Sep 17 00:00:00 2001 From: mikl <> Date: Fri, 18 Apr 2008 09:47:05 +0000 Subject: Renamed IControlContainer to ISurroundable --- framework/Web/UI/WebControls/TCheckBox.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/WebControls/TCheckBox.php') diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php index 4061f217..b722ec3e 100644 --- a/framework/Web/UI/WebControls/TCheckBox.php +++ b/framework/Web/UI/WebControls/TCheckBox.php @@ -40,7 +40,7 @@ * @package System.Web.UI.WebControls * @since 3.0 */ -class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatable, IDataRenderer, IControlContainer +class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatable, IDataRenderer, ISurroundable { private $_dataChanged=false; @@ -268,9 +268,9 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl } /** - * @return string the id of the surrounding tag or this clientID if no such tag present + * @return string the id of the surrounding tag or this clientID if no such tag needed */ - public function getContainerClientID() + public function getSurroundingTagID() { return $this->getSpanNeeded() ? $this->getClientID().'_parent' : $this->getClientID(); } @@ -304,7 +304,7 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl $onclick=''; if($needspan=$this->getSpanNeeded()) { - $writer->addAttribute('id',$this->getContainerClientID()); + $writer->addAttribute('id',$this->getSurroundingTagID()); $writer->renderBeginTag('span'); } $clientID=$this->getClientID(); -- cgit v1.2.3