本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
}
}
示例5: postProcess
public function postProcess()
{
parent::postProcess();
parent::rebuildMenu();
}
示例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();
}
}
}