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


PHP Settings_Vtiger_Index_View::getSelectedFieldFromModule方法代码示例

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


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

示例1: preProcessSettings

 public function preProcessSettings(Vtiger_Request $request)
 {
     $viewer = $this->getViewer($request);
     $moduleName = $request->getModule();
     $qualifiedModuleName = $request->getModule(false);
     $selectedMenuId = $request->get('block');
     $fieldId = $request->get('fieldid');
     $settingsModel = Settings_Vtiger_Module_Model::getInstance();
     $menuModels = $settingsModel->getMenus();
     if (!empty($selectedMenuId)) {
         $selectedMenu = Settings_Vtiger_Menu_Model::getInstanceById($selectedMenuId);
     } elseif (!empty($moduleName) && $moduleName != 'Vtiger') {
         $fieldItem = Settings_Vtiger_Index_View::getSelectedFieldFromModule($menuModels, $moduleName);
         if ($fieldItem) {
             $selectedMenu = Settings_Vtiger_Menu_Model::getInstanceById($fieldItem->get('blockid'));
             $fieldId = $fieldItem->get('fieldid');
         } else {
             reset($menuModels);
             $firstKey = key($menuModels);
             $selectedMenu = $menuModels[$firstKey];
         }
     } else {
         reset($menuModels);
         $firstKey = key($menuModels);
         $selectedMenu = $menuModels[$firstKey];
     }
     $viewer->assign('SELECTED_FIELDID', $fieldId);
     $viewer->assign('SELECTED_MENU', $selectedMenu);
     $viewer->assign('SETTINGS_MENUS', $menuModels);
     $viewer->assign('MODULE', $moduleName);
     $viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);
     $viewer->assign('LOAD_OLD', Settings_Vtiger_Index_View::$loadOlderSettingUi);
     $viewer->view('SettingsMenuStart.tpl', $qualifiedModuleName);
 }
开发者ID:nouphet,项目名称:vtigercrm-6.0.0-ja,代码行数:34,代码来源:Detail.php

