Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/rating/index.php File Reference

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

Definition at line 31 of file index.php.

Definition at line 30 of file index.php.

Definition at line 33 of file index.php.

$popup = optional_param('popup', 0, PARAM_INT)

Definition at line 36 of file index.php.

Definition at line 32 of file index.php.

$ratingoptions = new stdClass

Definition at line 74 of file index.php.

$ratings = $rm->get_all_ratings_for_item($ratingoptions)

Definition at line 82 of file index.php.

$rm = new rating_manager()

Definition at line 81 of file index.php.

Definition at line 34 of file index.php.

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)

Definition at line 65 of file index.php.

Definition at line 35 of file index.php.

$strname = get_string('name')

Definition at line 68 of file index.php.

$strrating = get_string('rating', 'rating')

Definition at line 67 of file index.php.

$strtime = get_string('time')

Definition at line 69 of file index.php.

$url = new moodle_url('/rating/index.php', array('contextid'=>$contextid,'itemid'=>$itemid,'scaleid'=>$scaleid))

Definition at line 41 of file index.php.

$ratingoptions component = $component

Definition at line 76 of file index.php.

$ratingoptions context = $context

Definition at line 75 of file index.php.

$ratingoptions itemid = $itemid

Definition at line 78 of file index.php.

$ratingoptions ratingarea = $ratingarea

Definition at line 77 of file index.php.

$ratingoptions sort = $sqlsort

Definition at line 79 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations