public function get_view_ratings_url($popup = false) {
        $attributes = array(
            'contextid'  => $this->context->id,
            'component'  => $this->component,
            'ratingarea' => $this->ratingarea,
            'itemid'     => $this->itemid,
            'scaleid'    => $this->settings->scale->id
        );
        if ($popup) {
            $attributes['popup'] = 1;
        }
        return new moodle_url('/rating/index.php', $attributes);
    }
public function get_view_ratings_url($popup = false) {
        $attributes = array(
            'contextid'  => $this->context->id,
            'component'  => $this->component,
            'ratingarea' => $this->ratingarea,
            'itemid'     => $this->itemid,
            'scaleid'    => $this->settings->scale->id
        );
        if ($popup) {
            $attributes['popup'] = 1;
        }
        return new moodle_url('/rating/index.php', $attributes);
    }
public function get_view_ratings_url ( $ popup = false ) { $ attributes = array ( 'contextid' => $ this -> context -> id , 'component' => $ this -> component , 'ratingarea' => $ this -> ratingarea , 'itemid' => $ this -> itemid , 'scaleid' => $ this -> settings -> scale -> id ) ; if ( $ popup ) { $ attributes [ 'popup' ] = 1 ; } return new moodle_url ( '/rating/index.php' , $ attributes ) ; }
Returns a URL to view all of the ratings for the item this rating is for.

If this is a rating of a post then this URL will take the user to a page that shows all of the ratings for the post
(this one included).

@param bool $popup whether of not the URL should be loaded in a popup
@return moodle_url URL to view all of the ratings for the item this rating is for.
Returns a URL to view all of the ratings for the item this rating is for .