amazOOP amazOOP
[ class tree: amazOOP ] [ index: amazOOP ] [ all elements ]

Class: Reviews

Source Location: /other.class.php

Class Overview

This class contains information about the product's ranking as well as customer and editorial reviews.

Author(s):

Version: 0.3RC1

Copyright: 2004 (c) Mauricio Diaz Orlich

Methods


Class Details [line 455]

This class contains information about the product's ranking as well as customer and editorial reviews.



Tags:

Version:  0.3RC1
  
License:  GNU General Public License
  
Copyright:  2004 (c) Mauricio Diaz Orlich
  
Author:  Mauricio Diaz <madd0@users.sourceforge.net>


[ Top ]


Class Methods


method getAvgReview [line 489]

float getAvgReview( )

Gets the average review given by Amazon customers.

This is a number between 0 and 5. Where 0 doesn't necessariliy mean that the product is terrible, it can also mean that it hasn't been reviewed yet.




Tags:

Return:  the average review given to the product by Amazon customers.


[ Top ]

method getCustomerReview [line 527]

CustomerReview|boolean getCustomerReview( [integer $number = 0])

Gets a Customer Review for the current product.

A Customer Review is an object of type CustomerReview which contains the following information:

  • The customer's rating in the scale of 0-5
  • A summary of the customer's review
  • The customer's review
Currently, AWS returns 0-3 reviews for each product.




Tags:

Return:  the requested customer review from the list, or false if the requested position of the list does not contain a review.
  
See:  CustomerReview


Parameters:

integer   $number   the product line you want to get from the list. If set to 0 (default), a random product line from the list is returned.

[ Top ]

method getTotalReviews [line 501]

integer getTotalReviews( )

Gets the total number of reviews this item has received.



Tags:

Return:  the total number of reviews received by the product.


[ Top ]

 
Documentation generated on Sat, 21 Aug 2004 17:40:42 +0200 by phpDocumentor 1.3.0RC3
hosted by
SourceForge.net Logo