C4::Review - Perl Module containing routines for dealing with reviews of items
use C4::Review; my $review=getreview($biblionumber,$borrowernumber); savereview($biblionumber,$borrowernumber,$review); updatereview($biblionumber,$borrowernumber,$review); my $count=numberofreviews($status); my $count=numberofreviewsbybiblionumber($biblionumber); my $reviews=getreviews($biblionumber); my $reviews=getallreviews($status);
Review.pm provides many routines for manipulating reviews.
$review = getreview($biblionumber,$borrowernumber);
Takes a borrowernumber and a biblionumber and returns the review of that biblio
approvereview($reviewid);
Takes a reviewid and marks that review approved
unapprovereview($reviewid);
Takes a reviewid and marks that review as not approved
deletereview($reviewid);
Takes a reviewid and deletes it
Koha Team