ZenMagick 0.9.8


org.zenmagick.store.model.catalog.ZMReview
\store\model\catalog\ZMReview.php at line 34

Class ZMReview

ZMObject
└─ZMReview

public class ZMReview
extends ZMObject

A single review.

Author:
DerManoMann
Version:
$Id: ZMReview.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.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.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\catalog\ZMReview.php at line 46

ZMReview

public ZMReview()

Create new instance.


Method Detail

\store\model\catalog\ZMReview.php at line 142

getAuthor

public string getAuthor()

Get the review author.

Returns:
The name of the author.

\store\model\catalog\ZMReview.php at line 135

getDateAdded

public string getDateAdded()

Get the date the review was added.

Returns:
The added date.

\store\model\catalog\ZMReview.php at line 72

getId

public int getId()

Get the review id.

Returns:
The review id.

\store\model\catalog\ZMReview.php at line 149

getLanguageId

public int getLanguageId()

Get the lanugage id.

Returns:
The lanugage id.

\store\model\catalog\ZMReview.php at line 93

getProductId

public int getProductId()

Get the review product id.

Returns:
The review product id.

\store\model\catalog\ZMReview.php at line 114

getProductImage

public string getProductImage()

Get the review product image.

Returns:
The review product image.

\store\model\catalog\ZMReview.php at line 121

getProductImageInfo

public ZMProductInfo getProductImageInfo()

Get the review product image info.

Returns:
The product image info.

\store\model\catalog\ZMReview.php at line 107

getProductName

public string getProductName()

Get the review product name.

Returns:
The review product name.

\store\model\catalog\ZMReview.php at line 79

getRating

public int getRating()

Get the rating.

Returns:
The review rating.

\store\model\catalog\ZMReview.php at line 128

getText

public string getText()

Get the review text.

Returns:
The review text.

\store\model\catalog\ZMReview.php at line 86

getViewCount

public int getViewCount()

Get the view counter.

Returns:
The view counter.

\store\model\catalog\ZMReview.php at line 100

isActive

public boolean isActive()

Check if this review is active.

Returns:
true if the review is active.

\store\model\catalog\ZMReview.php at line 184

setActive

public void setActive(boolean value)

Set the reviews active state.

Parameters:
value - true if the review is active.

\store\model\catalog\ZMReview.php at line 219

setAuthor

public void setAuthor(string author)

Set the review author.

Parameters:
author - The name of the author.

\store\model\catalog\ZMReview.php at line 212

setDateAdded

public void setDateAdded(string date)

Set the date the review was added.

Parameters:
date - The added date.

\store\model\catalog\ZMReview.php at line 156

setId

public void setId(int id)

Set the review id.

Parameters:
id - The review id.

\store\model\catalog\ZMReview.php at line 226

setLanguageId

public void setLanguageId(mixed languageId, int id)

Set the lanugage id.

Parameters:
id - The lanugage id.

\store\model\catalog\ZMReview.php at line 177

setProductId

public void setProductId(int productId)

Set the review product id.

Parameters:
productId - The review product id.

\store\model\catalog\ZMReview.php at line 198

setProductImage

public void setProductImage(string image)

Set the review product image.

Parameters:
image - The review product image.

\store\model\catalog\ZMReview.php at line 191

setProductName

public void setProductName(string name)

Set the review product name.

Parameters:
name - The review product name.

\store\model\catalog\ZMReview.php at line 163

setRating

public void setRating(int rating)

Set the rating.

Parameters:
rating - The review rating.

\store\model\catalog\ZMReview.php at line 205

setText

public void setText(string text)

Set the review text.

Parameters:
text - The review text.

\store\model\catalog\ZMReview.php at line 170

setViewCount

public void setViewCount(int viewCount)

Set the view counter.

Parameters:
viewCount - The view counter.

ZenMagick 0.9.8