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);
    }
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);
    }
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 ) ; }
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.
Generate the display of the user s picture column .