Go to the source code of this file.
Namespaces |
| namespace | core |
Variables |
| | $contextid = required_param('contextid', PARAM_INT) |
| | $component = required_param('component', PARAM_COMPONENT) |
| | $ratingarea = optional_param('ratingarea', null, PARAM_AREA) |
| | $itemid = required_param('itemid', PARAM_INT) |
| | $scaleid = required_param('scaleid', PARAM_INT) |
| | $sort = optional_param('sort', '', PARAM_ALPHA) |
| | $popup = optional_param('popup', 0, PARAM_INT) |
| | $url = new moodle_url('/rating/index.php', array('contextid'=>$contextid,'itemid'=>$itemid,'scaleid'=>$scaleid)) |
if($popup) if(!has_capability('moodle/rating:view',
$context)) if(!has_capability('moodle/rating:viewall',
$context) and $USER->id!=$item->
userid) switch($sort) | $scalemenu = make_grades_menu($scaleid) |
| | $strrating = get_string('rating', 'rating') |
| | $strname = get_string('name') |
| | $strtime = get_string('time') |
| | $ratingoptions = new stdClass |
| $ratingoptions | context = $context |
| $ratingoptions | component = $component |
| $ratingoptions | ratingarea = $ratingarea |
| $ratingoptions | itemid = $itemid |
| $ratingoptions | sort = $sqlsort |
| | $rm = new rating_manager() |
| | $ratings = $rm->get_all_ratings_for_item($ratingoptions) |
Variable Documentation
| $ratingoptions = new stdClass |
| $ratings = $rm->get_all_ratings_for_item($ratingoptions) |
| $ratingoptions sort = $sqlsort |