/** * Update EPG from all EPG setting records. * * @param bool $force * @return string */ public function updateEpg($force = false) { $this->settings = $this->getSettings(); $result = ''; foreach ($this->settings as $setting) { $result .= $this->updateEpgBySetting($setting, $force); $result .= "\n"; } $event = new SysEvent(); $event->setUserListByMac('online'); $event->sendUpdateEpg(); return $result; }