aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
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();
}
));
}