original_string: public function render_assign_user_summary(assign_user_summary $summary) {
          $o = '';
          $supendedclass = '';
          $suspendedicon = '';
  
          if (!$summary->user) {
              return;
          }
  
          if ($summary->suspendeduser) {
              $supendedclass = ' usersuspended';
              $suspendedstring = get_string('userenrolmentsuspended', 'grades');
              $suspendedicon = ' ' . $this->pix_icon('i/enrolmentsuspended', $suspendedstring);
          }
          $o .= $this->output->container_start('usersummary');
          $o .= $this->output->box_start('boxaligncenter usersummarysection'.$supendedclass);
          if ($summary->blindmarking) {
              $o .= get_string('hiddenuser', 'assign') . $summary->uniqueidforuser.$suspendedicon;
          } else {
              $o .= $this->output->user_picture($summary->user);
              $o .= $this->output->spacer(array('width'=>30));
              $urlparams = array('id' => $summary->user->id, 'course'=>$summary->courseid);
              $url = new moodle_url('/user/view.php', $urlparams);
              $fullname = fullname($summary->user, $summary->viewfullnames);
              $extrainfo = array();
              foreach ($summary->extrauserfields as $extrafield) {
                  $extrainfo[] = $summary->user->$extrafield;
              }
              if (count($extrainfo)) {
                  $fullname .= ' (' . implode(', ', $extrainfo) . ')';
              }
              $fullname .= $suspendedicon;
              $o .= $this->output->action_link($url, $fullname);
          }
          $o .= $this->output->box_end();
          $o .= $this->output->container_end();
  
          return $o;
      }
code: public function render_assign_user_summary(assign_user_summary $summary) {
          $o = '';
          $supendedclass = '';
          $suspendedicon = '';
  
          if (!$summary->user) {
              return;
          }
  
          if ($summary->suspendeduser) {
              $supendedclass = ' usersuspended';
              $suspendedstring = get_string('userenrolmentsuspended', 'grades');
              $suspendedicon = ' ' . $this->pix_icon('i/enrolmentsuspended', $suspendedstring);
          }
          $o .= $this->output->container_start('usersummary');
          $o .= $this->output->box_start('boxaligncenter usersummarysection'.$supendedclass);
          if ($summary->blindmarking) {
              $o .= get_string('hiddenuser', 'assign') . $summary->uniqueidforuser.$suspendedicon;
          } else {
              $o .= $this->output->user_picture($summary->user);
              $o .= $this->output->spacer(array('width'=>30));
              $urlparams = array('id' => $summary->user->id, 'course'=>$summary->courseid);
              $url = new moodle_url('/user/view.php', $urlparams);
              $fullname = fullname($summary->user, $summary->viewfullnames);
              $extrainfo = array();
              foreach ($summary->extrauserfields as $extrafield) {
                  $extrainfo[] = $summary->user->$extrafield;
              }
              if (count($extrainfo)) {
                  $fullname .= ' (' . implode(', ', $extrainfo) . ')';
              }
              $fullname .= $suspendedicon;
              $o .= $this->output->action_link($url, $fullname);
          }
          $o .= $this->output->box_end();
          $o .= $this->output->container_end();
  
          return $o;
      }
code_tokens: public function render_assign_user_summary ( assign_user_summary $ summary ) { $ o = '' ; $ supendedclass = '' ; $ suspendedicon = '' ; if ( ! $ summary -> user ) { return ; } if ( $ summary -> suspendeduser ) { $ supendedclass = ' usersuspended' ; $ suspendedstring = get_string ( 'userenrolmentsuspended' , 'grades' ) ; $ suspendedicon = ' ' . $ this -> pix_icon ( 'i/enrolmentsuspended' , $ suspendedstring ) ; } $ o .= $ this -> output -> container_start ( 'usersummary' ) ; $ o .= $ this -> output -> box_start ( 'boxaligncenter usersummarysection' . $ supendedclass ) ; if ( $ summary -> blindmarking ) { $ o .= get_string ( 'hiddenuser' , 'assign' ) . $ summary -> uniqueidforuser . $ suspendedicon ; } else { $ o .= $ this -> output -> user_picture ( $ summary -> user ) ; $ o .= $ this -> output -> spacer ( array ( 'width' => 30 ) ) ; $ urlparams = array ( 'id' => $ summary -> user -> id , 'course' => $ summary -> courseid ) ; $ url = new moodle_url ( '/user/view.php' , $ urlparams ) ; $ fullname = fullname ( $ summary -> user , $ summary -> viewfullnames ) ; $ extrainfo = array ( ) ; foreach ( $ summary -> extrauserfields as $ extrafield ) { $ extrainfo [ ] = $ summary -> user -> $ extrafield ; } if ( count ( $ extrainfo ) ) { $ fullname .= ' (' . implode ( ', ' , $ extrainfo ) . ')' ; } $ fullname .= $ suspendedicon ; $ o .= $ this -> output -> action_link ( $ url , $ fullname ) ; } $ o .= $ this -> output -> box_end ( ) ; $ o .= $ this -> output -> container_end ( ) ; return $ o ; }
docstring: Render the user summary
  
  @param assign_user_summary $summary The user summary to render
  @return string
docstring_tokens: Render the user summary