forked from phiDelbak/Board-DX-for-XE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beluxe.mobile.php
42 lines (33 loc) · 1.05 KB
/
beluxe.mobile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* @class beluxeMobile
* @author phiDel ([email protected])
* @brief mobile class of the BoardDX module
*/
require_once(__XEFM_PATH__.'beluxe.view.php');
class beluxeMobile extends beluxeView
{
function init()
{
beluxeView::init();
}
function getBeluxeMobileCommentPage()
{
$doc_srl = Context::get('document_srl');
if(!$doc_srl) return new Object(-1, 'msg_invalid_request');
$cmDocument = &getModel('document');
$oDocIfo = $cmDocument->getDocument($doc_srl, $this->grant->manager);
if(!$oDocIfo->isExists()) return new Object(-1, 'msg_invalid_request');
Context::set('oDocument', $oDocIfo);
$cmThis = &getModel(__XEFM_NAME__);
$lst_cfg = $cmThis->getColumnInfo($this->module_srl);
Context::set('column_info', $lst_cfg);
$cvThis = &getView(__XEFM_NAME__);
$tpl_path = $cvThis->_templateFileLoad('comment');
$oTplNew = new TemplateHandler();
$html = $oTplNew->compile($tpl_path, 'comment.html');
$this->add('html', $html);
}
}
/* End of file beluxe.mobile.php */
/* Location: ./modules/beluxe/beluxe.mobile.php */