本文整理汇总了PHP中Settings_Vtiger_Index_View::preProcess方法的典型用法代码示例。如果您正苦于以下问题:PHP Settings_Vtiger_Index_View::preProcess方法的具体用法?PHP Settings_Vtiger_Index_View::preProcess怎么用?PHP Settings_Vtiger_Index_View::preProcess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Settings_Vtiger_Index_View
的用法示例。
在下文中一共展示了Settings_Vtiger_Index_View::preProcess方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: preProcess
public function preProcess(Vtiger_Request $request)
{
parent::preProcess($request);
$viewer = $this->getViewer($request);
$viewer->assign('RECORD_MODE', $request->getMode());
$viewer->view('EditHeader.tpl', $request->getModule(false));
}
示例2: preProcess
public function preProcess(Vtiger_Request $request)
{
parent::preProcess($request);
$recordId = $request->get('record');
$mode = $request->get('mode');
if (!$mode) {
$mode = "step1";
}
$qualifiedModuleName = $request->getModule(false);
$moduleName = $request->getModule();
if ($recordId) {
$recordModel = Settings_MailConverter_Record_Model::getInstanceById($recordId);
} else {
$recordModel = Settings_MailConverter_Record_Model::getCleanInstance();
}
$viewer = $this->getViewer($request);
if ($recordId) {
$viewer->assign('RECORD_ID', $recordId);
}
$viewer->assign('CREATE', $request->get('create'));
$viewer->assign('RECORD_MODEL', $recordModel);
$viewer->assign('MODULE_MODEL', $recordModel->getModule());
$viewer->assign('STEP', $mode);
$viewer->assign('MODULE_NAME', $moduleName);
$viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);
$viewer->view('EditHeader.tpl', $qualifiedModuleName);
}
示例3: preProcess
function preProcess(Vtiger_Request $request, $display = true)
{
parent::preProcess($request, false);
$viewer = $this->getViewer($request);
$this->initializeListViewContents($request, $viewer);
$sourceModule = $request->get('sourceModule');
$viewer->assign('SOURCE_MODULE', $sourceModule);
$viewer->view('ListViewHeader.tpl', $request->getModule(false));
}
示例4: preProcess
public function preProcess(Vtiger_Request $request)
{
parent::preProcess($request);
$viewer = $this->getViewer($request);
$recordId = $request->get('record');
$viewer->assign('RECORDID', $recordId);
if ($recordId) {
$moduleInstance = Settings_MappedFields_Module_Model::getInstanceById($recordId);
$viewer->assign('MAPPEDFIELDS_MODULE_MODEL', $moduleInstance);
}
$viewer->assign('RECORD_MODE', $request->getMode());
$viewer->view('EditHeader.tpl', $request->getModule(false));
}
示例5: preProcess
public function preProcess(Vtiger_Request $request)
{
parent::preProcess($request);
$viewer = $this->getViewer($request);
$recordId = $request->get('record');
$viewer->assign('RECORDID', $recordId);
if ($recordId) {
$workflowModel = Settings_Workflows_Record_Model::getInstance($recordId);
$viewer->assign('WORKFLOW_MODEL', $workflowModel);
}
$viewer->assign('RECORD_MODE', $request->getMode());
$viewer->view('EditHeader.tpl', $request->getModule(false));
}
示例6: preProcess
public function preProcess(Vtiger_Request $request)
{
parent::preProcess($request);
}
示例7: preProcess
public function preProcess($request)
{
${"GLOBALS"}["rkgmoxvznlb"] = "request";
${${"GLOBALS"}["socqiptt"]} = $request->get("workflow");
if (!empty(${${"GLOBALS"}["socqiptt"]})) {
${"GLOBALS"}["yreglrnv"] = "values";
${"GLOBALS"}["zvauiryc"] = "adb";
${${"GLOBALS"}["zvauiryc"]} = PearDatabase::getInstance();
${${"GLOBALS"}["yreglrnv"]} = array();
if (isset(${${"GLOBALS"}["socqiptt"]}["mainmodule"])) {
${"GLOBALS"}["cocdvbaiflk"] = "workflow";
${${"GLOBALS"}["wounomveyrd"]} = $request->get("workflow");
${${"GLOBALS"}["rmbbwt"]}[] = VtUtils::getModuleName(${${"GLOBALS"}["cocdvbaiflk"]}["mainmodule"]);
${${"GLOBALS"}["fwjxwcmhme"]}[] = "`module_name` = ?";
}
if (count(${${"GLOBALS"}["fwjxwcmhme"]}) > 0) {
${"GLOBALS"}["bejhrqdh"] = "sql";
${${"GLOBALS"}["wounomveyrd"]} = $request->get("workflow");
${${"GLOBALS"}["bejhrqdh"]} = "UPDATE vtiger_wf_settings SET " . implode(",", ${${"GLOBALS"}["fwjxwcmhme"]}) . " WHERE id = " . intval(${${"GLOBALS"}["wounomveyrd"]}["id"]);
$adb->pquery(${${"GLOBALS"}["npnwejaci"]}, array(${${"GLOBALS"}["rmbbwt"]}));
}
}
parent::preProcess(${${"GLOBALS"}["rkgmoxvznlb"]});
}