summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-10-20 21:55:53 -0400
committerMalf Furious <m@lfurio.us>2018-10-20 21:55:53 -0400
commit792e741899cc895651e7b12a38b688c1da6406db (patch)
treeeff1afbe6322eb31aa5074e570c20c2cdf7f4b93 /app/class
parentb690505b0e1e255e5081adcf49c724186bb831c2 (diff)
downloadscrott-792e741899cc895651e7b12a38b688c1da6406db.tar.gz
scrott-792e741899cc895651e7b12a38b688c1da6406db.zip
issue: Add function isOpen()
Diffstat (limited to '')
-rw-r--r--app/class/issue.class.php8
1 files changed, 8 insertions, 0 deletions
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";
+ }
}
?>