当前位置: 首页>>代码示例>>PHP>>正文


PHP Vtiger_Request::getAll方法代码示例

本文整理汇总了PHP中Vtiger_Request::getAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Request::getAll方法的具体用法?PHP Vtiger_Request::getAll怎么用?PHP Vtiger_Request::getAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Vtiger_Request的用法示例。


在下文中一共展示了Vtiger_Request::getAll方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: generate

 function generate(Vtiger_Request $xxx0b)
 {
     global $xxx22, $xxx23, $xxx24, $xxx25, $xxx26, $xxx27, $xxx28, $xxx29;
     $xxx0c = new PDFMaker_PDFMaker_Model();
     $xxx0d = $xxx0b->getAll();
     $xxx0e = PearDatabase::getInstance();
     $xxx0f = "site_URL";
     $xxx10 = "vtiger_current_version";
     $xxx11 = vglobal($xxx10);
     $xxx12 = vglobal($xxx0f);
     $xxx13 = $xxx0b->get('relmodule');
     $xxx14 = CRMEntity::getInstance($xxx13);
     $xxx15 = $xxx0b->get('record');
     $xxx16 = $xxx0b->get('mode');
     $xxx17 = $xxx0b->get('language');
     $xxx18 = $xxx0b->get('type');
     $xxx19 = "";
     $xxx1a = $xxx0c->GetPreparedMPDF($xxx19, $xxx15, $xxx13, $xxx17);
     $xxx19->Output('cache/' . $xxx1a . '.pdf');
     @$xxx27();
     $xxx25('Content-Type: application/pdf');
     $xxx25("Content-length: " . $xxx22("./cache/{$xxx1a}.pdf"));
     $xxx25("Cache-Control: private");
     $xxx25("Content-Disposition: attachment; filename={$xxx1a}.pdf");
     $xxx25("Content-Description: PHP Generated Data");
     echo $xxx23($xxx24("./cache/{$xxx1a}.pdf", "r"), $xxx22("./cache/{$xxx1a}.pdf"));
     @$xxx29("cache/{$xxx1a}.pdf");
 }
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:28,代码来源:checkGenerate.php

示例2: process

 public function process(Vtiger_Request $request)
 {
     // SalesPlatform.ru begin
     require_once 'includes/SalesPlatform/NetIDNA/idna_convert.class.php';
     // SalesPlatform.ru end
     $outgoingServerSettingsModel = Settings_Vtiger_Systems_Model::getInstanceFromServerType('email', 'OutgoingServer');
     $loadDefaultSettings = $request->get('default');
     if ($loadDefaultSettings == "true") {
         $outgoingServerSettingsModel->loadDefaultValues();
     } else {
         $outgoingServerSettingsModel->setData($request->getAll());
     }
     $response = new Vtiger_Response();
     // SalesPlatform.ru begin
     $idn = new idna_convert();
     $server_username = $idn->encode(vtlib_purify($request->get('server')));
     $from_email_field = $idn->encode(vtlib_purify($request->get('from_email_field')));
     $request->set('server_username', $server_username);
     $request->set('from_email_field', $from_email_field);
     // SalesPlatform.ru end
     try {
         $id = $outgoingServerSettingsModel->save($request);
         $data = $outgoingServerSettingsModel->getData();
         $response->setResult($data);
     } catch (Exception $e) {
         $response->setError($e->getCode(), $e->getMessage());
     }
     $response->emit();
 }
开发者ID:gitter-badger,项目名称:openshift-salesplatform,代码行数:29,代码来源:OutgoingServerSaveAjax.php

