From 3bf0c54d5f4079ce5b715d7a4f1bc91bc59e7335 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 17 Jun 2006 10:32:06 +0000 Subject: remove TCallbackResponse in favour of TCallbackResponseAdapter --- .gitattributes | 1 - .../Web/UI/ActiveControls/TCallbackResponse.php | 62 ---------------------- 2 files changed, 63 deletions(-) delete mode 100644 framework/Web/UI/ActiveControls/TCallbackResponse.php diff --git a/.gitattributes b/.gitattributes index e183b3dd..485622ef 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1026,7 +1026,6 @@ framework/Web/UI/ActiveControls/TCallback.php -text framework/Web/UI/ActiveControls/TCallbackClientScript.php -text framework/Web/UI/ActiveControls/TCallbackClientSideOptions.php -text framework/Web/UI/ActiveControls/TCallbackOptions.php -text -framework/Web/UI/ActiveControls/TCallbackResponse.php -text framework/Web/UI/TClientScriptManager.php -text framework/Web/UI/TCompositeControl.php -text framework/Web/UI/TControl.php -text diff --git a/framework/Web/UI/ActiveControls/TCallbackResponse.php b/framework/Web/UI/ActiveControls/TCallbackResponse.php deleted file mode 100644 index b28d817b..00000000 --- a/framework/Web/UI/ActiveControls/TCallbackResponse.php +++ /dev/null @@ -1,62 +0,0 @@ -_writers[] = $writer; - if($type===null) - $type=$this->getHtmlWriterType(); - return Prado::createComponent($type,$writer); - } - - public function flush() - { - foreach($this->_writers as $writer) - echo $writer->flush(); - parent::flush(); - } -} - -class TCallbackResponseWriter extends TTextWriter -{ - private $_boundary; - private $_response; - - public function __construct($response) - { - $this->_response = $response; - $this->_boundary = sprintf('%x',crc32((string)$this)); - } - - public function getResponse() - { - return $this->_response; - } - - public function getBoundary() - { - return $this->_boundary; - } - - public function setBoundary($value) - { - $this->_boundary = $value; - } - - public function flush() - { - $content = ''; - $content .= parent::flush(); - $content .= ''; - return $content; - } -} - -?> \ No newline at end of file -- cgit v1.2.3