From ea4b6c7699a7fbb7be3d9e5ce86c84a36b63f569 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 15 Mar 2015 19:13:25 +0100 Subject: 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 --- model/Conference.php | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 model/Conference.php (limited to 'model/Conference.php') 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 @@ +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/'; + } +} -- cgit v1.2.3