當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilSetting::delete方法代碼示例

本文整理匯總了PHP中ilSetting::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilSetting::delete方法的具體用法?PHP ilSetting::delete怎麽用?PHP ilSetting::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ilSetting的用法示例。


在下文中一共展示了ilSetting::delete方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ilSetting

    $https_header_enable = (bool) $ilSetting->get('ps_auto_https_enabled', false);
    $https_header_name = (string) $ilSetting->get('ps_auto_https_headername', "ILIAS_HTTPS_ENABLED");
    $https_header_value = (string) $ilSetting->get('ps_auto_https_headervalue', "1");
    if (!$ini->groupExists('https')) {
        $ini->addGroup('https');
    }
    $ini->setVariable("https", "auto_https_detect_enabled", !$https_header_enable ? 0 : 1);
    $ini->setVariable("https", "auto_https_detect_header_name", $https_header_name);
    $ini->setVariable("https", "auto_https_detect_header_value", $https_header_value);
    $ini->write();
}
?>
<#4344>
<?php 
$ilSetting = new ilSetting();
$ilSetting->delete('ps_auto_https_enabled');
$ilSetting->delete('ps_auto_https_headername');
$ilSetting->delete('ps_auto_https_headervalue');
?>
<#4345>
<?php 
$ilCtrlStructureReader->getStructure();
?>
<#4346>
<?php 
if (!$ilDB->tableColumnExists('tst_active', 'objective_container')) {
    $ilDB->addTableColumn('tst_active', 'objective_container', array('type' => 'integer', 'length' => 4, 'notnull' => false, 'default' => null));
}
?>
<#4347>
<?php 
開發者ID:bheyser,項目名稱:qplskl,代碼行數:31,代碼來源:dbupdate_04.php

示例2: array

if ($ilDB->tableColumnExists('svy_qst_sc', 'other_answer_label')) {
    $ilDB->dropTableColumn('svy_qst_sc', 'other_answer_label');
}
?>
<#2946>
<?php 
$ilDB->addIndex('svy_category', array('other'), 'i2');
?>
<#2947>
<?php 
$feed_set = new ilSetting('feed');
$pxy_host = $feed_set->get('proxy');
$pxy_port = $feed_set->get('proxy_port');
$setting = new ilSetting();
if (strlen($pxy_host) && strlen($pxy_port)) {
    $setting->set('proxy_host', $pxy_host);
    $setting->set('proxy_port', $pxy_port);
    $setting->set('proxy_status', 1);
} else {
    $setting->set('proxy_host', '');
    $setting->set('proxy_port', '');
    $setting->set('proxy_status', 0);
}
$feed_set->delete('proxy');
$feed_set->delete('proxy_port');
?>
<#2948>
<?php 
// FILE ENDS HERE, DO NOT ADD ANY ADDITIONAL STEPS
//
//         USE dbupdate_03.php INSTEAD
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:31,代碼來源:dbupdate_02.php

示例3: ilSetting

 /**
  * Set the manual scoring settings
  *
  * @param array $type_ids An array containing the database ids of the question types which could be scored manually
  */
 function _setManualScoring($type_ids)
 {
     $setting = new ilSetting("assessment");
     if (!is_array($type_ids) || count($type_ids) == 0) {
         $setting->delete("assessment_manual_scoring");
     } else {
         $setting->set("assessment_manual_scoring", implode($type_ids, ","));
     }
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:14,代碼來源:class.ilObjAssessmentFolder.php

示例4: deleteCertificate

 /**
  * Is called when the certificate is deleted
  * Add some adapter specific code if more work has to be done when the
  * certificate file was deleted
  */
 public function deleteCertificate()
 {
     global $ilSetting;
     $scormSetting = new ilSetting("scorm");
     $scormSetting->delete("certificate_" . $this->object->getId());
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:11,代碼來源:class.ilSCORMCertificateAdapter.php

示例5: ilSetting

$ilDB->dropTableColumn('usr_pref', 'value');
$ilDB->renameTableColumn('usr_pref', 'value2', 'value');
?>
<#4129>
<?php 
$ilCtrlStructureReader->getStructure();
?>
<#4130>
<?php 
$settings = new ilSetting();
$settings_captcha = new ilSetting('cptch');
if ((int) $settings->get('activate_captcha_anonym', 0)) {
    $settings_captcha->set('activate_captcha_anonym_frm', 1);
    $settings_captcha->set('activate_captcha_anonym_wiki', 1);
}
$settings->delete('activate_captcha_anonym');
?>
<#4131>
<?php 
if (!$ilDB->tableColumnExists("usr_data", "is_self_registered")) {
    $ilDB->addTableColumn("usr_data", "is_self_registered", array("type" => "integer", "notnull" => true, "default" => 0, "length" => 1));
}
?>
<#4132>
<?php 
include_once './Services/Migration/DBUpdate_3560/classes/class.ilDBUpdateNewObjectType.php';
ilDBUpdateNewObjectType::addAdminNode('wiks', 'Wiki Settings');
?>
<#4133>
<?php 
$ilCtrlStructureReader->getStructure();
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:31,代碼來源:dbupdate_03.php

示例6: setScoringAdjustableQuestions

 public static function setScoringAdjustableQuestions($type_ids)
 {
     $setting = new ilSetting("assessment");
     if (!is_array($type_ids) || count($type_ids) == 0) {
         $setting->delete("assessment_scoring_adjustment");
     } else {
         $setting->set("assessment_scoring_adjustment", implode($type_ids, ","));
     }
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:9,代碼來源:class.ilObjAssessmentFolder.php

示例7: ilSetting

<#3784>
<?php 
$ilCtrlStructureReader->getStructure();
?>
<#3785>
<?php 
$setting = new ilSetting();
$prevent_reuse = $setting->get('prevent_reuse_of_loginnames');
$new_setting = 1;
if (!$prevent_reuse) {
    $new_setting = 1;
} else {
    $new_setting = 0;
}
$setting->set('reuse_of_loginnames', $new_setting);
$setting->delete('prevent_reuse_of_loginnames');
?>
<#3786>
<?php 
if (!$ilDB->tableColumnExists('crs_settings', 'auto_notification')) {
    $ilDB->addTableColumn('crs_settings', 'auto_notification', array('type' => 'integer', 'length' => 1, 'notnull' => true, 'default' => 1));
}
$ilDB->update('crs_settings', array('auto_notification' => array('integer', 0)), array('auto_noti_disabled' => array('integer', 1)));
$ilDB->dropTableColumn('crs_settings', 'auto_noti_disabled');
?>
<#3787>
<?php 
$ilCtrlStructureReader->getStructure();
?>
<#3788>
<?php 
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:31,代碼來源:dbupdate_03.php


注:本文中的ilSetting::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。