public function process(Vtiger_Request $request) { $module = $request->getModule(); Portal_Module_Model::deleteRecords($request); $response = new Vtiger_Response(); $result = array('message' => vtranslate('LBL_BOOKMARKS_DELETED_SUCCESSFULLY', $module)); $response->setResult($result); $response->emit(); }
public function process(Vtiger_Request $request) { $recordId = $request->get('record'); $module = $request->getModule(); Portal_Module_Model::deleteRecord($recordId); $response = new Vtiger_Response(); $response->setResult(array('message' => vtranslate('LBL_RECORD_DELETED_SUCCESSFULLY', $module))); $response->emit(); }
public function process(Vtiger_Request $request) { $module = $request->getModule(); $recordId = $request->get('record'); $bookmarkName = $request->get('bookmarkName'); $bookmarkUrl = $request->get('bookmarkUrl'); Portal_Module_Model::savePortalRecord($recordId, $bookmarkName, $bookmarkUrl); $response = new Vtiger_Response(); $result = array('message' => vtranslate('LBL_BOOKMARK_SAVED_SUCCESSFULLY', $module)); $response->setResult($result); $response->emit(); }
public function process(Vtiger_Request $request) { $recordId = $request->get('record'); $module = $request->getModule(); $url = Portal_Module_Model::getWebsiteUrl($recordId); $recordList = Portal_Module_Model::getAllRecords(); $viewer = $this->getViewer($request); $viewer->assign('MODULE', $module); $viewer->assign('RECORD_ID', $recordId); $viewer->assign('URL', $url); $viewer->assign('RECORDS_LIST', $recordList); $viewer->view('DetailView.tpl', $module); }
public function process(Vtiger_Request $request) { $moduleName = $request->getModule(); $recordId = $request->get('record'); $viewer = $this->getViewer($request); if (!empty($recordId)) { $data = Portal_Module_Model::getRecord($recordId); $viewer->assign('RECORD', $recordId); $viewer->assign('BOOKMARK_NAME', $data['bookmarkName']); $viewer->assign('BOOKMARK_URL', $data['bookmarkUrl']); } $viewer->assign('MODULE', $moduleName); $viewer->view('EditView.tpl', $moduleName); }