本文整理匯總了PHP中CRM_Admin_Form_Setting::setDefaultValues方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRM_Admin_Form_Setting::setDefaultValues方法的具體用法?PHP CRM_Admin_Form_Setting::setDefaultValues怎麽用?PHP CRM_Admin_Form_Setting::setDefaultValues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CRM_Admin_Form_Setting
的用法示例。
在下文中一共展示了CRM_Admin_Form_Setting::setDefaultValues方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setDefaultValues
public function setDefaultValues()
{
$defaults = parent::setDefaultValues();
$defaults['selected_profile'] = 'Default';
$defaults['pdfinfo_path'] = CRM_Donrec_Logic_Settings::get('donrec_pdfinfo_path');
$defaults['packet_size'] = CRM_Donrec_Logic_Settings::get('donrec_packet_size');
return $defaults;
}
示例2: setDefaultValues
function setDefaultValues()
{
if (!$this->_defaults) {
parent::setDefaultValues();
$config =& CRM_Core_Config::singleton();
list($this->_defaults['newBaseURL'], $this->_defaults['newBaseDir'], $this->_defaults['newSiteName']) = CRM_Core_BAO_Setting::getBestGuessSettings();
}
return $this->_defaults;
}
示例3: setDefaultValues
function setDefaultValues()
{
if (!$this->_defaults) {
parent::setDefaultValues();
$this->_defaults['newBaseURL'] = $this->_oldBaseURL;
$this->_defaults['newBaseDir'] = $this->_oldBaseDir;
}
return $this->_defaults;
}
示例4: setDefaultValues
public function setDefaultValues()
{
parent::setDefaultValues();
// CRM-1496
// retrieve default values for currencyLimit
$this->_defaults['currencyLimit'] = array_keys(CRM_Core_OptionGroup::values('currencies_enabled'));
$this->_defaults['languageLimit'] = Civi::settings()->get('languageLimit');
// CRM-5111: unset these two unconditionally, we don’t want them to stick – ever
unset($this->_defaults['makeMultilingual']);
unset($this->_defaults['makeSinglelingual']);
return $this->_defaults;
}
示例5: setDefaultValues
function setDefaultValues()
{
parent::setDefaultValues();
$this->_defaults['checksumTimeout'] = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'checksum_timeout', NULL, 7);
return $this->_defaults;
}
示例6: setDefaultValues
function setDefaultValues()
{
parent::setDefaultValues();
// CRM-5111: unset these two unconditionally, we don’t want them to stick – ever
unset($this->_defaults['makeMultilingual']);
unset($this->_defaults['makeSinglelingual']);
return $this->_defaults;
}