当前位置: 首页>>代码示例>>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;未经允许,请勿转载。