| @@ 65-76 (lines=12) @@ | ||
| 62 | /** |
|
| 63 | * @return mixed |
|
| 64 | */ |
|
| 65 | public function getRecentTimers() |
|
| 66 | { |
|
| 67 | $timers = []; |
|
| 68 | ||
| 69 | foreach ($this->config->implementedServicesForFeature('get_timers') as $service) { |
|
| 70 | if ($this->config->isServiceActive($service) === true) { |
|
| 71 | $timers = array_merge($timers, $this->getRecentServiceTimers($service)); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | return $timers; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * @param $service |
|
| @@ 118-129 (lines=12) @@ | ||
| 115 | /** |
|
| 116 | * @return mixed |
|
| 117 | */ |
|
| 118 | public function syncOnlineDataToLocalCache() |
|
| 119 | { |
|
| 120 | $message = ''; |
|
| 121 | ||
| 122 | foreach ($this->config->implementedServicesForFeature('sync_data') as $service) { |
|
| 123 | if ($this->config->isServiceActive($service) === true) { |
|
| 124 | $message .= $this->syncServiceOnlineDataToLocalCache($service); |
|
| 125 | } |
|
| 126 | } |
|
| 127 | ||
| 128 | return $message; |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * @param $needle |
|