Antwortmöglichkeit
This commit is contained in:
@@ -15,16 +15,21 @@ interface CommentManagerDAO
|
||||
/**
|
||||
* Speichert einen neuen Kommentar zu einem Beitrag.
|
||||
*
|
||||
* Optional kann eine parentCommentId übergeben werden,
|
||||
* wenn der Kommentar eine Antwort auf einen anderen Kommentar ist.
|
||||
*
|
||||
* @param int $articleId ID des Beitrags
|
||||
* @param string $author Autor des Kommentars
|
||||
* @param string $content Inhalt des Kommentars
|
||||
* @param int|null $parentCommentId ID des Eltern-Kommentars oder null
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addComment(
|
||||
$articleId,
|
||||
$author,
|
||||
$content
|
||||
$content,
|
||||
$parentCommentId = null
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -37,4 +42,4 @@ interface CommentManagerDAO
|
||||
public function getCommentsByArticle(
|
||||
$articleId
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user