Skip to content

Conversation

@juancp-contidosdixitais

A new feature for Chamilo, a certificate export report for the certificates issued

This new feature adds a button to allow download a CSV with the user data, certificate issue date, score and optional extra user fields

image

Optional extra user fields must be configured in configuration.php using the new configuration parameter "certificate_export_report_user_extra_fields":

$_configuration['certificate_export_report_user_extra_fields'] = ['extra_fields' => ['office_address', 'office_phone_extension']];

@contidos
Copy link

contidos commented Mar 23, 2023

In terms of users what this new feature does is to export a csv file that contains:

id
username
name
surname
score (result on its certificate)
date in wich the certificate was generated as it appears on the interface list
extra fields suchs ad DNI number or any other that we select in configuration.php

This feature helps companies or organizations that need to report on wich new employees have been certified within a specific range of time.

@ywarnier
Copy link
Member

@juancp-contidosdixitais Don't forget to mention when there is a new language term (ExportCertificateReport in this case) so we can add it to the translation system.

}
}

foreach($exportData as $key => $row) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be careful with spacing: foreach[space](...
You should configure your editor to match PSR-2, that would help a bit. There's another same mistake at line 228.

@ywarnier ywarnier merged commit bb0ab20 into chamilo:1.11.x May 30, 2023
@ywarnier
Copy link
Member

Merged with 2 additional commits, one for translations, another one fixing the little code style issue.

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants