本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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'));
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}