OXID eShop CE
4.10.2
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
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
{
34
parent::render
();
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
76
public
function
getRecommListId
()
77
{
78
return
$this->
getViewParameter
(
'recommid'
);
79
}
80
86
public
function
canRate
()
87
{
88
return
$this->
getViewParameter
(
'canrate'
);
89
}
90
96
public
function
getReviewUserHash
()
97
{
98
return
$this->
getViewParameter
(
'reviewuserhash'
);
99
}
100
106
public
function
getReviews
()
107
{
108
$oReview = $this->
getConfig
()->getTopActiveView();
109
110
return
$oReview->getReviews();
111
}
112
}
application
components
widgets
oxwreview.php
Generated by
1.8.1.2