示例3: process

 public function process(Vtiger_Request $request)
 {
     global $log;
     $log->debug("Entering ./views/QuickCreateAjax.php::process");
     $moduleName = $request->getModule();
     $recordModel = Vtiger_Record_Model::getCleanInstance($moduleName);
     $moduleModel = $recordModel->getModule();
     $fieldList = $moduleModel->getFields();
     $requestFieldList = array_intersect_key($request->getAll(), $fieldList);
     foreach ($requestFieldList as $fieldName => $fieldValue) {
         $fieldModel = $fieldList[$fieldName];
         if ($fieldModel->isEditable()) {
             $recordModel->set($fieldName, $fieldModel->getDBInsertValue($fieldValue));
         }
     }
     $recordStructureInstance = Vtiger_RecordStructure_Model::getInstanceFromRecordModel($recordModel, Vtiger_RecordStructure_Model::RECORD_STRUCTURE_MODE_QUICKCREATE);
     $picklistDependencyDatasource = Vtiger_DependencyPicklist::getPicklistDependencyDatasource($moduleName);
     $viewer = $this->getViewer($request);
     $viewer->assign('PICKIST_DEPENDENCY_DATASOURCE', Zend_Json::encode($picklistDependencyDatasource));
     $viewer->assign('CURRENTDATE', date('Y-n-j'));
     $viewer->assign('MODULE', $moduleName);
     $viewer->assign('SINGLE_MODULE', 'SINGLE_' . $moduleName);
     $viewer->assign('MODULE_MODEL', $moduleModel);
     $viewer->assign('RECORD_STRUCTURE_MODEL', $recordStructureInstance);
     $viewer->assign('RECORD_STRUCTURE', $recordStructureInstance->getStructure());
     $viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel());
     $viewer->assign('SCRIPTS', $this->getHeaderScripts($request));
     $viewer->assign('MAX_UPLOAD_LIMIT_MB', Vtiger_Util_Helper::getMaxUploadSize());
     $viewer->assign('MAX_UPLOAD_LIMIT', vglobal('upload_maxsize'));
     echo $viewer->view('QuickCreate.tpl', $moduleName, true);
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:31,代码来源:QuickCreateAjax.php

示例4: process

 public function process(Vtiger_Request $request)
 {
     $moduleName = $request->getModule();
     $recordModel = Users_Record_Model::getCleanInstance($moduleName);
     $moduleModel = $recordModel->getModule();
     $fieldList = $moduleModel->getFields();
     $requestFieldList = array_intersect_key($request->getAll(), $fieldList);
     foreach ($requestFieldList as $fieldName => $fieldValue) {
         $fieldModel = $fieldList[$fieldName];
         if ($fieldModel->isEditable()) {
             $recordModel->set($fieldName, $fieldModel->getDBInsertValue($fieldValue));
         }
     }
     $recordStructureInstance = Users_RecordStructure_Model::getInstanceFromRecordModel($recordModel, Users_RecordStructure_Model::RECORD_STRUCTURE_MODE_QUICKCREATE);
     $viewer = $this->getViewer($request);
     $viewer->assign('CURRENTDATE', date('Y-n-j'));
     $viewer->assign('MODULE', $moduleName);
     $viewer->assign('SINGLE_MODULE', 'SINGLE_' . $moduleName);
     $viewer->assign('MODULE_MODEL', $moduleModel);
     $viewer->assign('RECORD_STRUCTURE_MODEL', $recordStructureInstance);
     $viewer->assign('RECORD_STRUCTURE', $recordStructureInstance->getStructure());
     $viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel());
     $viewer->assign('SCRIPTS', $this->getFooterScripts($request));
     echo $viewer->view('QuickCreate.tpl', $moduleName, true);
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:25,代码来源:QuickCreateAjax.php

