Skip to content

Conversation

sudhakar-cisinlabs
Copy link

Added the code for generating the simple certificate, Please check and let me know.

@davidherney
Copy link
Collaborator

Hi @sudhakar-cisinlabs ...

Please explain this feature.
I understand that you want to generate the certificate when all activities are completed. Why handle it separately from the course_completed event?

Also, please send me the steps to test the functionality.

Gracias

Saludos

Copy link

@Blackbam Blackbam left a comment

Choose a reason for hiding this comment

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

@sudhakar-cisinlabs Please fix that variable naming, besides of that the PR looks good for me. Will merge when done.



$authogeneratecertificate = $DB->get_record('simplecertificate', ['course' => $courseid], 'autogeneratecertificate');
if(!$authogeneratecertificate || $authogeneratecertificate->autogeneratecertificate === 0)

Choose a reason for hiding this comment

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

@sudhakar-cisinlabs Typo in naming: Please use $autoGenerateCertificate for the name of the variable. Thanks

Copy link
Author

Choose a reason for hiding this comment

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

I have made the changes as per your request.

Choose a reason for hiding this comment

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

@sudhakar-cisinlabs You are in the wrong repo though. This was intended for the fork: https://github.com/vmk-dev/moodle-mod_simplecertificate

@davidherney That was actually a special task, not intended for your main repo. All open source though, so if you like any functionality be free to pick or merge.

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.

3 participants