DirectorObjectForm: new helper method hasObject()
This commit is contained in:
parent
f90f70894a
commit
b7cd26b597
|
@ -454,6 +454,11 @@ abstract class DirectorObjectForm extends QuickForm
|
|||
return $this->object;
|
||||
}
|
||||
|
||||
public function hasObject()
|
||||
{
|
||||
return $this->object !== null;
|
||||
}
|
||||
|
||||
public function setObject(IcingaObject $object)
|
||||
{
|
||||
$this->object = $object;
|
||||
|
|
Loading…
Reference in New Issue