DirectorObjectForm: new helper method hasObject()

This commit is contained in:
Thomas Gelf 2015-11-02 09:24:58 +01:00
parent f90f70894a
commit b7cd26b597

View File

@ -454,6 +454,11 @@ abstract class DirectorObjectForm extends QuickForm
return $this->object; return $this->object;
} }
public function hasObject()
{
return $this->object !== null;
}
public function setObject(IcingaObject $object) public function setObject(IcingaObject $object)
{ {
$this->object = $object; $this->object = $object;