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


PHP CRM_Admin_Form_Setting::postProcess方法代码示例

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


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

示例1: postProcess

 public function postProcess()
 {
     parent::postProcess();
     // handle logging
     // FIXME: do it only if the setting changed
     require_once 'CRM/Logging/Schema.php';
     $values = $this->exportValues();
     $logging = new CRM_Logging_Schema();
     $values['logging'] ? $logging->enableLogging() : $logging->disableLogging();
 }
开发者ID:hampelm,项目名称:Ginsberg-CiviDemo,代码行数:10,代码来源:Miscellaneous.php

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

示例3: postProcess

 public function postProcess()
 {
     $values = $this->exportValues();
     // store settings
     $expected_values = array('hh_mode', 'hh_head_mode', 'hh_member_relation', 'hh_head_relation');
     foreach ($expected_values as $key) {
         if (isset($values[$key])) {
             CRM_Householdmerge_Logic_Configuration::setConfigValue($key, $values[$key]);
         }
     }
     parent::postProcess();
 }
开发者ID:systopia,项目名称:de.systopia.householdmerge,代码行数:12,代码来源:Household.php

示例4: postProcess

 public function postProcess()
 {
     // store the submitted values in an array
     $params = $this->controller->exportValues($this->_name);
     // get current logging status
     $values = $this->exportValues();
     parent::postProcess();
     $config = CRM_Core_Config::singleton();
     if ($config->logging != $values['logging']) {
         $logging = new CRM_Logging_Schema();
         if ($values['logging']) {
             $config->logging = TRUE;
             $logging->enableLogging();
         } else {
             $config->logging = FALSE;
             $logging->disableLogging();
         }
     }
 }
开发者ID:peteainsworth,项目名称:civicrm-4.2.9-drupal,代码行数:19,代码来源:Miscellaneous.php

示例5: postProcess

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

示例6: postProcess

 public function postProcess()
 {
     // store the submitted values in an array
     $config = CRM_Core_Config::singleton();
     $params = $this->controller->exportValues($this->_name);
     // update upload max size in DB
     $params['maxImportFileSize'] = CRM_Core_Config_Defaults::formatUnitSize(ini_get('upload_max_filesize'));
     CRM_Core_BAO_ConfigSetting::create($params);
     // get current logging status
     $values = $this->exportValues();
     parent::postProcess();
     if ($config->logging != $values['logging']) {
         $logging = new CRM_Logging_Schema();
         if ($values['logging']) {
             $logging->enableLogging();
         } else {
             $logging->disableLogging();
         }
     }
 }
开发者ID:prashantgajare,项目名称:civicrm-core,代码行数:20,代码来源:Miscellaneous.php


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