Beitrag erstellen #13

Merged
niklas.ortmann merged 164 commits from Beitrag-erstellen into dev 2026-05-29 13:22:11 +02:00
Showing only changes of commit 30bb0d4657 - Show all commits
+9 -1
View File
@@ -67,7 +67,15 @@ class LocalArticleManager implements ArticleManagerDAO {
public function getArticle($id) public function getArticle($id)
{ {
// TODO: Implement getArticle() method. $articles = $this->getAllArticles();
foreach ($articles as $article) {
if (isset($article['id']) && $article['id'] == $id) {
return $article;
}
}
return null;
} }
public function getAllArticles() public function getAllArticles()