From b7cd26b5977548602c3b1b45c3d2753d487fa116 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 2 Nov 2015 09:24:58 +0100 Subject: [PATCH] DirectorObjectForm: new helper method hasObject() --- library/Director/Web/Form/DirectorObjectForm.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index af245635..61a52442 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -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;