OXID eShop CE
4.8.10
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
{
15
protected
$_aComponentNames
= array(
'oxcmp_user'
=> 1 );
16
22
protected
$_sThisTemplate
=
'widget/reviews/rating.tpl'
;
23
29
protected
$_dRatingValue
= null;
30
36
protected
$_iRatingCnt
= null;
37
38
45
public
function
render
()
46
{
47
parent::render
();
48
return
$this->_sThisTemplate
;
49
}
50
56
public
function
getRatingValue
()
57
{
58
if
( $this->_dRatingValue === null ) {
59
$this->_dRatingValue = (double)0;
60
$dValue = $this->
getViewParameter
(
"dRatingValue"
);
61
if
( $dValue ) {
62
$this->_dRatingValue = round( $dValue, 1);
63
}
64
}
65
return
(
double
)
$this->_dRatingValue
;
66
}
67
73
public
function
getRatingCount
()
74
{
75
return
$dCount = $this->
getViewParameter
(
"dRatingCount"
);
76
}
77
83
public
function
getRateUrl
()
84
{
85
return
$this->
getViewParameter
(
"sRateUrl"
);
86
}
87
93
public
function
canRate
()
94
{
95
return
$this->
getViewParameter
(
"blCanRate"
);
96
}
97
103
public
function
getArticleNId
()
104
{
105
return
$this->
getViewParameter
(
'anid'
);
106
}
107
}
application
components
widgets
oxwrating.php
Generated by
1.8.1.2