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


PHP CRM_Admin_Form_Setting::rebuildMenu方法代码示例

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


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

示例1: postProcess

 public function postProcess()
 {
     // if extensions url is set, lets clear session status messages to avoid
     // a potentially spurious message which might already have been set. This
     // is a bit hackish
     // CRM-10629
     $session = CRM_Core_Session::singleton();
     $session->getStatus(TRUE);
     parent::postProcess();
     parent::rebuildMenu();
 }
开发者ID:hguru,项目名称:224Civi,代码行数:11,代码来源:Url.php

示例2: postProcess

 public function postProcess()
 {
     if (!empty($_POST['_qf_UpdateConfigBackend_next_cleanup'])) {
         $config = CRM_Core_Config::singleton();
         // cleanup templates_c directory
         $config->cleanup(1, FALSE);
         // clear all caches
         CRM_Core_Config::clearDBCache();
         CRM_Utils_System::flushCache();
         parent::rebuildMenu();
         CRM_Core_BAO_WordReplacement::rebuild();
         CRM_Core_Session::setStatus(ts('Cache has been cleared and menu has been rebuilt successfully.'), ts("Success"), "success");
     }
     if (!empty($_POST['_qf_UpdateConfigBackend_next_resetpaths'])) {
         $msg = CRM_Core_BAO_ConfigSetting::doSiteMove();
         CRM_Core_Session::setStatus($msg, ts("Success"), "success");
     }
     return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/setting/updateConfigBackend', 'reset=1'));
 }
开发者ID:FundingWorks,项目名称:civicrm-core,代码行数:19,代码来源:UpdateConfigBackend.php

示例3: postProcess

 function postProcess()
 {
     // redirect to admin page after saving
     $session =& CRM_Core_Session::singleton();
     $session->pushUserContext(CRM_Utils_System::url('civicrm/admin'));
     $params = $this->controller->exportValues($this->_name);
     //CRM-5679
     foreach ($params as $name => &$val) {
         if ($val && in_array($name, array('newBaseURL', 'newBaseDir', 'newSiteName'))) {
             $val = CRM_Utils_File::addTrailingSlash($val);
         }
     }
     $from = array($this->_oldBaseURL, $this->_oldBaseDir);
     $to = array(trim($params['newBaseURL']), trim($params['newBaseDir']));
     if ($this->_oldSiteName && $params['newSiteName']) {
         $from[] = $this->_oldSiteName;
         $to[] = $params['newSiteName'];
     }
     $newValues = str_replace($from, $to, $this->_defaults);
     parent::commonProcess($newValues);
     parent::rebuildMenu();
 }
开发者ID:bhirsch,项目名称:voipdev,代码行数:22,代码来源:UpdateConfigBackend.php

示例4: postProcess

 public function postProcess()
 {
     parent::postProcess();
     parent::rebuildMenu();
 }
开发者ID:nganivet,项目名称:civicrm-core,代码行数:5,代码来源:Path.php

示例5: postProcess

 function postProcess()
 {
     if (!empty($_POST['_qf_UpdateConfigBackend_next_cleanup'])) {
         $config = CRM_Core_Config::singleton();
         // cleanup templates_c directory
         $config->cleanup(1, FALSE);
         // clear db caching
         CRM_Core_Config::clearDBCache();
         parent::rebuildMenu();
         CRM_Core_BAO_WordReplacement::rebuild();
         CRM_Core_Session::setStatus(ts('Cache has been cleared and menu has been rebuilt successfully.'), ts("Success"), "success");
         return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/setting/updateConfigBackend', 'reset=1'));
     }
     // redirect to admin page after saving
     $session = CRM_Core_Session::singleton();
     $session->pushUserContext(CRM_Utils_System::url('civicrm/admin'));
     $params = $this->controller->exportValues($this->_name);
     //CRM-5679
     foreach ($params as $name => &$val) {
         if ($val && in_array($name, array('newBaseURL', 'newBaseDir', 'newSiteName'))) {
             $val = CRM_Utils_File::addTrailingSlash($val);
         }
     }
     $from = array($this->_oldBaseURL, $this->_oldBaseDir);
     $to = array(trim($params['newBaseURL']), trim($params['newBaseDir']));
     if ($this->_oldSiteName && $params['newSiteName']) {
         $from[] = $this->_oldSiteName;
         $to[] = $params['newSiteName'];
     }
     $newValues = str_replace($from, $to, $this->_defaults);
     parent::commonProcess($newValues);
     parent::rebuildMenu();
 }
开发者ID:archcidburnziso,项目名称:civicrm-core,代码行数:33,代码来源:UpdateConfigBackend.php

示例6: postProcess

 function postProcess()
 {
     // redirect to admin page after saving
     $session =& CRM_Core_Session::singleton();
     $session->pushUserContext(CRM_Utils_System::url('civicrm/admin'));
     $params = $this->controller->exportValues($this->_name);
     $newValues = str_replace(array($this->_oldBaseURL, $this->_oldBaseDir), array(trim($params['newBaseURL']), trim($params['newBaseDir'])), $this->_defaults);
     parent::commonProcess($newValues);
     parent::rebuildMenu();
 }
开发者ID:ksecor,项目名称:civicrm,代码行数:10,代码来源:UpdateConfigBackend.php


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