find('h2.title.tc', 0)->innertext; $edition = $html->find('p.edition.tc', 0)->innertext; $articleTitle = $articleTitle . ' ' . $edition; // Extract article content $articleContent = $html->find('div.list', 0)->innertext; // Extract release date $releaseDate = $html->find('p.tc.time', 0)->innertext; $releaseDate = str_replace('Freigegeben am', '', $releaseDate); // Extract article uid $articleUid = $edition; // Build the item $item = array(); $item['uri'] = self::URI; $item['title'] = $articleTitle; $item['timestamp'] = strtotime($releaseDate); $item['content'] = $articleContent; $item['uid'] = $articleUid; // Add the item to the feed $this->items[] = $item; } public function getName() { return self::NAME; } public function getURI() { return self::URI; } }