diff options
author | wei <> | 2006-06-17 10:32:06 +0000 |
---|---|---|
committer | wei <> | 2006-06-17 10:32:06 +0000 |
commit | 3bf0c54d5f4079ce5b715d7a4f1bc91bc59e7335 (patch) | |
tree | b4b0ee02215d58f37411a589876b08e592663897 /framework/Web/UI/ActiveControls | |
parent | 3a30ede1c03fdd097398b14734822f7ce8e46b6b (diff) |
remove TCallbackResponse in favour of TCallbackResponseAdapter
Diffstat (limited to 'framework/Web/UI/ActiveControls')
-rw-r--r-- | framework/Web/UI/ActiveControls/TCallbackResponse.php | 62 |
1 files changed, 0 insertions, 62 deletions
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 @@ -<?php
-
-/**
- *
- */
-class TCallbackResponse extends THttpResponse
-{
- private $_writers=array();
-
- public function createHtmlWriter($type=null,$parameter=null)
- {
- $writer = new TCallbackResponseWriter($parameter);
- $this->_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 = '<!--'.$this->getBoundary().'-->';
- $content .= parent::flush();
- $content .= '<!--//'.$this->getBoundary().'-->';
- return $content;
- }
-}
-
-?>
\ No newline at end of file |