ZenMagick 0.9.6


org.zenmagick.model.catalog.ZMReview

Class ZMReview

ZMObject
|
+--ZMReview

public class ZMReview
extends ZMObject

A single review.

Author:
DerManoMann
Version:
$Id: ZMReview.php 2066 2009-03-16 04:37:52Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMReview()

Create new instance.

Method Summary
string

getAuthor()

Get the review author.

string

getDateAdded()

Get the date the review was added.

int

getId()

Get the review id.

int

getLanguageId()

Get the lanugage id.

int

getProductId()

Get the review product id.

string

getProductImage()

Get the review product image.

ZMProductInfo

getProductImageInfo()

Get the review product image info.

string

getProductName()

Get the review product name.

int

getRating()

Get the rating.

string

getText()

Get the review text.

int

getViewCount()

Get the view counter.

boolean

isActive()

Check if this review is active.

void

setActive(boolean value)

Set the reviews active state.

void

setAuthor(string author)

Set the review author.

void

setDateAdded(string date)

Set the date the review was added.

void

setId(int id)

Set the review id.

void

setLanguageId(mixed languageId, int id)

Set the lanugage id.

void

setProductId(int productId)

Set the review product id.

void

setProductImage(string image)

Set the review product image.

void

setProductName(string name)

Set the review product name.

void

setRating(int rating)

Set the rating.

void

setText(string text)

Set the review text.

void

setViewCount(int viewCount)

Set the view counter.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMReview

public ZMReview()

Create new instance. /


Method Detail

getAuthor

public string getAuthor()

Get the review author.

Returns:
The name of the author.

getDateAdded

public string getDateAdded()

Get the date the review was added.

Returns:
The added date.

getId

public int getId()

Get the review id.

Returns:
The review id.

getLanguageId

public int getLanguageId()

Get the lanugage id.

Returns:
The lanugage id.

getProductId

public int getProductId()

Get the review product id.

Returns:
The review product id.

getProductImage

public string getProductImage()

Get the review product image.

Returns:
The review product image.

getProductImageInfo

public ZMProductInfo getProductImageInfo()

Get the review product image info.

Returns:
The product image info.

getProductName

public string getProductName()

Get the review product name.

Returns:
The review product name.

getRating

public int getRating()

Get the rating.

Returns:
The review rating.

getText

public string getText()

Get the review text.

Returns:
The review text.

getViewCount

public int getViewCount()

Get the view counter.

Returns:
The view counter.

isActive

public boolean isActive()

Check if this review is active.

Returns:
true if the review is active.

setActive

public void setActive(boolean value)

Set the reviews active state.

Parameters:
value - true if the review is active.

setAuthor

public void setAuthor(string author)

Set the review author.

Parameters:
author - The name of the author.

setDateAdded

public void setDateAdded(string date)

Set the date the review was added.

Parameters:
date - The added date.

setId

public void setId(int id)

Set the review id.

Parameters:
id - The review id.

setLanguageId

public void setLanguageId(mixed languageId, int id)

Set the lanugage id.

Parameters:
id - The lanugage id.

setProductId

public void setProductId(int productId)

Set the review product id.

Parameters:
productId - The review product id.

setProductImage

public void setProductImage(string image)

Set the review product image.

Parameters:
image - The review product image.

setProductName

public void setProductName(string name)

Set the review product name.

Parameters:
name - The review product name.

setRating

public void setRating(int rating)

Set the rating.

Parameters:
rating - The review rating.

setText

public void setText(string text)

Set the review text.

Parameters:
text - The review text.

setViewCount

public void setViewCount(int viewCount)

Set the view counter.

Parameters:
viewCount - The view counter.

ZenMagick 0.9.6