/** * Fetches simple xml object of recent commit data * * @return SimpleXml */ private function getRecentCommits() { $url = $this->config->get(self::RECENT_COMMITS_URL); $cache = $this->cacheCreator->getFileCache(self::RECENT_COMMITS_CACHE_FILE, self::RECENT_COMMITS_CACHE_TIMEOUT); if (!$cache->isCached()) { $data = $this->getUrlData($url); $cache->write($data); } return simplexml_load_string($cache->read()); }
/** * Sends email to site admin to notify of new comment * */ protected function sendAdminNotification($page) { $this->send($this->config->get('site.email'), 'Comment posted on Sockso manual', "The {$page} page has just received a new comment.\n\n" . "http://sockso.pu-gh.com/manual/{$page}.html"); }