From 792e741899cc895651e7b12a38b688c1da6406db Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 20 Oct 2018 21:55:53 -0400 Subject: issue: Add function isOpen() --- app/class/issue.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/class') diff --git a/app/class/issue.class.php b/app/class/issue.class.php index 57fc588..0fc12e4 100644 --- a/app/class/issue.class.php +++ b/app/class/issue.class.php @@ -183,6 +183,14 @@ class issue extends obj $this->setParent($pad); } } + + /* + * Check whether issue is currently open or closed. + */ + public function isOpen() : bool + { + return self::typeOf($this->parent) != "pad"; + } } ?> -- cgit v1.2.3