From 01dcbbcda5a4630cec6a1bbee052ef108e291a5d Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 7 Jan 2009 09:08:53 +0000 Subject: Add very basic comment listing which shows the different queues (approved, unapproved, spam). --- modules/comment/models/comment.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/comment/models') diff --git a/modules/comment/models/comment.php b/modules/comment/models/comment.php index 323356b4..cd7a5d07 100644 --- a/modules/comment/models/comment.php +++ b/modules/comment/models/comment.php @@ -23,4 +23,8 @@ class Comment_Model extends ORM { "email" => "valid_email", "url" => "valid_url", "text" => "required"); + + function item() { + return ORM::factory("item", $this->item_id); + } } -- cgit v1.2.3