From 7bd24d6934c4ef178a41b0b13472528d05307574 Mon Sep 17 00:00:00 2001 From: zero Date: Fri, 6 Apr 2007 05:37:22 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@1002 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/components/poll/poll.class.php | 13 +++++++++++++ modules/poll/poll.model.php | 10 ++++++++++ 2 files changed, 23 insertions(+) diff --git a/modules/editor/components/poll/poll.class.php b/modules/editor/components/poll/poll.class.php index e8ed772c4..432b7d302 100644 --- a/modules/editor/components/poll/poll.class.php +++ b/modules/editor/components/poll/poll.class.php @@ -32,5 +32,18 @@ return $oTemplate->compile($tpl_path, $tpl_file); } + /** + * @brief 에디터 컴포넌트가 별도의 고유 코드를 이용한다면 그 코드를 html로 변경하여 주는 method + * + * 이미지나 멀티미디어, 설문등 고유 코드가 필요한 에디터 컴포넌트는 고유코드를 내용에 추가하고 나서 + * DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경 + **/ + function transHTML($xml_obj) { + $poll_srl = $xml_obj->attrs->poll_srl; + + // poll model 객체 생성해서 html 얻어와서 return + $oPollModel = &getModel('poll'); + return $oPollModel->getPollHtml($poll_srl); + } } ?> diff --git a/modules/poll/poll.model.php b/modules/poll/poll.model.php index 1c6557111..17126135e 100644 --- a/modules/poll/poll.model.php +++ b/modules/poll/poll.model.php @@ -13,5 +13,15 @@ function init() { } + /** + * @brief 설문조사의 html데이터를 return + * 설문조사에 응하였는지에 대한 체크를 한 후 결과를 return + **/ + function getPollHtml($poll_srl) { + + return "SAdf"; + } + + } ?>