getArticle by id

This commit is contained in:
2026-05-29 09:32:56 +02:00
parent fdd7408f53
commit 30bb0d4657
+9 -1
View File
@@ -67,7 +67,15 @@ class LocalArticleManager implements ArticleManagerDAO {
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()