From b422d1a3dc02374a34da7ad91415c0a78ea46f9d Mon Sep 17 00:00:00 2001 From: dedeibel Date: Sat, 16 Dec 2017 21:13:08 +0100 Subject: Added feature for unlisted conferences --- model/Conference.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'model/Conference.php') diff --git a/model/Conference.php b/model/Conference.php index 0ce0a55..099e3ce 100644 --- a/model/Conference.php +++ b/model/Conference.php @@ -102,6 +102,16 @@ class Conference extends ModelBase } } + public function isUnlisted() { + if ($this->has('CONFERENCE.UNLISTED')) { + $unlisted = $this->get('CONFERENCE.UNLISTED'); + return $unlisted === true; + } + else { + return false; + } + } + public function hasAuthor() { return $this->has('CONFERENCE.AUTHOR'); } -- cgit v1.2.3