Exemplo n.º 1
0
 public function deleteKey(Vtiger_Request $request)
 {
     $params = $request->get('params');
     $qualifiedModuleName = $request->getModule(false);
     $moduleModel = Settings_Dav_Module_Model::getInstance($qualifiedModuleName);
     $result = $moduleModel->deleteKey($params);
     $response = new Vtiger_Response();
     $response->setResult(array('success' => true, 'message' => vtranslate('LBL_KEY_HAS_BEEN_REMOVED', $request->getModule(false))));
     $response->emit();
 }
Exemplo n.º 2
0
 public function process(Vtiger_Request $request)
 {
     include_once 'config/api.php';
     $moduleName = $request->getModule();
     $qualifiedModuleName = $request->getModule(false);
     $moduleModel = Settings_Dav_Module_Model::getInstance($qualifiedModuleName);
     $viewer = $this->getViewer($request);
     $viewer->assign('MODULE_MODEL', $moduleModel);
     $viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);
     $viewer->assign('USERS', Users_Record_Model::getAll());
     $viewer->assign('MODULE', $moduleName);
     $viewer->assign('ENABLEDAV', !in_array('dav', $enabledServices));
     $viewer->view('Keys.tpl', $qualifiedModuleName);
 }