public function Configuration::fromObject in Configuration Management 7.3
File
- src/
Configuration.php, line 209
Class
- Configuration
- A generic configuration of the site.
Namespace
ConfigurationCode
public function fromObject($object) {
$this
->setIdentifier($object->identifier);
$this
->setNotes($object->notes);
$this
->setTags($object->tags);
$dependencies = array();
foreach ($object->dependencies as $dependency) {
$dependencies[$dependency] = TRUE;
}
$this
->setDependencies($dependencies);
$parts = array();
foreach ($object->parts as $part) {
$parts[$part] = TRUE;
}
$this
->setParts($parts);
$modules = array();
foreach ($object->modules as $module) {
$modules[$module] = TRUE;
}
$this
->setModules($modules);
$this
->setData($object->data);
}