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/public/plugin/justification
Yannick Warnier 3da7f59d1e Internal: Update Database::fetch_array((.*), 'ASSOC') to Databse::fetch_assoc($1) 1 year ago
..
lang Internal: Add missing, untreated, plugins from 1.11.x 1 year ago
view Internal: Add missing, untreated, plugins from 1.11.x 1 year ago
Justification.php Internal: Update Database::fetch_array((.*), 'ASSOC') to Databse::fetch_assoc($1) 1 year ago
README.md Internal: Add missing, untreated, plugins from 1.11.x 1 year ago
add.php Internal: Add justification plugin from 1.11.x 5 years ago
cron.php Internal: Add missing, untreated, plugins from 1.11.x 1 year ago
edit.php Internal: Add justification plugin from 1.11.x 5 years ago
index.php Internal: Add justification plugin from 1.11.x 5 years ago
install.php Internal: Add justification plugin from 1.11.x 5 years ago
justification_by_user.php Internal: Add missing, untreated, plugins from 1.11.x 1 year ago
list.php Internal: Add missing, untreated, plugins from 1.11.x 1 year ago
plugin.php Internal: Add justification plugin from 1.11.x 5 years ago
set_course.php Internal: Add missing, untreated, plugins from 1.11.x 1 year ago
uninstall.php Internal: Add justification plugin from 1.11.x 5 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;