diff options
author | MaZderMind | 2016-12-10 18:26:10 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-10 18:26:10 +0100 |
commit | 51ee8234fa7d8c2fbda0705563ab724746dfe9ce (patch) | |
tree | f0da1effc9f55f2f75dc57fe1ba17419d559b45b /model/Relive.php | |
parent | e4141027ad16565b95d64ea262e6909a64cd6e1f (diff) | |
parent | f6c0270d40f6730fe1e1820f2866b08792df1db6 (diff) |
Merge branch 'feature/27-unwind-global-config'
Diffstat (limited to '')
-rw-r--r-- | model/Relive.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/model/Relive.php b/model/Relive.php index d0e7522..ca32f19 100644 --- a/model/Relive.php +++ b/model/Relive.php @@ -1,16 +1,27 @@ <?php -class Relive extends ModelBase +class Relive { + private $conference; + + public function __construct($conference) + { + $this->conference = $conference; + } + + public function getConference() { + return $this->conference; + } + public function isEnabled() { // having CONFERENCE.RELIVE is not enough! - return $this->has('CONFERENCE.RELIVE_JSON'); + return $this->getConference()->has('CONFERENCE.RELIVE_JSON'); } public function getJsonUrl() { - return $this->get('CONFERENCE.RELIVE_JSON'); + return $this->getConference()->get('CONFERENCE.RELIVE_JSON'); } public function getTalks() |