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


PHP Settings_Vtiger_Index_View类代码示例

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


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

示例1: postProcess

 public function postProcess(Vtiger_Request $request)
 {
     $currentUserModel = Users_Record_Model::getCurrentUserModel();
     if ($currentUserModel->isAdminUser()) {
         $settingsIndexView = new Settings_Vtiger_Index_View();
         $settingsIndexView->postProcessSettings($request);
     }
     parent::postProcess($request);
 }
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:9,代码来源:Index.php

示例2: 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

示例3: getFooterScripts

 /**
  * Function to get the list of Script models to be included
  * @param Vtiger_Request $request
  * @return <Array> - List of Vtiger_JsScript_Model instances
  */
 function getFooterScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getFooterScripts($request);
     $jsFileNames = array('layouts.vlayout.modules.OSSPasswords.resources.general');
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($jsScriptInstances, $headerScriptInstances);
     return $headerScriptInstances;
 }
开发者ID:rcrrich,项目名称:YetiForceCRM,代码行数:13,代码来源:ConfigurePass.php

示例4: getHeaderCss

 public function getHeaderCss(Vtiger_Request $request)
 {
     $headerCssInstances = parent::getHeaderCss($request);
     $cssFileNames = array("~/layouts/vlayout/modules/Settings/LangManagement/LangManagement.css", "~/libraries/jquery/datatables/media/css/jquery.dataTables_themeroller.css", "~/libraries/jquery/datatables/plugins/integration/bootstrap/3/dataTables.bootstrap.css");
     $cssInstances = $this->checkAndConvertCssStyles($cssFileNames);
     $headerCssInstances = array_merge($headerCssInstances, $cssInstances);
     return $headerCssInstances;
 }
开发者ID:JeRRimix,项目名称:YetiForceCRM,代码行数:8,代码来源:Index.php

示例5: getHeaderCss

 function getHeaderCss(Vtiger_Request $request)
 {
     $headerCssInstances = parent::getHeaderCss($request);
     $moduleName = $request->getModule();
     $cssFileNames = ["modules.Settings.{$moduleName}.Import"];
     $cssInstances = $this->checkAndConvertCssStyles($cssFileNames);
     return array_merge($cssInstances, $headerCssInstances);
 }
开发者ID:reeid,项目名称:YetiForceCRM,代码行数:8,代码来源:Import.php

示例6: getFooterScripts

 /**
  * Function to get the list of Script models to be included
  * @param Vtiger_Request $request
  * @return <Array> - List of Vtiger_JsScript_Model instances
  */
 function getFooterScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getFooterScripts($request);
     $jsFileNames = ['modules.Settings.OSSPdf.general'];
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
开发者ID:yozhi,项目名称:YetiForceCRM,代码行数:13,代码来源:Index.php

示例7: getHeaderCss

 public function getHeaderCss(Vtiger_Request $request)
 {
     $headerCssInstances = parent::getHeaderCss($request);
     $cssFileNames = array('~/libraries/jquery/malihu-custom-scrollbar/css/jquery.mCustomScrollbar.css');
     $cssInstances = $this->checkAndConvertCssStyles($cssFileNames);
     $headerCssInstances = array_merge($headerCssInstances, $cssInstances);
     return $headerCssInstances;
 }
开发者ID:JeRRimix,项目名称:YetiForceCRM,代码行数:8,代码来源:Edit.php

示例8: checkPermission

 public function checkPermission(Vtiger_Request $request)
 {
     parent::checkPermission($request);
     $recordId = $request->get('record');
     if (!$recordId) {
         throw new AppException(vtranslate('LBL_PERMISSION_DENIED', 'Vtiger'));
     }
 }
开发者ID:nouphet,项目名称:vtigercrm-6.0.0-ja,代码行数:8,代码来源:RulesList.php

示例9: getHeaderCss

 public function getHeaderCss(Vtiger_Request $request)
 {
     $headerCssInstances = parent::getHeaderCss($request);
     $cssFileNames = ['~libraries/jquery/datatables/media/css/jquery.dataTables_themeroller.css', '~libraries/jquery/datatables/plugins/integration/bootstrap/3/dataTables.bootstrap.css', '~libraries/jquery/flot/jquery.flot.valuelabels.css', 'modules.Settings.LangManagement.LangManagement'];
     $cssInstances = $this->checkAndConvertCssStyles($cssFileNames);
     $headerCssInstances = array_merge($headerCssInstances, $cssInstances);
     return $headerCssInstances;
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:8,代码来源:Index.php

示例10: getHeaderScripts

 /**
  * Function to get the list of Script models to be included
  * @param Vtiger_Request $request
  * @return <Array> - List of Vtiger_JsScript_Model instances
  */
 function getHeaderScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderScripts($request);
     $moduleName = $request->getModule();
     $jsFileNames = array("modules.Settings.Vtiger.resources.CustomRecordNumbering");
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
开发者ID:gitter-badger,项目名称:openshift-salesplatform,代码行数:14,代码来源:CustomRecordNumbering.php

示例11: getHeaderCss

 function getHeaderCss(Vtiger_Request $request)
 {
     $headerCssInstances = parent::getHeaderCss($request);
     $moduleName = $request->getModule();
     $cssFileNames = array('~libraries/jquery/jstree/themes/proton/style.css');
     $cssInstances = $this->checkAndConvertCssStyles($cssFileNames);
     $headerCssInstances = array_merge($cssInstances, $headerCssInstances);
     return $headerCssInstances;
 }
开发者ID:reeid,项目名称:YetiForceCRM,代码行数:9,代码来源:Edit.php

示例12: getFooterScripts

 public function getFooterScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getFooterScripts($request);
     $moduleName = $request->getModule();
     $jsFileNames = ['modules.Settings.Vtiger.resources.Edit', "modules.Settings.{$moduleName}.resources.Edit", "modules.Settings.{$moduleName}.resources.Edit1", "modules.Settings.{$moduleName}.resources.Edit2", "modules.Settings.{$moduleName}.resources.Edit3", "modules.Settings.{$moduleName}.resources.Edit4", 'modules.Vtiger.resources.AdvanceFilter', 'modules.Vtiger.resources.AdvanceFilterEx'];
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:9,代码来源:Edit.php

示例13: getHeaderCss

 function getHeaderCss(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderCss($request);
     $moduleName = $request->getModule();
     $cssFileNames = array();
     $cssScriptInstances = $this->checkAndConvertCssStyles($cssFileNames);
     $headerStyleInstances = array_merge($headerScriptInstances, $cssScriptInstances);
     return $headerStyleInstances;
 }
开发者ID:Neodracir,项目名称:VtigerCRM-Tools,代码行数:9,代码来源:Example.php

示例14: getFooterScripts

 public function getFooterScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getFooterScripts($request);
     $moduleName = $request->getModule();
     $jsFileNames = array("modules.Settings.{$moduleName}.resources.Index", "modules.Settings.Leads.resources.LeadMapping");
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:9,代码来源:Index.php

示例15: getHeaderScripts

 /**
  * Function to get the list of Script models to be included
  * @param Vtiger_Request $request
  * @return <Array> - List of Vtiger_JsScript_Model instances
  */
 function getHeaderScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderScripts($request);
     $moduleName = $request->getModule();
     $jsFileNames = array("modules.Settings.{$moduleName}.resources.Field", "modules.Settings.{$moduleName}.resources.Edit");
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
开发者ID:nouphet,项目名称:vtigercrm-6.0.0-ja,代码行数:14,代码来源:Edit.php


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