#203 Removed 'code' column

Not all certificates contain a 'code' element,
making this column unnecessary. It may also
confuse users when it is not applicable. For
those who are interested they can always use
the 'verify' functionality to confirm
certificates, rather than using this page.
This commit is contained in:
Mark Nelson 2018-06-26 17:14:42 +08:00
parent ef67beadf6
commit 51c0741ecb

View file

@ -67,13 +67,11 @@ class report_table extends \table_sql {
$columns = array(
'fullname',
'timecreated',
'code'
'timecreated'
);
$headers = array(
get_string('fullname'),
get_string('receiveddate', 'customcert'),
get_string('code', 'customcert')
get_string('receiveddate', 'customcert')
);
// Check if we were passed a filename, which means we want to download it.
@ -95,7 +93,6 @@ class report_table extends \table_sql {
$this->define_headers($headers);
$this->collapsible(false);
$this->sortable(true);
$this->no_sorting('code');
$this->no_sorting('download');
$this->is_downloadable(true);
@ -130,16 +127,6 @@ class report_table extends \table_sql {
return userdate($user->timecreated);
}
/**
* Generate the code column.
*
* @param \stdClass $user
* @return string
*/
public function col_code($user) {
return $user->code;
}
/**
* Generate the download column.
*