public function get_authorlink() {
        $link = new \moodle_url(
            '/user/view.php', array(
                'id' => $this->post->userid,
                'course' => $this->course->id,
            )
        );

        return $link->out(false);
    }
public function get_authorlink() {
        $link = new \moodle_url(
            '/user/view.php', array(
                'id' => $this->post->userid,
                'course' => $this->course->id,
            )
        );

        return $link->out(false);
    }
public function get_authorlink ( ) { $ link = new \ moodle_url ( '/user/view.php' , array ( 'id' => $ this -> post -> userid , 'course' => $ this -> course -> id , ) ) ; return $ link -> out ( false ) ; }
Get the link to the author's profile page.

@return string
Get the link to the author s profile page .