本文整理匯總了PHP中ilSetting::_changeValueType方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilSetting::_changeValueType方法的具體用法?PHP ilSetting::_changeValueType怎麽用?PHP ilSetting::_changeValueType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ilSetting
的用法示例。
在下文中一共展示了ilSetting::_changeValueType方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: changeSettingsType
/**
* change the type of the value field in settings table
*/
function changeSettingsType()
{
include_once "./Services/Administration/classes/class.ilSetting.php";
$old_type = ilSetting::_getValueType();
if ($old_type == "clob") {
$longer_settings = ilSetting::_getLongerSettings();
if (count($longer_settings)) {
$this->longer_settings = $longer_settings;
ilUtil::sendFailure($this->lng->txt("settings_too_long"));
} else {
$changed = ilSetting::_changeValueType('text');
}
} else {
$changed = ilSetting::_changeValueType('clob');
}
if ($changed) {
ilUtil::sendInfo($this->lng->txt("settings_type_changed"));
}
$this->displayTools();
}