From ddf0a519000f4c93df1f2ded18b631325256a905 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Mon, 10 Nov 2008 17:32:04 +0000 Subject: Comment creation controller, helper and test. Add comments from the scaffold. --- modules/comment/helpers/comment.php | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 modules/comment/helpers/comment.php (limited to 'modules/comment/helpers') diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php new file mode 100644 index 00000000..36a07106 --- /dev/null +++ b/modules/comment/helpers/comment.php @@ -0,0 +1,50 @@ +author = $author; + $comment->email = $email; + $comment->text = $text; + $comment->datetime = $datetime; + $comment->item_id = $item_id; + + return $comment->save(); + } +} -- cgit v1.2.3