public function get_view_post_url_from_post_id(int $discussionid, int $postid) : moodle_url {
        $url = $this->get_discussion_view_url_from_discussion_id($discussionid);
        $url->set_anchor('p' . $postid);
        return $url;
    }
public function get_view_post_url_from_post_id(int $discussionid, int $postid) : moodle_url {
        $url = $this->get_discussion_view_url_from_discussion_id($discussionid);
        $url->set_anchor('p' . $postid);
        return $url;
    }
public function get_view_post_url_from_post_id ( int $ discussionid , int $ postid ) : moodle_url { $ url = $ this -> get_discussion_view_url_from_discussion_id ( $ discussionid ) ; $ url -> set_anchor ( 'p' . $ postid ) ; return $ url ; }
Get the url to view a discussion from a discussion id and post id.

@param int $discussionid The discussion id
@param int $postid The post id
@return moodle_url
Get the url to view a discussion from a discussion id and post id .