/**
  * @brief xe 게시판 템플릿(입력,수정폼,보기)에 주변지도모듈을 삽입한다.
  * @param $content 삽입할 게시판의 컨텐츠
  * @return 
  */
 function triggerAroundmapInsert(&$content)
 {
     // 현재의 액션/모듈번호 값 가져오기
     $act = Context::get('act');
     $module_info = Context::get("module_info");
     $module_srl = $module_info->module_srl;
     $oModuleModel =& getModel('module');
     $this->module_config = $oModuleModel->getModuleConfig('aroundmap');
     // aroundmap모듈이 사용가능한 상태 인지 확인
     if (!$this->isAroundmapEnable($act, $module_srl)) {
         return new Object();
     }
     // aroundmap모듈에 필요한 값 저장
     $document_srl = Context::get('document_srl');
     $output = $this->setAroundmapValues($document_srl);
     // 템플릿 파일에 aroundmap 모듈 삽입
     if ($act == 'dispBoardWrite') {
         // 쓰기/수정 페이지
         $content = preg_replace_callback('(<!-- 파일 업로드 영역 -->)', 'aroundmapController::insertWriteMap', $content);
     } else {
         // 보기 페이지
         // Use Sphinx if useSphinx is checked, or use mysql.
         if (strcmp($this->module_config->useSphinx, 'true') == 0) {
             $aroundmapList = $this->getAroundmapListSphinx($document_srl, $output->data->lat, $output->data->lon);
         } else {
             $aroundmapList = $this->getAroundmapListMysql($document_srl, $output->data->lat, $output->data->lon);
         }
         Context::set('aroundmapList', $aroundmapList);
         Context::Set('full_url', getFullUrl(''));
         $content = preg_replace_callback('/<\\!--AfterDocument\\(([0-9]*),([0-9\\-]*)\\)-->/i', 'aroundmapController::insertViewMap', $content);
     }
     return new Object();
 }