DirectorObjectForm: new helper method hasObject()

This commit is contained in:
Thomas Gelf 2015-11-02 09:24:58 +01:00
parent f90f70894a
commit b7cd26b597
1 changed files with 5 additions and 0 deletions

View File

@ -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;