PATH:
home
/
letacommog
/
crmleta
/
modules
/
PDFMaker
/
views
<?php /* * ******************************************************************************* * The content of this file is subject to the PDF Maker Free license. * ("License"); You may not use this file except in compliance with the License * The Initial Developer of the Original Code is IT-Solutions4You s.r.o. * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o. * All Rights Reserved. * ****************************************************************************** */ class PDFMaker_Uninstall_View extends Vtiger_Index_View { function checkPermission(Vtiger_Request $request) { $currentUserModel = Users_Record_Model::getCurrentUserModel(); if(!$currentUserModel->isAdminUser()) { throw new AppException(vtranslate('LBL_PERMISSION_DENIED', 'Vtiger')); } } public function preProcess(Vtiger_Request $request, $display = true) { $PDFMaker = new PDFMaker_PDFMaker_Model(); $viewer = $this->getViewer($request); $moduleName = $request->getModule(); $viewer->assign('QUALIFIED_MODULE', $moduleName); Vtiger_Basic_View::preProcess($request, false); $viewer = $this->getViewer($request); $moduleName = $request->getModule(); $linkParams = array('MODULE' => $moduleName, 'ACTION' => $request->get('view')); $linkModels = $PDFMaker->getSideBarLinks($linkParams); $viewer->assign('QUICK_LINKS', $linkModels); $viewer->assign('CURRENT_USER_MODEL', Users_Record_Model::getCurrentUserModel()); $viewer->assign('CURRENT_VIEW', $request->get('view')); if ($display) { $this->preProcessDisplay($request); } } public function process(Vtiger_Request $request) { PDFMaker_Debugger_Model::GetInstance()->Init(); $adb = PearDatabase::getInstance(); $viewer = $this->getViewer($request); $mode = $request->get('mode'); $viewer->assign("MODE", $mode); $viewer->view('Uninstall.tpl', 'PDFMaker'); } function getHeaderScripts(Vtiger_Request $request) { $headerScriptInstances = parent::getHeaderScripts($request); $moduleName = $request->getModule(); $jsFileNames = array( "layouts.v7.modules.PDFMaker.resources.Uninstall" ); $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames); $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances); return $headerScriptInstances; } }
[+]
..
[-] IndexAjax.php
[edit]
[-] DetailFree.php
[edit]
[-] Uninstall.php
[edit]
[-] List.php
[edit]
[-] EditFree.php
[edit]
[-] GetPDFActions.php
[edit]