diff options
author | Malf Furious <m@lfurio.us> | 2018-10-20 21:55:53 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-10-20 21:55:53 -0400 |
commit | 792e741899cc895651e7b12a38b688c1da6406db (patch) | |
tree | eff1afbe6322eb31aa5074e570c20c2cdf7f4b93 /app/class | |
parent | b690505b0e1e255e5081adcf49c724186bb831c2 (diff) | |
download | scrott-792e741899cc895651e7b12a38b688c1da6406db.tar.gz scrott-792e741899cc895651e7b12a38b688c1da6406db.zip |
issue: Add function isOpen()
Diffstat (limited to '')
-rw-r--r-- | app/class/issue.class.php | 8 |
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"; + } } ?> |