mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
DirectorObjectForm: allow to set object externally
This commit is contained in:
parent
44013eec42
commit
02daf8b97a
@ -372,6 +372,16 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
return $this->object;
|
return $this->object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setObject(IcingaObject $object)
|
||||||
|
{
|
||||||
|
$this->object = $object;
|
||||||
|
if ($this->db === null) {
|
||||||
|
$this->setDb($db);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
protected function getObjectClassname()
|
protected function getObjectClassname()
|
||||||
{
|
{
|
||||||
if ($this->className === null) {
|
if ($this->className === null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user