From b4e9f6795206fab6b952f814ccf812677a34c635 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 7 Dec 2005 00:32:29 +0000 Subject: --- framework/Web/THttpResponse.php | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'framework/Web/THttpResponse.php') diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php index dfa2d023..ad290fb0 100644 --- a/framework/Web/THttpResponse.php +++ b/framework/Web/THttpResponse.php @@ -37,12 +37,8 @@ * @package System.Web * @since 3.0 */ -class THttpResponse extends TComponent implements IModule, ITextWriter +class THttpResponse extends TModule implements ITextWriter { - /** - * @var string id of this module (response) - */ - private $_id; /** * @var boolean whether to buffer output */ @@ -84,29 +80,14 @@ class THttpResponse extends TComponent implements IModule, ITextWriter */ public function init($application,$config) { + parent::init($application,$config); + if($this->_bufferOutput) ob_start(); $this->_initialized=true; $application->setResponse($this); } - /** - * @return string id of this module - */ - public function getID() - { - return $this->_id; - } - - /** - * @param string id of this module - */ - public function setID($value) - { - $this->_id=$value; - } - - /** * @return integer time-to-live for cached session pages in minutes, this has no effect for nocache limiter. Defaults to 180. */ -- cgit v1.2.3