original_string: public function fullname($user) {
          if ($this->is_blind_marking()) {
              $hasviewblind = has_capability('mod/assign:viewblinddetails', $this->get_context());
              if (empty($user->recordid)) {
                  $uniqueid = $this->get_uniqueid_for_user($user->id);
              } else {
                  $uniqueid = $user->recordid;
              }
              if ($hasviewblind) {
                  return get_string('participant', 'assign') . ' ' . $uniqueid . ' (' .
                          fullname($user, has_capability('moodle/site:viewfullnames', $this->get_context())) . ')';
              } else {
                  return get_string('participant', 'assign') . ' ' . $uniqueid;
              }
          } else {
              return fullname($user, has_capability('moodle/site:viewfullnames', $this->get_context()));
          }
      }
code: public function fullname($user) {
          if ($this->is_blind_marking()) {
              $hasviewblind = has_capability('mod/assign:viewblinddetails', $this->get_context());
              if (empty($user->recordid)) {
                  $uniqueid = $this->get_uniqueid_for_user($user->id);
              } else {
                  $uniqueid = $user->recordid;
              }
              if ($hasviewblind) {
                  return get_string('participant', 'assign') . ' ' . $uniqueid . ' (' .
                          fullname($user, has_capability('moodle/site:viewfullnames', $this->get_context())) . ')';
              } else {
                  return get_string('participant', 'assign') . ' ' . $uniqueid;
              }
          } else {
              return fullname($user, has_capability('moodle/site:viewfullnames', $this->get_context()));
          }
      }
code_tokens: public function fullname ( $ user ) { if ( $ this -> is_blind_marking ( ) ) { $ hasviewblind = has_capability ( 'mod/assign:viewblinddetails' , $ this -> get_context ( ) ) ; if ( empty ( $ user -> recordid ) ) { $ uniqueid = $ this -> get_uniqueid_for_user ( $ user -> id ) ; } else { $ uniqueid = $ user -> recordid ; } if ( $ hasviewblind ) { return get_string ( 'participant' , 'assign' ) . ' ' . $ uniqueid . ' (' . fullname ( $ user , has_capability ( 'moodle/site:viewfullnames' , $ this -> get_context ( ) ) ) . ')' ; } else { return get_string ( 'participant' , 'assign' ) . ' ' . $ uniqueid ; } } else { return fullname ( $ user , has_capability ( 'moodle/site:viewfullnames' , $ this -> get_context ( ) ) ) ; } }
docstring: Get the name for a user - hiding their real name if blind marking is on.
  
  @param stdClass $user The user record as required by fullname()
  @return string The name.
docstring_tokens: Get the name for a user - hiding their real name if blind marking is on .