Class: HeavyDetails
Source Location: /heavyDetails.class.php
AmazonItem
|
--LiteDetails
|
--HeavyDetails
The HeavyDetails class is used to store information on products returned when doing a heavy request to AWS.
Author(s):
Version: 0.3RC1
Copyright: 2004 (c) Mauricio Diaz Orlich
|
|
Class Details [line 76]
Class Methods
method getAccessories [line 827]
string|boolean getAccessories(
[integer
$access = 0])
|
|
Gets ASINs of accessories for the current product. As far as I know, the maximum number of ASINs resturned is 5, but as usual, this is not well documented.
Tags:
Parameters:
method getActors [line 267]
string|boolean getActors(
[integer
$howmany = 0], [string
$separator = ", "], [string
$etc = "et al."], [string
$template = "%name%"])
|
|
Displays the actors and actresses of a DVD or video. You can specify how many actors you want to display, what character(s) should separate each name and what should be appended at the end of the list if there are more artists than were displayed. Additionally, since version 0.2, you can add a template that will be applied to each name. This allows to create links, and apply other html transformation to each name in the list.
Tags:
Parameters:
method getAgeGroup [line 755]
string|boolean getAgeGroup(
)
|
|
Obtains the appropriate age level for toys.
Tags:
method getAvgReview [line 931]
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:
method getBrowseNode [line 429]
BrowseNode|boolean getBrowseNode(
[integer
$browseNode = 0])
|
|
Obtains a Browse Node in which the object appears from a list of Browse Nodes. Browse nodes are stored as BrowseNode objects, which contain a node name and a node ID (when such information is provided by AWS). Currently, AWS is not supposed to return node IDs, but it occasionally does so, especially when querying locales other than "us". I don't see how node names by themselves could be useful, so I wrote getModeFromCatalog() to use node IDs with getBrowseNode(). Use it, tweak it, and send feedback!!!
Tags:
Parameters:
method getCollectiblePrice [line 994]
string|boolean getCollectiblePrice(
)
|
|
The price offered for a collectible version of this product, including its currency symbol.
Tags:
method getCustomerReview [line 970]
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:
Parameters:
method getDirectors [line 320]
string|boolean getDirectors(
[integer
$howmany = 0], [string
$separator = ", "], [string
$etc = "et al."], [string
$template = "%name%"])
|
|
Displays the directors of a DVD or video. You can specify how many directors you want to display, what character(s) should separate each name and what should be appended at the end of the list if there are more artists than were displayed. Additionally, since version 0.2, you can add a template that will be applied to each name. This allows to create links, and apply other html transformation to each name in the list.
Tags:
Parameters:
method getDistributor [line 364]
string|boolean getDistributor(
)
|
|
The distributor of a file
Tags:
method getEncoding [line 849]
string|boolean getEncoding(
)
|
|
Obtains the encoding of a DVD or video.
Tags:
method getEsrbRating [line 743]
string|boolean getEsrbRating(
)
|
|
Obtains the ESRB rating for a video game. ESRB ratings are: - EARLY CHILDHOOD:
Titles rated EC - Early Childhood have content that may be suitable for ages
3 and older. Contains no material that parents would find inappropriate.
- EVERYONE:
Titles rated E - Everyone have content that may be suitable for persons ages 6
and older. Titles in this category may contain minimal violence, some comic
mischief and/or mild language.
- TEEN:
Titles rated T - Teen have content that may be suitable for persons ages 13 and
older. May contain violent content, mild or strong language, and/or suggestive themes.
- MATURE:
Titles rated M - Mature have content that may be suitable for persons ages 17
and older. Titles in this category may contain mature sexual themes, more
intense violence and/or strong language.
- ADULTS ONLY:
Titles rated AO - Adults Only have content suitable only for adults. Titles
in this category may include graphic depictions of sex and/or violence.
Adult Only products are not intended for persons under the age of 18.
- RATING PENDING:
Titles listed as RP - Rating Pending have been submitted to the ESRB and are
awaiting final rating.
Tags:
method getFeatures [line 577]
string|boolean getFeatures(
[integer
$feature = 0])
|
|
Gets a feature out of the list of features of an object.
Tags:
Parameters:
method getISBN [line 561]
string|boolean getISBN(
)
|
|
Retrieves a book's ISBN or International Standard Book Number.
Tags:
method getList [line 392]
string|boolean getList(
[integer
$listNumber = 0])
|
|
Obtains a Listmania! list in which the object appears.
Tags:
Parameters:
method getMedia [line 465]
string|boolean getMedia(
[boolean
$showImage = true], [boolean
$andText = false])
|
|
Retrieves the medium of the product. The medium can be CD, DVD, VHS, Paperback, Hardcover, etc. You can specify images for each medium by modifying the $media array in config.inc.php. You can also add images for media that do not have any. The medium can be displayed as an image (if available), as text only, or as both by calling the funcion with different parameters.
Tags:
Parameters:
method getMpaaRating [line 706]
string|boolean getMpaaRating(
)
|
|
Obtains the MPAA rating for a movie. MPAA ratings are: - G: General Audiences (All ages admitted)
- PG: Parental Guidance Suggested (Some material may not be suitable for children)
- PG-13: Parents Strongly Cautioned (Some material may be inappropriate for children under 13)
- R: Restricted (Under 17 requires accompanying parent or adult guardian)
- NC-17: No one 17 and under admitted
Tags:
method getMPN [line 234]
Manufacturer Product Number
Tags:
method getNewPrice [line 982]
string|boolean getNewPrice(
)
|
|
The price offered by a Third Party seller for this product, new, including its currency symbol.
Tags:
method getNoOfFeatures [line 599]
integer getNoOfFeatures(
)
|
|
The total number of features the product has.
Tags:
method getNoOfTracks [line 808]
The total number of tracks the product has.
Tags:
method getNumMedia [line 547]
string|boolean getNumMedia(
)
|
|
The product's media in numerical form.
Tags:
method getPlatforms [line 624]
string|boolean getPlatforms(
[string
$separator = ", "], [boolean
$showImage = true])
|
|
Obtains the list of platforms that support the product. This can be Operating Systems for software, or Consoles for video games. If a same platform appears several times (e.g. several Windows versions) the platform's name appears once and the different version are grouped inside parenthesis (e.g. Windows (NT, 2000, 98)). This function will create an IMG tag to display the platform's image if such an image was set in the $media array found in the config.inc.php file.
Tags:
Parameters:
method getProductDescription [line 900]
string|boolean getProductDescription(
[integer
$words = 0], [string
$end = "..."])
|
|
Obtains Amazon's Editorial Review for this product. Not all products return an Editorial Review. Also, note that the Editorial Review (or Product Description) IS NOT the same as the Publisher's Description that appears on the Amazon sites for some books.
Tags:
Parameters:
method getPublisher [line 528]
string|boolean getPublisher(
[string
$template = "%name%"])
|
|
Displays the publisher of a book. Since version 0.2, you can add a template that will be applied to the publisher's name. This allows to create links, and apply other html transformatin to each name in the list.
Tags:
Parameters:
method getReadingLevel [line 504]
string|boolean getReadingLevel(
)
|
|
Reading level for children's books
Tags:
method getRefurbishedPrice [line 1006]
string|boolean getRefurbishedPrice(
)
|
|
The price offered for a refurbished version of this product, including its currency symbol.
Tags:
method getSalesRank [line 376]
string|boolean getSalesRank(
)
|
|
Sales rank of this product at Amazon
Tags:
method getSimilarProducts [line 865]
string|boolean getSimilarProducts(
[integer
$product = 0])
|
|
Gets ASINs of other products sold at Amazon that are similar to the current product.
Tags:
Parameters:
method getTheatricalReleaseDate [line 352]
string|boolean getTheatricalReleaseDate(
)
|
|
Date of the theatrical release of a DVD or video
Tags:
method getTotalReviews [line 944]
integer getTotalReviews(
)
|
|
Gets the total number of reviews this item has received, which is not necessarily the number of reviews returned, since currently AWS returns at the most 3 reviews.
Tags:
method getTracks [line 786]
string|boolean getTracks(
[integer
$trackNo = 0])
|
|
Gets the name of a track out of the list of tracks in a CD.
Tags:
Parameters:
method getUPC [line 770]
Get the UPC code of a product. Currently Amazon only returns UPC codes for items in the music category. Although, lately I've seen UPC codes returned for other objects too.
Tags:
|
|