OXID eShop CE
4.8.11
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
oxwreview.php
Go to the documentation of this file.
1
<?php
2
6
class
oxwReview
extends
oxWidget
7
{
14
protected
$_aComponentNames
= array(
'oxcmp_user'
=> 1 );
15
20
protected
$_sThisTemplate
=
'widget/reviews/reviews.tpl'
;
21
22
29
public
function
render
()
30
{
31
parent::render
();
32
return
$this->_sThisTemplate
;
33
}
34
40
public
function
getReviewType
()
41
{
42
return
strtolower( $this->
getViewParameter
(
'type'
) );
43
}
44
50
public
function
getArticleId
()
51
{
52
return
$this->
getViewParameter
(
'aid'
);
53
}
54
60
public
function
getArticleNId
()
61
{
62
return
$this->
getViewParameter
(
'anid'
);
63
}
64
70
public
function
getRecommListId
()
71
{
72
return
$this->
getViewParameter
(
'recommid'
);
73
}
74
80
public
function
canRate
()
81
{
82
return
$this->
getViewParameter
(
'canrate'
);
83
}
84
90
public
function
getReviewUserHash
()
91
{
92
return
$this->
getViewParameter
(
'reviewuserhash'
);
93
}
94
100
public
function
getReviews
()
101
{
102
$oReview = $this->
getConfig
()->getTopActiveView();
103
return
$oReview->getReviews();
104
}
105
}
application
components
widgets
oxwreview.php
Generated by
1.8.1.2