當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。