aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/Schedule.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index 0536791..3a9ee70 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -11,7 +11,7 @@ class Schedule extends ModelBase
}
public function getScale() {
- return floatval(get('SCHEDULE.SCALE', 7));
+ return floatval($this->get('SCHEDULE.SCALE', 7));
}
private function fetchSchedule()
@@ -205,12 +205,12 @@ class Schedule extends ModelBase
private function isCacheEnabled()
{
- return has('SCHEDULE.CACHE') && function_exists('apc_fetch') && function_exists('apc_store');
+ return $this->has('SCHEDULE.CACHE') && function_exists('apc_fetch') && function_exists('apc_store');
}
private function getCacheDuration()
{
- return get('SCHEDULE.CACHE', 60*10 /* 10 minutes */);
+ return $this->get('SCHEDULE.CACHE', 60*10 /* 10 minutes */);
}
private $localCache = null;