. /** * local_olimp_reports file description here. * * @package local_olimp_reports * @copyright 2022 alex sidorof * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class reports_cert_and_dip extends \table_sql{ public function __construct($uniqueid){ parent::__construct($uniqueid); $columns = array('fullname','email','name_obr','place_obr','ball','dip_or_sap','fio','gdate','kod'); $this->define_columns($columns); $headers = array(get_string('fullname', 'local_olimp_reports'), get_string('email', 'local_olimp_reports'), get_string('name_obr', 'local_olimp_reports'), get_string('place_obr', 'local_olimp_reports'), get_string('ball', 'local_olimp_reports'), get_string('dip_or_sap', 'local_olimp_reports'), get_string('fio', 'local_olimp_reports'), get_string('gdate', 'local_olimp_reports'), get_string('kod', 'local_olimp_reports')); $this->define_headers($headers); $this->pageable(true); } function col_fullname($values){ // If the data is being downloaded than we don't want to show HTML. if ($this->is_downloading()) { return $values->fullname; } else { return ''.$values->fullname.''; } } }