From 3a6cb4f7f27655ccbf8e13995a4c05b2e90bea47 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 15 Jan 2008 08:33:37 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9D=98=EB=AF=B8=EC=97=86=EB=8A=94=20method?= =?UTF-8?q?=20=EB=82=98=EB=88=94=EC=9D=B8=20getContent,=20=5FtoDoc?= =?UTF-8?q?=EB=A5=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3527 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/display/DisplayHandler.class.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/classes/display/DisplayHandler.class.php b/classes/display/DisplayHandler.class.php index dd6ddfbc6..1cba78241 100644 --- a/classes/display/DisplayHandler.class.php +++ b/classes/display/DisplayHandler.class.php @@ -28,7 +28,8 @@ $this->_printHeader(); // request method에 따른 처리 - $content = $this->getContent($oModule); + if(Context::getRequestMethod() == 'XMLRPC') $content = $this->_toXmlDoc($oModule); + else $content = $this->_toHTMLDoc($oModule); // 요청방식에 따라 출력을 별도로 if(Context::getResponseMethod()!="XMLRPC") { @@ -100,22 +101,6 @@ else print $content; } - /** - * @brief 모듈 객체의 content return - **/ - function getContent(&$oModule) { - return $this->_toDoc($oModule); - } - - /** - * @brief 모듈 객체의 content return - **/ - function _toDoc(&$oModule) { - if(Context::getRequestMethod() == 'XMLRPC') $content = $this->_toXmlDoc($oModule); - else $content = $this->_toHTMLDoc($oModule); - return $content; - } - /** * @brief RequestMethod가 XML이면 XML 데이터로 컨텐츠 생성 **/