本文整理汇总了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');
}
示例2: save
/**
* Saves the configuration in the database.
*/
public static function save()
{
ConfigManager::save('kernel', self::load(), 'customization-config');
}
示例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);
示例4: save
/**
* @method Saves the bugtracker configuration in the database. It becomes persistent.
*/
public static function save()
{
ConfigManager::save('bugtracker', self::load(), 'config');
}
示例5: save
/**
* @method Saves the calendar configuration in the database. It becomes persistent.
*/
public static function save()
{
ConfigManager::save('calendar', self::load(), 'config');
}
示例6: save
/**
* Saves the configuration
*/
public static function save()
{
ConfigManager::save('kernel', self::load(), 'writing-pad');
}
示例7: save
/**
* Saves the guestbook configuration in the database. Has it become persistent.
*/
public static function save()
{
ConfigManager::save('guestbook', self::load(), 'config');
}
示例8: save
/**
* Invalidates the current themes cached data.
*/
public static function save()
{
ConfigManager::save('kernel', self::load(), 'themes');
}