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()));
        }
    }
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()));
        }
    }
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 ( ) ) ) ; } }
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.
Get the name for a user - hiding their real name if blind marking is on .