original_string: public function col_picture($attempt) {
          global $OUTPUT;
          $user = new stdClass();
          $additionalfields = explode(',', user_picture::fields());
          $user = username_load_fields_from_object($user, $attempt, null, $additionalfields);
          $user->id = $attempt->userid;
          return $OUTPUT->user_picture($user);
      }
code: public function col_picture($attempt) {
          global $OUTPUT;
          $user = new stdClass();
          $additionalfields = explode(',', user_picture::fields());
          $user = username_load_fields_from_object($user, $attempt, null, $additionalfields);
          $user->id = $attempt->userid;
          return $OUTPUT->user_picture($user);
      }
code_tokens: public function col_picture ( $ attempt ) { global $ OUTPUT ; $ user = new stdClass ( ) ; $ additionalfields = explode ( ',' , user_picture :: fields ( ) ) ; $ user = username_load_fields_from_object ( $ user , $ attempt , null , $ additionalfields ) ; $ user -> id = $ attempt -> userid ; return $ OUTPUT -> user_picture ( $ user ) ; }
docstring: Generate the display of the user's picture column.
  @param object $attempt the table row being output.
  @return string HTML content to go inside the td.
docstring_tokens: Generate the display of the user s picture column .