OXID eShop CE  4.9.7
 All Classes Files Functions Variables Pages
oxwreview.php
Go to the documentation of this file.
1 <?php
2 
6 class oxwReview extends oxWidget
7 {
8 
16  protected $_aComponentNames = array('oxcmp_user' => 1);
17 
23  protected $_sThisTemplate = 'widget/reviews/reviews.tpl';
24 
25 
32  public function render()
33  {
35 
36  return $this->_sThisTemplate;
37  }
38 
44  public function getReviewType()
45  {
46  return strtolower($this->getViewParameter('type'));
47  }
48 
54  public function getArticleId()
55  {
56  return $this->getViewParameter('aid');
57  }
58 
64  public function getArticleNId()
65  {
66  return $this->getViewParameter('anid');
67  }
68 
74  public function getRecommListId()
75  {
76  return $this->getViewParameter('recommid');
77  }
78 
84  public function canRate()
85  {
86  return $this->getViewParameter('canrate');
87  }
88 
94  public function getReviewUserHash()
95  {
96  return $this->getViewParameter('reviewuserhash');
97  }
98 
104  public function getReviews()
105  {
106  $oReview = $this->getConfig()->getTopActiveView();
107 
108  return $oReview->getReviews();
109  }
110 }