示例5: process

 public function process(Vtiger_Request $request)
 {
     $moduleName = $request->getModule();
     $moduleList = array('Calendar', 'Events');
     $quickCreateContents = array();
     foreach ($moduleList as $module) {
         $info = array();
         $recordModel = Vtiger_Record_Model::getCleanInstance($module);
         $moduleModel = $recordModel->getModule();
         $fieldList = $moduleModel->getFields();
         $requestFieldList = array_intersect_key($request->getAll(), $fieldList);
         foreach ($requestFieldList as $fieldName => $fieldValue) {
             $fieldModel = $fieldList[$fieldName];
             if ($fieldModel->isEditable()) {
                 $recordModel->set($fieldName, $fieldModel->getDBInsertValue($fieldValue));
             }
         }
         $recordStructureInstance = Vtiger_RecordStructure_Model::getInstanceFromRecordModel($recordModel, Vtiger_RecordStructure_Model::RECORD_STRUCTURE_MODE_QUICKCREATE);
         $info['recordStructureModel'] = $recordStructureInstance;
         $info['recordStructure'] = $recordStructureInstance->getStructure();
         $info['moduleModel'] = $moduleModel;
         $quickCreateContents[$module] = $info;
     }
     $picklistDependencyDatasource = Vtiger_DependencyPicklist::getPicklistDependencyDatasource($moduleName);
     $viewer = $this->getViewer($request);
     $viewer->assign('PICKIST_DEPENDENCY_DATASOURCE', Zend_Json::encode($picklistDependencyDatasource));
     $viewer->assign('CURRENTDATE', date('Y-n-j'));
     $viewer->assign('MODULE', $moduleName);
     $viewer->assign('QUICK_CREATE_CONTENTS', $quickCreateContents);
     $viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel());
     $viewer->assign('SCRIPTS', $this->getHeaderScripts($request));
     $viewer->view('QuickCreate.tpl', $moduleName);
 }
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:33,代码来源:QuickCreateAjax.php

