4 require_once(
_XE_PATH_ .
'modules/communication/communication.view.php');
16 $oCommunicationModel =
getModel(
'communication');
18 $this->communication_config = $oCommunicationModel->getConfig();
19 $skin = $this->communication_config->mskin;
21 Context::set(
'communication_config', $this->communication_config);
23 $tpl_path = sprintf(
'%sm.skins/%s', $this->module_path, $skin);
27 $layout_info = $oLayoutModel->getLayout($this->communication_config->mlayout_srl);
30 $this->module_info->mlayout_srl = $this->communication_config->mlayout_srl;
44 return $this->
stop(
'msg_not_logged');
48 if(!array_key_exists(
'dispCommunicationMessages',
$logged_info->menu_list))
50 return $this->
stop(
'msg_invalid_request');
56 if(!in_array($message_type, array(
'R',
'S',
'T')))
61 $oCommunicationModel =
getModel(
'communication');
66 $templateFile =
'read_message';
67 $columnList = array(
'message_srl',
'sender_srl',
'receiver_srl',
'message_type',
'title',
'content',
'readed',
'regdate');
68 $message = $oCommunicationModel->getSelectedMessage($message_srl, $columnList);
75 return $this->
stop(
'msg_invalid_request');
82 return $this->
stop(
'msg_invalid_request');
89 return $this->
stop(
'msg_invalid_request');
102 $templateFile =
'messages';
106 $columnList = array(
'message_srl',
'readed',
'title',
'member.member_srl',
'member.nick_name',
'message.regdate',
'readed_date');
107 $output = $oCommunicationModel->getMessages($message_type, $columnList);
117 $oSecurity->encodeHTML(
'message_list..nick_name');
137 $oCommunicationModel =
getModel(
'communication');
143 return $this->
stop(
'msg_not_logged');
153 return $this->
stop(
'msg_invalid_request');
159 return $this->
stop(
'msg_cannot_send_to_yourself');
166 $source_message = $oCommunicationModel->getSelectedMessage($message_srl);
167 if($source_message->message_srl == $message_srl && $source_message->sender_srl == $receiver_srl)
169 $source_message->title =
"[re] " . $source_message->title;
170 $source_message->content =
"\r\n<br />\r\n<br /><div style=\"padding-left:5px; border-left:5px solid #DDDDDD;\">" . trim($source_message->content) .
"</div>";
175 $receiver_info = $oMemberModel->getMemberInfoByMemberSrl($receiver_srl);
178 return $this->
stop(
'msg_invalid_request');
182 $option =
new stdClass();
183 $option->primary_key_name =
'receiver_srl';
184 $option->content_key_name =
'new_content';
185 $option->allow_fileupload = FALSE;
186 $option->enable_autosave = FALSE;
187 $option->enable_default_component = TRUE;
188 $option->enable_component = FALSE;
189 $option->resizable = FALSE;
190 $option->disable_html = TRUE;
191 $option->height = 150;
192 $option->skin = $this->communication_config->editor_skin;
193 $option->colorset = $this->communication_config->editor_colorset;
194 $editor = $oEditorModel->getEditor(
$logged_info->member_srl, $option);
setTemplateFile($filename)
dispCommunicationMessages()
stripEmbedTagForAdmin(&$content, $writer_member_srl)
set($key, $val, $set_to_get_vars=0)
dispCommunicationSendMessage()
dispCommunicationMessageBoxList()