Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/plugin/justification
NicoDucou f4d8c9aa02 User: Plugin: Justification: add option to enable access to plugin management of user's jutificatives to session admins - refs BT#21386 2 years ago
..
lang User: Plugin: Justification: add option to enable access to plugin management of user's jutificatives to session admins - refs BT#21386 2 years ago
view Minor - add lang var 6 years ago
Justification.php User: Plugin: Justification: add option to enable access to plugin management of user's jutificatives to session admins - refs BT#21386 2 years ago
README.md Plugin: Justification: extend Readme to specify what the plugin is entend to do and how it can be used -refs #4640 3 years ago
add.php Minor - format code 6 years ago
cron.php Minor - format code 6 years ago
edit.php Minor - format code 6 years ago
index.php Minor - format code 6 years ago
install.php Add license and api_protect_admin_script() BT#16385 6 years ago
justification_by_user.php User: Plugin: Justification: add option to enable access to plugin management of user's jutificatives to session admins - refs BT#21386 2 years ago
list.php User: Plugin: Justification: add option to enable access to plugin management of user's jutificatives to session admins - refs BT#21386 2 years ago
plugin.php WIP: Add justification plugin BT#16385 6 years ago
set_course.php Minor - format code 6 years ago
uninstall.php Add license and api_protect_admin_script() BT#16385 6 years ago

README.md

Justification

  1. Enable the plugin.
  2. Create the justification files in plugin/justification/list.php

When activating the justification plugin it adds a link at the bottom of the plateform block of the administration page to open plugin/justification/list.php to create and manage the justification needed. On this page the admin can manage the list of justification that would be asked to users, and select a course for automatic inscription if the justificatives are completed and desinscription if justicatives are not completed or outdated. For the automatic subscription and removal you need to create a cron to run plugin/justification/cron.php periodically to do the verification. The justification plugin only activate a new tab in the profile for the user to upload some justification (the list of which are defined by the administrator on the page plugin/justification/list.php indicated above). If the notification system is activated then you have the ability to create notification to be sent before the expiration of the justification if configured so. To activate it you have to set it in app/config/configuration.php with :

// Show notification events
/*CREATE TABLE IF NOT EXISTS notification_event (
id INT unsigned NOT NULL auto_increment PRIMARY KEY,
        title VARCHAR(255),
        content TEXT,
        link TEXT,
        persistent INT,
        day_diff INT,
        event_type VARCHAR(255)
    );
ALTER TABLE notification_event ADD COLUMN event_id INT NULL;
CREATE TABLE IF NOT EXISTS notification_event_rel_user (
    id INT UNSIGNED AUTO_INCREMENT NOT NULL,
    event_id INT unsigned,
    user_id INT,
    INDEX FK_EVENT (event_id),
    INDEX FK_USER (user_id),
    PRIMARY KEY (id)
);
ALTER TABLE notification_event_rel_user ADD CONSTRAINT FK_EVENT FOREIGN KEY (event_id) REFERENCES notification_event (id) ON DELETE CASCADE;
ALTER TABLE notification_event_rel_user ADD CONSTRAINT FK_USER FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE;
*/
// create new user text extra field called 'notification_event' to save the persistent settings.
// $_configuration['notification_event'] = false;