30 if (!
$user)
return null;
38 catch (DataNotFoundException $e)
54 catch(DataNotFoundException $e)
71 $options =
"readOnly: ". (($userRating || !
$user) ?
"true" :
"false");
76 $options .=
", title: 'Rate this $name', readOnlyTitle: '$name Rating', loginMessage: 'Log in to rate this $name'";
82 <script type=
'text/javascript'>
83 window.addEvent(
'load',
function()
85 new PageRating(
"page_rating_widget",
'{$url}', {$ratingStats->average_rating}, {$ratingStats->number_of_ratings}, {{
$options}});
90 <div
id=
"page_rating_widget"></div>
97 $mgr->upgrade($version);
static $requestURI
The initial request URI.
Provides a central management class for event handlers and common functionality for the rating compon...
static drawRatingWidget($obj=null)
static upgradeComponent($version)
static getCurrentPageRatingStatistics()
static getCurrentUserPageRating()