本文整理汇总了PHP中ConfService::getBootConfStorageImpl方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfService::getBootConfStorageImpl方法的具体用法?PHP ConfService::getBootConfStorageImpl怎么用?PHP ConfService::getBootConfStorageImpl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfService
的用法示例。
在下文中一共展示了ConfService::getBootConfStorageImpl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: savePluginConfig
/**
* Intercept CONF and AUTH configs to use the BootConf Storage
* @param String $pluginId
* @param String $options
*/
public function savePluginConfig($pluginId, $options)
{
if ($this->pluginUsesBootConf($pluginId)) {
ConfService::getBootConfStorageImpl()->_savePluginConfig($pluginId, $options);
} else {
$this->_savePluginConfig($pluginId, $options);
}
}
示例2: cleanDibiDriverParameters
public static function cleanDibiDriverParameters($params)
{
if (!is_array($params)) {
return $params;
}
$value = $params["group_switch_value"];
if (isset($value)) {
if (isset(self::$_dibiParamClean[$value])) {
return self::$_dibiParamClean[$value];
}
if ($value == "core") {
$bootStorage = ConfService::getBootConfStorageImpl();
$configs = $bootStorage->loadPluginConfig("core", "conf");
$params = $configs["DIBI_PRECONFIGURATION"];
if (!is_array($params)) {
throw new Exception("Empty SQL default connexion, there is something wrong with your setup! You may have switch to an SQL-based plugin without defining a connexion.");
}
} else {
unset($params["group_switch_value"]);
}
foreach ($params as $k => $v) {
$explode = explode("_", $k, 2);
$params[array_pop($explode)] = AJXP_VarsFilter::filter($v);
unset($params[$k]);
}
}
switch ($params["driver"]) {
case "sqlite":
case "sqlite3":
$params["formatDateTime"] = "'Y-m-d H:i:s'";
$params["formatDate"] = "'Y-m-d'";
break;
}
if (isset($value)) {
self::$_dibiParamClean[$value] = $params;
}
return $params;
}