diff options
author | MaZderMind | 2015-03-31 17:16:40 +0200 |
---|---|---|
committer | MaZderMind | 2015-03-31 17:16:40 +0200 |
commit | 3de36d7a63fe91127f3413d58004bbd6505864a3 (patch) | |
tree | 4cc04b1e7a4567dbfa3b752f1791695f275771fd /model/Schedule.php | |
parent | c01f7979db801aca3cd42234cc4a7fafaec0a9cd (diff) |
Remove Global has/get
Diffstat (limited to 'model/Schedule.php')
-rw-r--r-- | model/Schedule.php | 6 |
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; |