More minor clean-ups.

8.0.x
sun 2012-01-08 02:49:32 +01:00
parent e312880573
commit d179538aba
1 changed files with 16 additions and 16 deletions

View File

@ -522,7 +522,7 @@ class DrupalConfig {
}
/**
* Read config data from the active store into our object.
* Reads config data from the active store into our object.
*/
public function read() {
$active = (array) config_decode($this->_verifiedStorage->read());
@ -539,7 +539,20 @@ class DrupalConfig {
}
/**
* Set value in this config object.
* Gets value in this config object.
*/
public function get($key) {
$parts = explode('.', $key);
if (count($parts) == 1) {
return isset($this->data[$key]) ? $this->data[$key] : NULL;
}
else {
return drupal_array_get_nested_value($this->data, $parts);
}
}
/**
* Sets value in this config object.
*/
public function set($key, $value) {
$parts = explode('.', $key);
@ -552,7 +565,7 @@ class DrupalConfig {
}
/**
* Unset value in this config object.
* Unsets value in this config object.
*/
public function clear($key) {
$parts = explode('.', $key);
@ -564,19 +577,6 @@ class DrupalConfig {
}
}
/**
* Get value in this config object.
*/
public function get($key) {
$parts = explode('.', $key);
if (count($parts) == 1) {
return $this->data[$key];
}
else {
return drupal_array_get_nested_value($this->data, $parts);
}
}
/**
* Saves the configuration object to disk as XML.
*/