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


PHP ConfigManager::save方法代碼示例

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


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

示例1: save

 /**
  * Saves the configuration in the database. Has it become persistent.
  */
 public static function save()
 {
     ConfigManager::save('kernel', self::load(), 'content-formatting');
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:7,代碼來源:ContentFormattingConfig.class.php

示例2: save

 /**
  * Saves the configuration in the database.
  */
 public static function save()
 {
     ConfigManager::save('kernel', self::load(), 'customization-config');
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:7,代碼來源:CustomizationConfig.class.php

示例3: dirname

<?php

require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/includes/ConfigManager.php';
//require_once $pluginManager->getController('configeditor');
$configEditor = new ConfigManager(dirname(dirname(dirname(dirname(__FILE__)))) . '/config.php');
$config = $configEditor->loadConfig();
if (!empty($_POST)) {
    foreach ($_POST as $key => $value) {
        $configEditor->setValue($key, $value);
    }
    $configEditor->save();
    $jUI->setWarning('Eingaben gespeichert.');
}
$jUI->add(new JUI\Heading("Konfigurations-Editor"));
$table = new JUI\Table();
foreach ($config as $key => $value) {
    $keyText = new JUI\Text($key);
    $keyText->setAppearance(JUI\Text::BOLD);
    $keyDescription = new JUI\Text($value['description']);
    $keyDescription->setAppearance(JUI\Text::ITALIC);
    $keyColumn = new JUI\Table\Column();
    $keyColumn->add($keyText);
    $keyColumn->add($keyDescription);
    $row = new JUI\Table\Row();
    $row->addColumn($keyColumn);
    if ($value['type'] == "STRING") {
        $view = new JUI\Input($key);
        $view->setValue($value['value']);
    } else {
        if ($value['type'] == "INTEGER") {
            $view = new JUI\Input($key);
開發者ID:michaelsoftware1997,項目名稱:vision-server,代碼行數:31,代碼來源:config.php

示例4: save

 /**
  * @method Saves the bugtracker configuration in the database. It becomes persistent.
  */
 public static function save()
 {
     ConfigManager::save('bugtracker', self::load(), 'config');
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:7,代碼來源:BugtrackerConfig.class.php

示例5: save

 /**
  * @method Saves the calendar configuration in the database. It becomes persistent.
  */
 public static function save()
 {
     ConfigManager::save('calendar', self::load(), 'config');
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:7,代碼來源:CalendarConfig.class.php

示例6: save

 /**
  * Saves the configuration
  */
 public static function save()
 {
     ConfigManager::save('kernel', self::load(), 'writing-pad');
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:7,代碼來源:WritingPadConfig.class.php

示例7: save

 /**
  * Saves the guestbook configuration in the database. Has it become persistent.
  */
 public static function save()
 {
     ConfigManager::save('guestbook', self::load(), 'config');
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:7,代碼來源:GuestbookConfig.class.php

示例8: save

 /**
  * Invalidates the current themes cached data.
  */
 public static function save()
 {
     ConfigManager::save('kernel', self::load(), 'themes');
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:7,代碼來源:ThemesConfig.class.php


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