4 require_once(
_XE_PATH_.
'modules/board/board.view.php');
11 $oSecurity->encodeHTML(
'document_srl',
'comment_srl',
'vid',
'mid',
'page',
'category',
'search_target',
'search_keyword',
'sort_index',
'order_type',
'trackback_srl');
13 if($this->module_info->list_count) $this->list_count = $this->module_info->list_count;
14 if($this->module_info->mobile_list_count) $this->list_count = $this->module_info->mobile_list_count;
15 if($this->module_info->search_list_count) $this->search_list_count = $this->module_info->search_list_count;
16 if($this->module_info->mobile_search_list_count) $this->search_list_count = $this->module_info->mobile_search_list_count;
17 if($this->module_info->page_count) $this->page_count = $this->module_info->page_count;
18 if($this->module_info->mobile_page_count) $this->page_count = $this->module_info->mobile_page_count;
19 $this->except_notice = $this->module_info->except_notice ==
'N' ?
false :
true;
25 if(isset($statusList[
'SECRET']))
27 $this->module_info->secret =
'Y';
31 $count_category = count(
$oDocumentModel->getCategoryList($this->module_info->module_srl));
34 if($this->module_info->hide_category)
36 $this->module_info->use_category = ($this->module_info->hide_category ==
'Y') ?
'N' :
'Y';
38 else if($this->module_info->use_category)
40 $this->module_info->hide_category = ($this->module_info->use_category ==
'Y') ?
'N' :
'Y';
44 $this->module_info->hide_category =
'N';
45 $this->module_info->use_category =
'Y';
50 $this->module_info->hide_category =
'Y';
51 $this->module_info->use_category =
'N';
58 if($this->module_info->consultation ==
'Y' && !$this->grant->manager && !$this->grant->consultation_read)
60 $this->consultation =
true;
61 if(!
Context::get(
'is_logged')) $this->grant->list = $this->grant->write_document = $this->grant->write_comment = $this->grant->view =
false;
63 $this->consultation =
false;
67 $extra_keys =
$oDocumentModel->getExtraKeys($this->module_info->module_srl);
70 $template_path = sprintf(
"%sm.skins/%s/",$this->module_path, $this->module_info->mskin);
73 $this->module_info->mskin =
'default';
74 $template_path = sprintf(
"%sm.skins/%s/",$this->module_path, $this->module_info->mskin);
93 return new BaseObject(-1,
"msg_invalid_request");
96 if($this->grant->view ==
false || ($this->module_info->consultation ==
'Y' && !$this->grant->manager && !$this->grant->consultation_read))
98 return new BaseObject(-1,
"msg_not_permitted");
102 if(!$oDocument->isExists())
104 return new BaseObject(-1,
"msg_invalid_request");
109 $this->
add(
"html", $html);
116 $oMessageObject->setError(-1);
117 $oMessageObject->setMessage($msg);
118 $oMessageObject->dispMessage();
setTemplateFile($filename)
& getModuleInstance($module, $type= 'view', $kind= '')
$template_path
a path of directory where template files reside
_getStatusNameList(&$oDocumentModel)
$category_list
category list
set($key, $val, $set_to_get_vars=0)
dispBoardCategoryList()
display the category list
addJsFilter($path, $filename)
dispBoardMessage($msg_code)