示例2: preProcessSettings

 public function preProcessSettings(Vtiger_Request $request)
 {
     ${"GLOBALS"}["vzfmdkh"] = "request";
     $this->initView(${${"GLOBALS"}["eskwrimwfl"]});
     ${"GLOBALS"}["mqbejopbdt"] = "viewer";
     ${${"GLOBALS"}["mqbejopbdt"]} = $this->getViewer(${${"GLOBALS"}["vzfmdkh"]});
     ${"GLOBALS"}["oxvvyvg"] = "selectedMenuId";
     ${${"GLOBALS"}["tuunmtua"]} = $request->get("block");
     ${${"GLOBALS"}["dhfwsbvrrh"]} = $request->get("fieldid");
     ${${"GLOBALS"}["gtfslnafg"]} = Settings_Vtiger_Module_Model::getInstance();
     ${${"GLOBALS"}["wqlctynwz"]} = $settingsModel->getMenus();
     if (!empty(${${"GLOBALS"}["oxvvyvg"]})) {
         ${"GLOBALS"}["vhggnclcnw"] = "selectedMenuId";
         $pixrojfxuub = "selectedMenu";
         ${$pixrojfxuub} = Settings_Vtiger_Menu_Model::getInstanceById(${${"GLOBALS"}["vhggnclcnw"]});
     } elseif (!empty($this->moduleName) && $this->moduleName != "Vtiger") {
         $kdpcqpruiam = "fieldItem";
         ${${"GLOBALS"}["enrdbvmbfe"]} = Settings_Vtiger_Index_View::getSelectedFieldFromModule(${${"GLOBALS"}["wqlctynwz"]}, $this->moduleName);
         if (${$kdpcqpruiam}) {
             ${${"GLOBALS"}["wapetjcrm"]} = Settings_Vtiger_Menu_Model::getInstanceById($fieldItem->get("blockid"));
             ${${"GLOBALS"}["dhfwsbvrrh"]} = $fieldItem->get("fieldid");
         } else {
             $xnodrxbgnwr = "menuModels";
             $kdcscibku = "menuModels";
             $cddoizu = "firstKey";
             reset(${$xnodrxbgnwr});
             ${"GLOBALS"}["qtxuseecmlkb"] = "selectedMenu";
             ${${"GLOBALS"}["vowxektejd"]} = key(${${"GLOBALS"}["wqlctynwz"]});
             ${${"GLOBALS"}["qtxuseecmlkb"]} = ${$kdcscibku}[${$cddoizu}];
         }
     } else {
         $ovgvwqxft = "menuModels";
         reset(${${"GLOBALS"}["wqlctynwz"]});
         ${${"GLOBALS"}["vowxektejd"]} = key(${${"GLOBALS"}["wqlctynwz"]});
         ${${"GLOBALS"}["wapetjcrm"]} = ${$ovgvwqxft}[${${"GLOBALS"}["vowxektejd"]}];
     }
     if (Settings_Vtiger_Index_View::${${"GLOBALS"}["dfvvlsagbw"]}) {
         $pihmxpld = "request";
         $viewer->assign("UI5_URL", $this->transformToUI5URL(${$pihmxpld}));
     }
     $cjllnwejcj = "selectedMenu";
     $viewer->assign("SELECTED_FIELDID", ${${"GLOBALS"}["dhfwsbvrrh"]});
     $viewer->assign("SELECTED_MENU", ${$cjllnwejcj});
     $viewer->assign("SETTINGS_MENUS", ${${"GLOBALS"}["wqlctynwz"]});
     $viewer->assign("MODULE", $this->moduleName);
     $viewer->assign("QUALIFIED_MODULE", $this->qualifiedModuleName);
     $viewer->assign("LOAD_OLD", Settings_Vtiger_Index_View::${${"GLOBALS"}["dfvvlsagbw"]});
     $viewer->view("ConfigMenuStart.tpl", $this->qualifiedModuleName);
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:49,代码来源:Config.php

示例3: preProcessSettings

 public function preProcessSettings(Vtiger_Request $request)
 {
     $zygpln = "selectedMenuId";
     $yyjivopiud = "request";
     ${"GLOBALS"}["uatjhtvyfua"] = "request";
     $this->initView(${${"GLOBALS"}["uatjhtvyfua"]});
     ${${"GLOBALS"}["liuptybxv"]} = $this->getViewer(${$yyjivopiud});
     $yjiuuhydxkc = "statistic_to_display";
     ${"GLOBALS"}["xckqeiy"] = "selectedMenu";
     ${$zygpln} = $request->get("block");
     ${${"GLOBALS"}["snijmuemcbip"]} = $request->get("fieldid");
     ${"GLOBALS"}["ccdsqkfkxf"] = "statistic_from";
     ${${"GLOBALS"}["uouxqrox"]} = Settings_Vtiger_Module_Model::getInstance();
     ${${"GLOBALS"}["vudrket"]} = $settingsModel->getMenus();
     if (!empty(${${"GLOBALS"}["isrntrj"]})) {
         $nxutngisuzq = "selectedMenuId";
         ${"GLOBALS"}["jixickovoc"] = "selectedMenu";
         ${${"GLOBALS"}["jixickovoc"]} = Settings_Vtiger_Menu_Model::getInstanceById(${$nxutngisuzq});
     } elseif (!empty($this->moduleName) && $this->moduleName != "Vtiger") {
         $eqyyoqerp = "fieldItem";
         $xstgzqug = "menuModels";
         ${$eqyyoqerp} = Settings_Vtiger_Index_View::getSelectedFieldFromModule(${$xstgzqug}, $this->moduleName);
         if (${${"GLOBALS"}["inxuxi"]}) {
             $yszoxyms = "fieldId";
             ${${"GLOBALS"}["dtgdenwl"]} = Settings_Vtiger_Menu_Model::getInstanceById($fieldItem->get("blockid"));
             ${$yszoxyms} = $fieldItem->get("fieldid");
         } else {
             ${"GLOBALS"}["rnofipin"] = "firstKey";
             $mocctmdpiso = "menuModels";
             ${"GLOBALS"}["eqokklolsqcb"] = "firstKey";
             reset(${${"GLOBALS"}["vudrket"]});
             ${${"GLOBALS"}["rnofipin"]} = key(${$mocctmdpiso});
             $cobalvzrvxg = "selectedMenu";
             ${$cobalvzrvxg} = ${${"GLOBALS"}["vudrket"]}[${${"GLOBALS"}["eqokklolsqcb"]}];
         }
     } else {
         $frfeojj = "menuModels";
         ${"GLOBALS"}["kirejsifbjn"] = "firstKey";
         ${"GLOBALS"}["xvyegcduc"] = "menuModels";
         reset(${$frfeojj});
         ${${"GLOBALS"}["kirejsifbjn"]} = key(${${"GLOBALS"}["vudrket"]});
         ${${"GLOBALS"}["dtgdenwl"]} = ${${"GLOBALS"}["xvyegcduc"]}[${${"GLOBALS"}["huwihsvkqd"]}];
     }
     ${"GLOBALS"}["qgdtwlsolj"] = "loadOlderSettingUi";
     if (Settings_Vtiger_Index_View::${${"GLOBALS"}["qgdtwlsolj"]}) {
         ${"GLOBALS"}["sqbunecxxey"] = "request";
         $viewer->assign("UI5_URL", $this->transformToUI5URL(${${"GLOBALS"}["sqbunecxxey"]}));
     }
     ${"GLOBALS"}["nedhswmlptt"] = "statistic_to";
     ${${"GLOBALS"}["ccdsqkfkxf"]} = date("Y-m-d", strtotime("-4 weeks"));
     ${${"GLOBALS"}["upldfxvqfplw"]} = DateTimeField::convertToUserFormat(${${"GLOBALS"}["dgknvprams"]});
     $rtkhxxinhbff = "loadOlderSettingUi";
     $bbejdivxhvcs = "statistic_to_display";
     ${${"GLOBALS"}["resorwerwu"]} = date("Y-m-d", time());
     ${$yjiuuhydxkc} = DateTimeField::convertToUserFormat(${${"GLOBALS"}["resorwerwu"]});
     $viewer->assign("STATISTIC_FROM", ${${"GLOBALS"}["dgknvprams"]});
     $viewer->assign("STATISTIC_FROM_DISPLAY", ${${"GLOBALS"}["upldfxvqfplw"]});
     $viewer->assign("STATISTIC_TO", ${${"GLOBALS"}["nedhswmlptt"]});
     $viewer->assign("STATISTIC_TO_DISPLAY", ${$bbejdivxhvcs});
     $viewer->assign("SELECTED_FIELDID", ${${"GLOBALS"}["snijmuemcbip"]});
     $viewer->assign("SELECTED_MENU", ${${"GLOBALS"}["xckqeiy"]});
     $viewer->assign("SETTINGS_MENUS", ${${"GLOBALS"}["vudrket"]});
     $viewer->assign("MODULE", $this->moduleName);
     $viewer->assign("QUALIFIED_MODULE", $this->qualifiedModuleName);
     $viewer->assign("LOAD_OLD", Settings_Vtiger_Index_View::${$rtkhxxinhbff});
     $viewer->view("StatisticMenuStart.tpl", $this->qualifiedModuleName);
 }
开发者ID:cin-system,项目名称:vtigercrm-cin,代码行数:67,代码来源:Statistic.php

示例4: prepareMenuToDisplay

 public function prepareMenuToDisplay($menuModels, $moduleName, $selectedMenuId, $fieldId)
 {
     if (!empty($selectedMenuId)) {
         $selectedMenu = Settings_Vtiger_Menu_Model::getInstanceById($selectedMenuId);
     } elseif (!empty($moduleName) && $moduleName != 'Vtiger') {
         $fieldItem = Settings_Vtiger_Index_View::getSelectedFieldFromModule($menuModels, $moduleName);
         if ($fieldItem) {
             $selectedMenu = Settings_Vtiger_Menu_Model::getInstanceById($fieldItem->get('blockid'));
             $fieldId = $fieldItem->get('fieldid');
         } else {
             reset($menuModels);
             $firstKey = key($menuModels);
             $selectedMenu = $menuModels[$firstKey];
         }
     } else {
         $selectedMenu = false;
     }
     $menu = [];
     foreach ($menuModels as $blockId => $menuModel) {
         $childs = [];
         foreach ($menuModel->getMenuItems() as $menuItem) {
             $childs[] = ['id' => $menuItem->getId(), 'active' => $menuItem->getId() == $fieldId ? true : false, 'name' => $menuItem->get('name'), 'type' => 'Shortcut', 'sequence' => $menuModel->get('sequence'), 'newwindow' => '0', 'icon' => $menuItem->get('iconpath'), 'dataurl' => $menuItem->getUrl(), 'parent' => 'Settings', 'moduleName' => Vtiger_Menu_Model::getModuleNameFromUrl($menuItem->getUrl())];
         }
         $menu[] = ['id' => $blockId, 'active' => $selectedMenu && $selectedMenu->get('blockid') == $blockId ? true : false, 'name' => $menuModel->getLabel(), 'type' => 'Label', 'sequence' => $menuModel->get('sequence'), 'childs' => $childs, 'icon' => $menuModel->get('icon'), 'moduleName' => 'Settings::Vtiger'];
     }
     return $menu;
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:27,代码来源:Module.php


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