aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorMaZderMind2016-12-11 21:46:01 +0100
committerMaZderMind2016-12-11 21:46:01 +0100
commit284878f0f9917b55359cd464b86508cacc472653 (patch)
tree98014d22b46d7fc9601a3b7bbd26c56afb1cf45c /model
parent6e0f7423769174b83d6b5618db7c33d54967099a (diff)
add cache-file getters and download preparations
Diffstat (limited to 'model')
-rw-r--r--model/Conference.php4
-rw-r--r--model/Relive.php5
-rw-r--r--model/Schedule.php7
3 files changed, 15 insertions, 1 deletions
diff --git a/model/Conference.php b/model/Conference.php
index be62fdb..6c14746 100644
--- a/model/Conference.php
+++ b/model/Conference.php
@@ -221,4 +221,8 @@ class Conference extends ModelBase
public function getRelive() {
return new Relive($this);
}
+
+ public function getExtraFiles() {
+ return $this->get('EXTRA_FILES', []);
+ }
}
diff --git a/model/Relive.php b/model/Relive.php
index 7f0e747..5676b62 100644
--- a/model/Relive.php
+++ b/model/Relive.php
@@ -24,6 +24,11 @@ class Relive
return $this->getConference()->get('CONFERENCE.RELIVE_JSON');
}
+ public function getJsonCache()
+ {
+ return sprintf('/tmp/relive-cache-%s', $this->getConference()->getSlug());
+ }
+
public function getTalks()
{
if(!file_exists($this->getJsonUrl()))
diff --git a/model/Schedule.php b/model/Schedule.php
index eb9fe05..4032ecb 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -265,11 +265,16 @@ class Schedule
return ((int)$parts[0] * 60 + (int)$parts[1]) * 60;
}
- private function getScheduleUrl()
+ public function getScheduleUrl()
{
return $this->getConference()->get('SCHEDULE.URL');
}
+ public function getScheduleCache()
+ {
+ return sprintf('/tmp/schedule-cache-%s', $this->getConference()->getSlug());
+ }
+
public function getScheduleToRoomSlugMapping()
{
$mapping = array();