aboutsummaryrefslogtreecommitdiff
path: root/model/Conference.php
diff options
context:
space:
mode:
authorMaZderMind2015-03-15 19:13:25 +0100
committerMaZderMind2015-03-29 21:42:01 +0200
commitea4b6c7699a7fbb7be3d9e5ce86c84a36b63f569 (patch)
treec919029a8b12e43c363b898a1ff9f7adf5c3312b /model/Conference.php
parent97fe6bf0af2989abbaaba138df3c54c4e55af3c9 (diff)
Move get/set-Calls into ModelBase and abstract all access into a Model
Conflicts: model/Overview.php model/Room.php model/StreamList.php tests/ModelTestbase.php
Diffstat (limited to '')
-rw-r--r--model/Conference.php70
1 files changed, 70 insertions, 0 deletions
diff --git a/model/Conference.php b/model/Conference.php
new file mode 100644
index 0000000..6753c0c
--- /dev/null
+++ b/model/Conference.php
@@ -0,0 +1,70 @@
+<?php
+
+class Conference extends ModelBase
+{
+ public function getTitle() {
+ return $this->get('CONFERENCE.TITLE', 'C3Voc Streaming');
+ }
+
+ public function hasAuthor() {
+ return $this->has('CONFERENCE.AUTHOR');
+ }
+ public function getAuthor() {
+ return $this->get('CONFERENCE.AUTHOR', '');
+ }
+
+ public function hasDescription() {
+ return $this->has('CONFERENCE.DESCRIPTION');
+ }
+ public function getDescription() {
+ return $this->get('CONFERENCE.DESCRIPTION', '');
+ }
+
+ public function hasKeywords() {
+ return $this->has('CONFERENCE.KEYWORDS');
+ }
+ public function getKeywords() {
+ return $this->get('CONFERENCE.KEYWORDS', '');
+ }
+
+
+
+ public function hasReleases() {
+ return $this->has('CONFERENCE.RELEASES');
+ }
+ public function getReleasesUrl() {
+ return $this->get('CONFERENCE.RELEASES');
+ }
+
+ public function hasRelive() {
+ return $this->has('CONFERENCE.RELIVE') || $this->has('CONFERENCE.RELIVE_JSON');
+ }
+ public function getReliveUrl() {
+ if($this->has('CONFERENCE.RELIVE'))
+ return $this->get('CONFERENCE.RELIVE');
+
+ elseif($this->has('CONFERENCE.RELIVE_JSON'))
+ return 'relive/';
+
+ else
+ return null;
+ }
+
+ public function hasBannerHtml() {
+ return $this->has('CONFERENCE.BANNER_HTML');
+ }
+ public function getBannerHtml() {
+ return $this->get('CONFERENCE.BANNER_HTML');
+ }
+
+ public function hasFooterHtml() {
+ return $this->has('CONFERENCE.FOOTER_HTML');
+ }
+ public function getFooterHtml() {
+ return $this->get('CONFERENCE.FOOTER_HTML');
+ }
+
+ public function getAboutUrl() {
+ return 'about/';
+ }
+}