README.md 989 Bytes
Newer Older
Rémi Lefeuvre's avatar
init  
Rémi Lefeuvre committed
1 2
# MASSIMILATE
## I will oversee the assimilation of countless million users !
Rémi Lefeuvre's avatar
Rémi Lefeuvre committed
3 4 5

-----

Rémi Lefeuvre's avatar
Rémi Lefeuvre committed
6
## Requirements
Rémi Lefeuvre's avatar
Rémi Lefeuvre committed
7

Rémi Lefeuvre's avatar
Rémi Lefeuvre committed
8
### Needed Role
Rémi Lefeuvre's avatar
Rémi Lefeuvre committed
9

Rémi Lefeuvre's avatar
README  
Rémi Lefeuvre committed
10
You must create a new role called "schoolmanager" :
Rémi Lefeuvre's avatar
Rémi Lefeuvre committed
11 12 13 14 15

        global $DB;
        if (!$DB->record_exists('role', ['shortname' => 'schoolmanager'])) {
            $roleid = create_role("Gestionnaire établissement", 'schoolmanager', "created by local_massimilate");
            assign_capability('local/massimilate:import', CAP_ALLOW, $roleid, context_system::instance());
16
            assign_capability('local/massimilate:cohorts', CAP_ALLOW, $roleid, context_system::instance());
Rémi Lefeuvre's avatar
Rémi Lefeuvre committed
17 18 19 20 21 22
        }

You can run this code in db/install.php file for automation :

        function xmldb_local_massimilate_install() {
            // above code
Rémi Lefeuvre's avatar
README  
Rémi Lefeuvre committed
23 24
        }

Rémi Lefeuvre's avatar
Rémi Lefeuvre committed
25 26 27 28 29 30 31 32 33 34 35 36 37
### Bower via npm (as root)

        npm install -g bower

## Installation

### Prepare AMD JS files

        npm install
        bower install
        grunt install
        rm -rf node_modules
        rm -rf bower_components