Review Class Reference

Inheritance diagram for Review:

Inheritance graph
[legend]
Collaboration diagram for Review:

Collaboration graph
[legend]

List of all members.


Detailed Description

Review of chosen article. Collects article review data, saves new review to DB.

Public Member Functions

 init ()
 render ()
 saveReview ()
 getReviewUserId ()
 getProduct ()
 getActiveRecommList ()
 canRate ()
 getReviews ()
 getCrossSelling ()
 getSimilarProducts ()
 getRecommList ()
 getActiveRecommItems ()
 getReviewSendStatus ()
 getPageNavigation ()

Protected Member Functions

 _checkDirectReview ($sReviewUserId)
 _allowDirectReview ($sUserId)
 _getActiveObject ()
 _getActiveType ()

Protected Attributes

 $_sReviewUserId = null
 $_oActObject = null
 $_oActiveRecommList = null
 $_oActiveRecommItems = null
 $_blRate = null
 $_aReviews = null
 $_oCrossSelling = null
 $_oSimilarProducts = null
 $_oRecommList = null
 $_blReviewSendStatus = null
 $_oPageNavigation = null
 $_sThisTemplate = 'review.tpl'
 $_sThisLoginTemplate = 'review_login.tpl'
 $_iViewIndexState = 1

Member Function Documentation

Review.init (  ) 

Executes parent.init(), Loads user chosen product object (with all data).

Returns:
null

Reimplemented from oxUBase.

Review.render (  ) 

Executes parent.render, loads article reviews and additional data (oxarticle.getReviews(), oxarticle.getCrossSelling(), oxarticle.GetSimilarProducts()). Returns name of template file to render review._sThisTemplate.

Template variables: product, reviews, crossselllist, similarlist

Returns:
string current template file name

Reimplemented from oxUBase.

Review.saveReview (  ) 

Saves user review text (oxreview object)

Template variables: success

Returns:
null

Review._checkDirectReview ( sReviewUserId  )  [protected]

checks if given user id is current user, if not, cheks if given user id can use direct review

Parameters:
string $sReviewUserId user to check
Returns:
boolean

Review._allowDirectReview ( sUserId  )  [protected]

Returns bool whether user is allowed to write review without logging in, only providing reviewuserid URL parameter.

Parameters:
string $sUserId user id
Returns:
bool

Review.getReviewUserId (  ) 

Template variable getter. Returns review user id

Returns:
string

Reimplemented from oxView.

Review.getProduct (  ) 

Template variable getter. Returns search product

Returns:
object

Reimplemented from oxUBase.

Review._getActiveObject (  )  [protected]

Template variable getter. Returns active object (oxarticle or oxrecommlist)

Returns:
object

Review._getActiveType (  )  [protected]

Template variable getter. Returns active type (oxarticle or oxrecommlist)

Returns:
string

Review.getActiveRecommList (  ) 

Template variable getter. Returns active recommlist

Returns:
object

Reimplemented from oxView.

Review.canRate (  ) 

Template variable getter. Returns if user can rate

Returns:
bool

Review.getReviews (  ) 

Template variable getter. Returns active object's reviews

Returns:
array

Review.getCrossSelling (  ) 

Template variable getter. Returns crosssellings

Returns:
object

Reimplemented from oxView.

Review.getSimilarProducts (  ) 

Template variable getter. Returns similar products

Returns:
object

Reimplemented from oxView.

Review.getRecommList (  ) 

Template variable getter. Returns recommlists

Returns:
object

Review.getActiveRecommItems (  ) 

Template variable getter. Returns active recommlist's items

Returns:
object

Review.getReviewSendStatus (  ) 

Template variable getter. Returns review send status

Returns:
bool

Review.getPageNavigation (  ) 

Template variable getter. Returns page navigation

Returns:
object


Member Data Documentation

Review.$_sReviewUserId = null [protected]

Review.$_oActObject = null [protected]

Review.$_oActiveRecommList = null [protected]

Review.$_oActiveRecommItems = null [protected]

Review.$_blRate = null [protected]

Review.$_aReviews = null [protected]

Review.$_oCrossSelling = null [protected]

Review.$_oSimilarProducts = null [protected]

Review.$_oRecommList = null [protected]

Review.$_blReviewSendStatus = null [protected]

Review.$_oPageNavigation = null [protected]

Review.$_sThisTemplate = 'review.tpl' [protected]

Reimplemented from oxView.

Review.$_sThisLoginTemplate = 'review_login.tpl' [protected]

Review.$_iViewIndexState = 1 [protected]

Current view search engine indexing state: 0 - index without limitations 1 - no index / no follow 2 - no index / follow

Reimplemented from oxView.


The documentation for this class was generated from the following file:

Generated on Wed Oct 29 23:47:24 2008 for OXID eShop CE by  doxygen 1.5.5