ZenMagick 0.9.10


zenmagick.store.shared.model.catalog\ZMReview
model\catalog\ZMReview.php at line 33

Class ZMReview

ZMObject
└─ZMReview

public class ZMReview
extends ZMObject

A single review.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new instance.

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
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

model\catalog\ZMReview.php at line 45

__construct

public void __construct()

Create new instance.


model\catalog\ZMReview.php at line 141

getAuthor

public string getAuthor()

Get the review author.

Returns:
The name of the author.

model\catalog\ZMReview.php at line 134

getDateAdded

public string getDateAdded()

Get the date the review was added.

Returns:
The added date.

model\catalog\ZMReview.php at line 71

getId

public int getId()

Get the review id.

Returns:
The review id.

model\catalog\ZMReview.php at line 148

getLanguageId

public int getLanguageId()

Get the lanugage id.

Returns:
The lanugage id.

model\catalog\ZMReview.php at line 92

getProductId

public int getProductId()

Get the review product id.

Returns:
The review product id.

model\catalog\ZMReview.php at line 113

getProductImage

public string getProductImage()

Get the review product image.

Returns:
The review product image.

model\catalog\ZMReview.php at line 120

getProductImageInfo

public ZMProductInfo getProductImageInfo()

Get the review product image info.

Returns:
The product image info.

model\catalog\ZMReview.php at line 106

getProductName

public string getProductName()

Get the review product name.

Returns:
The review product name.

model\catalog\ZMReview.php at line 78

getRating

public int getRating()

Get the rating.

Returns:
The review rating.

model\catalog\ZMReview.php at line 127

getText

public string getText()

Get the review text.

Returns:
The review text.

model\catalog\ZMReview.php at line 85

getViewCount

public int getViewCount()

Get the view counter.

Returns:
The view counter.

model\catalog\ZMReview.php at line 99

isActive

public boolean isActive()

Check if this review is active.

Returns:
true if the review is active.

model\catalog\ZMReview.php at line 183

setActive

public void setActive(boolean value)

Set the reviews active state.

Parameters:
value - true if the review is active.

model\catalog\ZMReview.php at line 218

setAuthor

public void setAuthor(string author)

Set the review author.

Parameters:
author - The name of the author.

model\catalog\ZMReview.php at line 211

setDateAdded

public void setDateAdded(string date)

Set the date the review was added.

Parameters:
date - The added date.

model\catalog\ZMReview.php at line 155

setId

public void setId(int id)

Set the review id.

Parameters:
id - The review id.

model\catalog\ZMReview.php at line 225

setLanguageId

public void setLanguageId(mixed languageId, int id)

Set the lanugage id.

Parameters:
id - The lanugage id.

model\catalog\ZMReview.php at line 176

setProductId

public void setProductId(int productId)

Set the review product id.

Parameters:
productId - The review product id.

model\catalog\ZMReview.php at line 197

setProductImage

public void setProductImage(string image)

Set the review product image.

Parameters:
image - The review product image.

model\catalog\ZMReview.php at line 190

setProductName

public void setProductName(string name)

Set the review product name.

Parameters:
name - The review product name.

model\catalog\ZMReview.php at line 162

setRating

public void setRating(int rating)

Set the rating.

Parameters:
rating - The review rating.

model\catalog\ZMReview.php at line 204

setText

public void setText(string text)

Set the review text.

Parameters:
text - The review text.

model\catalog\ZMReview.php at line 169

setViewCount

public void setViewCount(int viewCount)

Set the view counter.

Parameters:
viewCount - The view counter.

ZenMagick 0.9.10