OXID eShop CE
4.9.9
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
oxwrating.php
Go to the documentation of this file.
1
<?php
2
7
class
oxwRating
extends
oxWidget
8
{
9
17
protected
$_aComponentNames
= array(
'oxcmp_user'
=> 1);
18
24
protected
$_sThisTemplate
=
'widget/reviews/rating.tpl'
;
25
31
protected
$_dRatingValue
= null;
32
38
protected
$_iRatingCnt
= null;
39
40
47
public
function
render
()
48
{
49
parent::render
();
50
51
return
$this->_sThisTemplate
;
52
}
53
59
public
function
getRatingValue
()
60
{
61
if
($this->_dRatingValue === null) {
62
$this->_dRatingValue = (double) 0;
63
$dValue = $this->
getViewParameter
(
"dRatingValue"
);
64
if
($dValue) {
65
$this->_dRatingValue = round($dValue, 1);
66
}
67
}
68
69
return
(
double
)
$this->_dRatingValue
;
70
}
71
77
public
function
getRatingCount
()
78
{
79
return
$dCount = $this->
getViewParameter
(
"dRatingCount"
);
80
}
81
87
public
function
getRateUrl
()
88
{
89
return
$this->
getViewParameter
(
"sRateUrl"
);
90
}
91
97
public
function
canRate
()
98
{
99
return
$this->
getViewParameter
(
"blCanRate"
);
100
}
101
107
public
function
getArticleNId
()
108
{
109
return
$this->
getViewParameter
(
'anid'
);
110
}
111
}
application
components
widgets
oxwrating.php
Generated by
1.8.1.2