protected function can_view_fullnames($course, $forum, $discussion, $post, $cm, $context) {
        if (!isset($this->viewfullnames[$forum->id])) {
            $this->viewfullnames[$forum->id] = has_capability('moodle/site:viewfullnames', $context, $this->recipient->id);
        }

        return $this->viewfullnames[$forum->id];
    }
protected function can_view_fullnames($course, $forum, $discussion, $post, $cm, $context) {
        if (!isset($this->viewfullnames[$forum->id])) {
            $this->viewfullnames[$forum->id] = has_capability('moodle/site:viewfullnames', $context, $this->recipient->id);
        }

        return $this->viewfullnames[$forum->id];
    }
protected function can_view_fullnames ( $ course , $ forum , $ discussion , $ post , $ cm , $ context ) { if ( ! isset ( $ this -> viewfullnames [ $ forum -> id ] ) ) { $ this -> viewfullnames [ $ forum -> id ] = has_capability ( 'moodle/site:viewfullnames' , $ context , $ this -> recipient -> id ) ; } return $ this -> viewfullnames [ $ forum -> id ] ; }
Check whether the user can view full names of other users.

@param   \stdClass   $course
@param   \stdClass   $forum
@param   \stdClass   $discussion
@param   \stdClass   $post
@param   \stdClass   $cm
@param   \context    $context
@return  bool
Check whether the user can view full names of other users .