示例6: process

 public function process(Vtiger_Request $request)
 {
     ${"GLOBALS"}["jhslxixksw"] = "id";
     $hbtbpmlh = "path";
     ${"GLOBALS"}["lxinqwn"] = "params";
     ${${"GLOBALS"}["yetinhmxt"]} = PearDatabase::getInstance();
     $ougpgodj = "filename";
     ${${"GLOBALS"}["lxinqwn"]} = $request->getAll();
     ${${"GLOBALS"}["jhslxixksw"]} = $request->get("id");
     $wdittud = "id";
     $hsnxkpbpjgl = "path";
     ${"GLOBALS"}["ospxotjg"] = "filename";
     ${$ougpgodj} = $request->get("filename");
     ${$hbtbpmlh} = vglobal("root_directory") . "/modules/Workflow2/tmp/download/" . ${$wdittud};
     if (!file_exists(${$hsnxkpbpjgl})) {
         \Workflow2::error_handler(E_ERROR, "File to download not found! You could download a file only one time!");
     }
     header("Pragma: public");
     ${"GLOBALS"}["bjnhsjrlsql"] = "path";
     header("Expires: 0");
     header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
     header("Cache-Control: public");
     header("Content-Description: File Transfer");
     header("Content-type: application/octet-stream");
     header("Content-Disposition: attachment; filename=\"" . ${${"GLOBALS"}["ospxotjg"]} . "\"");
     header("Content-Transfer-Encoding: binary");
     header("Content-Length: " . filesize(${${"GLOBALS"}["bjnhsjrlsql"]}));
     @readfile(${${"GLOBALS"}["rxsnhyopph"]});
     @unlink(${${"GLOBALS"}["rxsnhyopph"]});
     exit;
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:31,代码来源:DownloadFile.php

示例7: save

 public function save(Vtiger_Request $request)
 {
     $fieldId = $request->get('fieldid');
     $fieldInstance = Vtiger_Field_Model::getInstance($fieldId);
     $fields = ['presence', 'quickcreate', 'summaryfield', 'helpinfo', 'generatedtype', 'masseditable', 'displaytype'];
     foreach ($request->getAll() as $key => $value) {
         if ($key == 'mandatory') {
             $fieldInstance->updateTypeofDataFromMandatory($value);
         }
         if (in_array($key, $fields)) {
             $fieldInstance->set($key, $value);
         }
     }
     $defaultValue = $request->get('fieldDefaultValue');
     if ($fieldInstance->getFieldDataType() == 'date') {
         $dateInstance = new Vtiger_Date_UIType();
         $defaultValue = $dateInstance->getDBInsertedValue($defaultValue);
     }
     if ($request->has('fieldMask')) {
         $fieldInstance->set('fieldparams', $request->get('fieldMask'));
     }
     if (is_array($defaultValue)) {
         $defaultValue = implode(' |##| ', $defaultValue);
     }
     $fieldInstance->set('defaultvalue', $defaultValue);
     $response = new Vtiger_Response();
     try {
         $fieldInstance->save();
         $response->setResult(array('success' => true, 'presence' => $request->get('presence'), 'mandatory' => $fieldInstance->isMandatory(), 'label' => vtranslate($fieldInstance->get('label'), $request->get('sourceModule'))));
     } catch (Exception $e) {
         $response->setError($e->getCode(), $e->getMessage());
     }
     $response->emit();
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:34,代码来源:Field.php

示例8: process

 public function process(Vtiger_Request $request)
 {
     ${"GLOBALS"}["xtbxpaosomd"] = "module";
     ${"GLOBALS"}["cqsbdcf"] = "params";
     $ylhwigwjj = "adb";
     ${$ylhwigwjj} = PearDatabase::getInstance();
     $irlzrbtqca = "params";
     ${$irlzrbtqca} = $request->getAll();
     ${"GLOBALS"}["bjpfpvsjmoe"] = "block";
     ${${"GLOBALS"}["vlwbcehp"]} = ${${"GLOBALS"}["fvrxafpqr"]}["moduleName"];
     ${"GLOBALS"}["slnjoremiwq"] = "result";
     ${${"GLOBALS"}["imkzic"]} = VtUtils::getFieldsWithBlocksForModule(${${"GLOBALS"}["xtbxpaosomd"]}, true);
     if (!empty(${${"GLOBALS"}["cqsbdcf"]}["blocks"])) {
         ${"GLOBALS"}["tdxbgjlxl"] = "moduleFields";
         die(json_encode(${${"GLOBALS"}["tdxbgjlxl"]}));
     }
     ${${"GLOBALS"}["quwfbet"]} = array();
     foreach (${${"GLOBALS"}["imkzic"]} as ${${"GLOBALS"}["jutloijjy"]} => ${${"GLOBALS"}["bjpfpvsjmoe"]}) {
         foreach (${${"GLOBALS"}["swvrrtqrvf"]} as ${${"GLOBALS"}["fxiwohqzyqth"]}) {
             $qusdhjlspiv = "result";
             ${$qusdhjlspiv}[] = array("type" => $field->type, "group" => ${${"GLOBALS"}["jutloijjy"]}, "name" => $field->name, "label" => $field->label);
         }
     }
     die(json_encode(${${"GLOBALS"}["slnjoremiwq"]}));
 }
开发者ID:cin-system,项目名称:vtigercrm-cin,代码行数:25,代码来源:GetModuleFields.php

示例9: process

 public function process(Vtiger_Request $request)
 {
     ${"GLOBALS"}["fgwbuhrxu"] = "adb";
     $symwrz = "customViewModel";
     ${${"GLOBALS"}["fgwbuhrxu"]} = PearDatabase::getInstance();
     $cerakpgxi = "recordIds";
     ${"GLOBALS"}["ydhdsoshkjcr"] = "params";
     $cwhzpepgkpy = "params";
     ${${"GLOBALS"}["ydhdsoshkjcr"]} = $request->getAll();
     ${${"GLOBALS"}["igosddeyg"]} = (int) ${$cwhzpepgkpy}["viewname"];
     ${"GLOBALS"}["eqmrcofnhqq"] = "customViewModel";
     ${$symwrz} = CustomView_Record_Model::getInstanceById(${${"GLOBALS"}["igosddeyg"]});
     if (${${"GLOBALS"}["eqmrcofnhqq"]}) {
         ${${"GLOBALS"}["virgnuvno"]} = $request->get("search_key");
         ${"GLOBALS"}["qeosukvsm"] = "searchValue";
         ${"GLOBALS"}["vrykqprgdfxc"] = "recordIds";
         ${${"GLOBALS"}["qeosukvsm"]} = $request->get("search_value");
         ${${"GLOBALS"}["mnhnltytyh"]} = $request->get("operator");
         if (!empty(${${"GLOBALS"}["mnhnltytyh"]})) {
             $customViewModel->set("operator", ${${"GLOBALS"}["mnhnltytyh"]});
             ${"GLOBALS"}["yvrscvp"] = "searchValue";
             $customViewModel->set("search_key", ${${"GLOBALS"}["virgnuvno"]});
             $customViewModel->set("search_value", ${${"GLOBALS"}["yvrscvp"]});
         }
         ${${"GLOBALS"}["vrykqprgdfxc"]} = $customViewModel->getRecordIds(array(), $customViewModel->getModule());
     }
     die(json_encode(array("ids" => ${$cerakpgxi})));
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:28,代码来源:GetSelectedIds.php

示例10: process

 public function process(Vtiger_Request $request)
 {
     $moduleName = $request->getModule();
     $crmid = $request->get('record');
     $adb = PearDatabase::getInstance();
     $sql1 = "DELETE FROM vtiger_pdfmaker_images WHERE crmid=?";
     $adb->pquery($sql1, array($crmid));
     $sql2 = "INSERT INTO vtiger_pdfmaker_images (crmid, productid, sequence, attachmentid, width, height) VALUES (?, ?, ?, ?, ?, ?)";
     $R_Data = $request->getAll();
     foreach ($R_Data as $key => $value) {
         if (strpos($key, "img_") !== false) {
             list($bin, $productid, $sequence) = explode("_", $key);
             if ($value != "no_image") {
                 $width = $R_Data["width_" . $productid . "_" . $sequence];
                 $height = $R_Data["height_" . $productid . "_" . $sequence];
                 if (!is_numeric($width) || $width > 999) {
                     $width = 0;
                 }
                 if (!is_numeric($height) || $height > 999) {
                     $height = 0;
                 }
             } else {
                 $height = $width = $value = 0;
             }
             $adb->pquery($sql2, array($crmid, $productid, $sequence, $value, $width, $height));
         }
     }
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:28,代码来源:SavePDFImages.php

示例11: process

 public function process(Vtiger_Request $request)
 {
     $adb = PearDatabase::getInstance();
     // get min, max, allow_chars from vtiger_passwords_config
     $result = $adb->query("SELECT * FROM vtiger_passwords_config WHERE 1 LIMIT 1", true);
     $min = $adb->query_result($result, 0, 'pass_length_min');
     $max = $adb->query_result($result, 0, 'pass_length_max');
     $allow_chars = $adb->query_result($result, 0, 'pass_allow_chars');
     $moduleName = $request->getModule();
     $recordModel = Vtiger_Record_Model::getCleanInstance($moduleName);
     $moduleModel = $recordModel->getModule();
     $fieldList = $moduleModel->getFields();
     $requestFieldList = array_intersect_key($request->getAll(), $fieldList);
     foreach ($requestFieldList as $fieldName => $fieldValue) {
         $fieldModel = $fieldList[$fieldName];
         if ($fieldModel->isEditable()) {
             $recordModel->set($fieldName, $fieldModel->getDBInsertValue($fieldValue));
         }
     }
     $recordStructureInstance = Vtiger_RecordStructure_Model::getInstanceFromRecordModel($recordModel, Vtiger_RecordStructure_Model::RECORD_STRUCTURE_MODE_QUICKCREATE);
     $recordStructure = $recordStructureInstance->getStructure();
     $sourceRelatedField = $moduleModel->getValuesFromSource($moduleName, $request->get('sourceModule'), $request->get('sourceRecord'));
     foreach ($sourceRelatedField as $field => $value) {
         if (isset($recordStructure[$field])) {
             $fieldvalue = $recordStructure[$field]->get('fieldvalue');
             if (empty($fieldvalue)) {
                 $recordStructure[$field]->set('fieldvalue', $value);
                 unset($sourceRelatedField[$field]);
             }
         }
     }
     $picklistDependencyDatasource = Vtiger_DependencyPicklist::getPicklistDependencyDatasource($moduleName);
     $relatedModule = 'OSSPasswords';
     $viewer = $this->getViewer($request);
     $viewer->assign('RELATEDMODULE', $relatedModule);
     $viewer->assign('GENERATEPASS', 'Generate Password');
     $viewer->assign('VIEW', $request->get('view'));
     $viewer->assign('GENERATEONCLICK', 'generate_password(' . $min . ',' . $max . ',\'' . $allow_chars . '\'); return false;');
     $viewer->assign('VALIDATE_STRINGS', vtranslate('Very Weak', $relatedModule) . ',' . vtranslate('Weak', $relatedModule) . ',' . vtranslate('Better', $relatedModule) . ',' . vtranslate('Medium', $relatedModule) . ',' . vtranslate('Strong', $relatedModule) . ',' . vtranslate('Very Strong', $relatedModule));
     $viewer->assign('Very Weak', 'Very Weak');
     $viewer->assign('Weak', 'Weak');
     $viewer->assign('Better', 'Better');
     $viewer->assign('Medium', 'Medium');
     $viewer->assign('Strong', 'Strong');
     $viewer->assign('Very Strong', 'Very Strong');
     $viewer->assign('PICKIST_DEPENDENCY_DATASOURCE', Zend_Json::encode($picklistDependencyDatasource));
     $mappingRelatedField = $moduleModel->getMappingRelatedField($moduleName);
     $viewer->assign('MAPPING_RELATED_FIELD', Zend_Json::encode($mappingRelatedField));
     $viewer->assign('CURRENTDATE', date('Y-n-j'));
     $viewer->assign('MODULE', $moduleName);
     $viewer->assign('SINGLE_MODULE', 'SINGLE_' . $moduleName);
     $viewer->assign('MODULE_MODEL', $moduleModel);
     $viewer->assign('RECORD_STRUCTURE_MODEL', $recordStructureInstance);
     $viewer->assign('RECORD_STRUCTURE', $recordStructure);
     $viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel());
     $viewer->assign('SCRIPTS', $this->getFooterScripts($request));
     echo $viewer->view('QuickCreate.tpl', $moduleName, true);
 }
开发者ID:HoererUndFlamme,项目名称:YetiForceCRM,代码行数:58,代码来源:QuickCreateAjax.php

示例12: process

 public function process(Vtiger_Request $request)
 {
     ${"GLOBALS"}["naugxubkyqk"] = "adb";
     $horxgny = "response";
     $ffchrur = "params";
     $vsaxyhlvnlh = "params";
     ${${"GLOBALS"}["naugxubkyqk"]} = PearDatabase::getInstance();
     ${$horxgny} = new Vtiger_Response();
     ${$vsaxyhlvnlh} = $request->getAll();
     \Workflow\Repository::register(${${"GLOBALS"}["vhndprlq"]}["repo_url"], ${$ffchrur}["repo_license"], "", false, ${${"GLOBALS"}["vhndprlq"]}["_nonce"]);
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:11,代码来源:TaskRepoSave.php

示例13: process

 public function process(Vtiger_Request $request)
 {
     $adb = PearDatabase::getInstance();
     //$params = $request->getAll();
     $post = $request->getAll();
     if (!empty($post['filterId'])) {
         $filterId = $post['filterId'];
         $data = array();
         $columns = array();
         $sql = 'SELECT * FROM vtiger_customview WHERE cvid = ?';
         $data['vtiger_customview'] = $adb->fetchByAssoc($adb->pquery($sql, array($filterId)));
         $sql = 'SELECT * FROM vtiger_cvcolumnlist WHERE cvid = ?';
         $result = $adb->pquery($sql, array($filterId));
         while ($row = $adb->fetchByAssoc($result)) {
             $data['vtiger_cvcolumnlist'][] = $row;
             $parts = explode(':', $row['columnname']);
             $columns[] = array($parts[0], $parts[2], $row['columnname']);
         }
         $sql = 'SELECT * FROM vtiger_cvstdfilter WHERE cvid = ?';
         $result = $adb->pquery($sql, array($filterId));
         while ($row = $adb->fetchByAssoc($result)) {
             $data['vtiger_cvstdfilter'][] = $row;
         }
         $sql = 'SELECT * FROM vtiger_cvadvfilter_grouping WHERE cvid = ?';
         $result = $adb->pquery($sql, array($filterId));
         while ($row = $adb->fetchByAssoc($result)) {
             $data['vtiger_cvadvfilter_grouping'][] = $row;
         }
         $sql = 'SELECT * FROM vtiger_cvadvfilter WHERE cvid = ?';
         $result = $adb->pquery($sql, array($filterId));
         while ($row = $adb->fetchByAssoc($result)) {
             $data['vtiger_cvadvfilter'][] = $row;
             $parts = explode(':', $row['columnname']);
             $columns[] = array($parts[0], $parts[2], $row['columnname']);
         }
         foreach ($columns as $col) {
             $sql = 'SELECT * FROM vtiger_field WHERE tablename = ? AND fieldname = ?';
             $result = $adb->pquery($sql, array($col[0], $col[1]));
             $field = $adb->fetchByAssoc($result);
             $data['columns'][] = array($field['fieldname'], \SwVtTools\VtUtils::getModuleName($field['tabid']), $field['fieldlabel'], $field['uitype'], $col[2]);
         }
         global $vtiger_current_version;
         //$vtiger_current_version = '6.0.0';
         $data['system'] = array('vtiger_version' => $vtiger_current_version);
         $data = base64_encode(serialize($data));
         header("Expires: Mon, 26 Jul 1997 05:00:00 GMT\n");
         header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
         header("Content-Disposition: attachment; filename=\"customview_" . intval($filterId) . ".cv\";");
         header("Content-Type: application/force-download");
         header('Content-Description: File Transfer');
         echo $data;
     }
 }
开发者ID:Neodracir,项目名称:VtigerCRM-Tools,代码行数:53,代码来源:ExportCustomView.php

示例14: process

 public function process(Vtiger_Request $request)
 {
     ${"GLOBALS"}["guexekxeeuoa"] = "adb";
     ${${"GLOBALS"}["guexekxeeuoa"]} = PearDatabase::getInstance();
     ${${"GLOBALS"}["nusuliry"]} = new Vtiger_Response();
     ${"GLOBALS"}["hlwnebam"] = "repository";
     ${${"GLOBALS"}["rmfphlsq"]} = $request->getAll();
     ${${"GLOBALS"}["pebozydyj"]} = \Workflow\Repository::getAll();
     foreach (${${"GLOBALS"}["pebozydyj"]} as ${${"GLOBALS"}["hlwnebam"]}) {
         $repository->checkRepoForUpdate();
         $repository->update();
     }
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:13,代码来源:TaskRepoUpdate.php

示例15: process

 public function process(Vtiger_Request $request)
 {
     ${"GLOBALS"}["rerlpgyyout"] = "adb";
     $lfzuoxhfx = "sql";
     ${${"GLOBALS"}["rerlpgyyout"]} = PearDatabase::getInstance();
     ${${"GLOBALS"}["mqqmhbtqctmz"]} = new Vtiger_Response();
     ${"GLOBALS"}["pordkdsia"] = "params";
     ${${"GLOBALS"}["pordkdsia"]} = $request->getAll();
     $uikboerjhnpc = "params";
     ${"GLOBALS"}["uyqsebshkwo"] = "sql";
     ${${"GLOBALS"}["uyqsebshkwo"]} = "UPDATE vtiger_wf_repository SET status = ? WHERE id = ?";
     $adb->pquery(${$lfzuoxhfx}, array(${$uikboerjhnpc}["status"], ${${"GLOBALS"}["hgqlqtaqc"]}["repo_id"]));
 }
开发者ID:cin-system,项目名称:vtigercrm-cin,代码行数:13,代码来源:TaskRepoSetStatus.php


注:本文中的Vtiger_Request::getAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。