aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authordedeibel2017-12-16 21:13:08 +0100
committerdedeibel2017-12-16 21:13:08 +0100
commitb422d1a3dc02374a34da7ad91415c0a78ea46f9d (patch)
tree3105911c0bb75051f576e9c43ece28c145db5a60 /model
parentc6d44125911ad770726f83cc4a6b971b661e02e2 (diff)
Added feature for unlisted conferences
Diffstat (limited to 'model')
-rw-r--r--model/Conference.php10
-rw-r--r--model/Conferences.php2
2 files changed, 11 insertions, 1 deletions
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');
}
diff --git a/model/Conferences.php b/model/Conferences.php
index 575759e..1e982b4 100644
--- a/model/Conferences.php
+++ b/model/Conferences.php
@@ -35,7 +35,7 @@ class Conferences
return array_values(array_filter(
Conferences::getConferencesSorted(),
function($conference) {
- return !$conference->isClosed();
+ return !$conference->isClosed() && !$conference->isUnlisted();
}
));
}