1.20.x config.inc | public Config::load() |
Loads configuration data into this object.
Return value
Config: The configuration object.
File
- includes/
config.inc, line 986 - This is the API for configuration storage.
Class
- Config
- Defines the default configuration object.
Code
public function load() {
$this->isLoaded = FALSE;
$data = $this->storage->read($this->name);
if ($data === FALSE) {
$this->isNew = TRUE;
$this->replaceData(array());
}
else {
$this->isNew = FALSE;
$this->replaceData($data);
}
$this->isLoaded = TRUE;
return $this;
}