UNIMOODLE / moodle-mod_certifygen

GNU General Public License v3.0
1 stars 1 forks source link

Certifygen Custom Course Certificate Mod

Generation of PDF certificates with connection to digital signature systems and modular storage

Compatibility

The plugin has been tested on the following versions:

Requirements

Languages

Installation via uploaded ZIP file

  1. Log in to your Moodle site as an administrator and go to Site Administration > Plugins > Install plugins.
  2. Upload the ZIP file with the plugin code. You should only be asked to add additional details if your plugin type is not automatically detected.
  3. Verify the plugin validation report and complete the installation.

Manual Installation

The plugin can also be installed by placing the contents of this directory in

{your/moodle/dirroot}/mod/certifygen

Then, log in to your Moodle site as an administrator and go to Site Administration > Notifications to complete the installation.

Alternatively, you can run

php admin/cli/upgrade.php

to complete the installation from the command line.

Global Configuration

{your/moodle/dirroot}/admin/settings.php?section=modsettingcertifygen

CLI Executions

Subplugins

Certifygen validation

Tasks

Check status

There is a task, checkstatus, that is recomended to enable it when the validation subplugin used does not validate inmediately the certificate. This task verify the status of the certificate on the external aplication used by the validation subplugin.

php {your/moodle/dirroot}/admin/cli/scheduled_task.php --execute=\mod_certifygen\task\checkstatus

Check file

There is a task, checkfile, that is recomended to enable it when the validation subplugin used does not receive inmediately the certificate. This task get the certificate from the external aplication used by the validation subplugin.

php {your/moodle/dirroot}/admin/cli/scheduled_task.php --execute=\mod_certifygen\task\checkfile

Check error

There is a task, checkerror. It is responsible for searching for error states in the validation processes and returning them to the not started state, so that the user can start the process again.

php {your/moodle/dirroot}/admin/cli/scheduled_task.php --execute=\mod_certifygen\task\checkerror

Database Tables

Contains definitions about certifygens

Contains information about stores each certifygen models

Contains information about stores each context of a certifygen

Contains information about stores each validation of a certifygen

Contains information about sotores certificate url

Contains information about stores certificate errors

Unit Test

You can run unit tests manually with the following command

php {your/moodle/dirroot}/vendor/bin/phpunit --testsuite mod_certifygen_testsuite