git-svn-id: http://xe-core.googlecode.com/svn/trunk@1002 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-06 05:37:22 +00:00
parent 8a489f6f16
commit 7bd24d6934
2 changed files with 23 additions and 0 deletions

View file

@ -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);
}
}
?>

View file

@ -13,5 +13,15 @@
function init() {
}
/**
* @brief 설문조사의 html데이터를 return
* 설문조사에 응하였는지에 대한 체크를 결과를 return
**/
function getPollHtml($poll_srl) {
return "SAdf";
}
}
?>