26 lines
1.2 KiB
PHP
Executable File
26 lines
1.2 KiB
PHP
Executable File
<?php
|
|
/*+***********************************************************************************
|
|
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
|
* ("License"); You may not use this file except in compliance with the License
|
|
* The Original Code is: vtiger CRM Open Source
|
|
* The Initial Developer of the Original Code is vtiger.
|
|
* Portions created by vtiger are Copyright (C) vtiger.
|
|
* All Rights Reserved.
|
|
*************************************************************************************/
|
|
|
|
class ModComments_DetailAjax_View extends Vtiger_IndexAjax_View {
|
|
|
|
public function process(Vtiger_Request $request) {
|
|
$record = $request->get('record');
|
|
$moduleName = $request->getModule();
|
|
$recordModel = ModComments_Record_Model::getInstanceById($record);
|
|
$currentUserModel = Users_Record_Model::getCurrentUserModel();
|
|
$modCommentsModel = Vtiger_Module_Model::getInstance('ModComments');
|
|
|
|
$viewer = $this->getViewer($request);
|
|
$viewer->assign('CURRENTUSER', $currentUserModel);
|
|
$viewer->assign('COMMENT', $recordModel);
|
|
$viewer->assign('COMMENTS_MODULE_MODEL', $modCommentsModel);
|
|
echo $viewer->view('Comment.tpl', $moduleName, true);
|
|
}
|
|
} |