original_string: 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];
      }
code: 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];
      }
code_tokens: 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 ] ; }
docstring: 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
docstring_tokens: Check whether the user can view full names of other users .