Skip to content

Commit

Permalink
Replacing "Sarlab" with "ENLARGE" or "myFrontier"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenink committed Nov 4, 2019
1 parent 4cdfc21 commit 111963e
Show file tree
Hide file tree
Showing 15 changed files with 197 additions and 194 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
## 1. Content

This plugin is an LTI subplugin that simplifies and enhances the connection with Sarlab 8.0.
This plugin is an LTI subplugin that simplifies and enhances the connection with ENLARGE.

Sarlab is a system for managing remote laboratory resources. More information about Sarlab can be found here:
http://sarlabirs.dia.uned.es
ENLARGE is a system for managing remote laboratory resources. More information about ENLARGE can be found here:
http://enlargeirs.dia.uned.es

## 2. License

LTI Sarlab is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
LTI ENLARGE is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
version.

LTI Sarlab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
LTI ENLARGE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.

The GNU General Public License is available on <http://www.gnu.org/licenses/>

## 3. Installation

If you downloaded this plugin from github, you will need to change the folder's name to sarlab. If you
If you downloaded this plugin from github, you will need to change the folder's name to enlarge. If you
downloaded it from Moodle.org, then you are fine.

This is a lti sub-plugin for Moodle so you should place the sarlab folder in your /mod/lti/source folder, inside your
This is a lti sub-plugin for Moodle so you should place the enlarge folder in your /mod/lti/source folder, inside your
Moodle installation directory.

## 4. Dependencies

This plugin is used for providing direct connection to Sarlab from Moodle. You can register in Sarlab here: http://enlargeirs.dia.uned.es
This plugin is used for providing direct connection to ENLARGE from Moodle. You can register in ENLARGE here: http://enlargeirs.dia.uned.es

## 5. Authors

LTI Sarlab has been developed by:
LTI ENLARGE has been developed by:
- Luis de la Torre: [email protected]

at the Computer Science and Automatic Control Department, Spanish Open University (UNED), Madrid, Spain.
8 changes: 4 additions & 4 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Sarlab LTI plugin privacy api.
* ENLARGE LTI plugin privacy api.
*
* @package mod_lti_sarlab
* @package mod_lti_enlarge
* @copyright 2018 Luis de la Torre
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace mod_lti_sarlab\privacy;
namespace mod_lti_enlarge\privacy;
use core_privacy\local\metadata\collection;

/**
* Class to indicate what data stores the plugin, how to export it and how to delete it.
*
* @package mod_lti_sarlab
* @package mod_lti_enlarge
* @copyright 2018 Luis de la Torre
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
24 changes: 12 additions & 12 deletions db/access.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<?php
// This file is part of the Moodle sub-plugin "LTI Sarlab"
<?php
// This file is part of the Moodle sub-plugin "LTI ENLARGE"
//
// LTI Sarlab is free software: you can redistribute it and/or modify
// LTI ENLARGE is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// LTI Sarlab is distributed in the hope that it will be useful,
// LTI ENLARGE is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
//
// LTI Sarlab has been developed by:
// LTI ENLARGE has been developed by:
// - Luis de la Torre: [email protected]
//
// at the Computer Science and Automatic Control, Spanish Open University
// (UNED), Madrid, Spain.

/**
* LTI Sarlab sub-plugin caps
* LTI ENLARGE sub-plugin caps
*
* @package mod_lti_sarlab
* @package mod_lti_enlarge
* @copyright 2015 Luis de la Torre
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand All @@ -32,23 +32,23 @@

$capabilities = array(

'ltisource/sarlab:addinstance' => array(
'ltisource/enlarge:addinstance' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
),
),

'ltisource/sarlab:view' => array(
'ltisource/enlarge:view' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
),
),

'ltisource/sarlab:useexp' => array(
'ltisource/enlarge:useexp' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
Expand All @@ -57,15 +57,15 @@
),
),

'ltisource/sarlab:editexp' => array(
'ltisource/enlarge:editexp' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
),
),

'ltisource/sarlab:createexp' => array(
'ltisource/enlarge:createexp' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
Expand Down
42 changes: 21 additions & 21 deletions db/install.php
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
<?php
// This file is part of the Moodle sub-plugin "LTI Sarlab"
// This file is part of the Moodle sub-plugin "LTI ENLARGE"
//
// LTI Sarlab is free software: you can redistribute it and/or modify
// LTI ENLARGE is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// LTI Sarlab is distributed in the hope that it will be useful,
// LTI ENLARGE is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
//
// LTI Sarlab has been developed by:
// LTI ENLARGE has been developed by:
// - Luis de la Torre: [email protected]
//
// at the Computer Science and Automatic Control, Spanish Open University
// (UNED), Madrid, Spain.

/**
* LTI Sarlab sub-plugin installation
* LTI ENLARGE sub-plugin installation
*
* @package mod_lti_sarlab
* @package mod_lti_enlarge
* @copyright 2015 Luis de la Torre
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

function xmldb_ltisource_sarlab_install() {
function xmldb_ltisource_enlarge_install() {
global $DB;

// Get system context.
$context = context_system::instance();

// Create the sarlab experiences designer role.
// Create the myFrontier experiences designer role.
if (!$DB->record_exists('role', array('shortname' => 'enlargedesigner'))) {
$enlargedesignerid = create_role(get_string('enlargedesigner', 'ltisource_sarlab'),
'enlargedesigner', get_string('enlargedesigner_desc', 'ltisource_sarlab'));
$enlargedesignerid = create_role(get_string('enlargedesigner', 'ltisource_enlarge'),
'enlargedesigner', get_string('enlargedesigner_desc', 'ltisource_enlarge'));
set_role_contextlevels($enlargedesignerid, array(CONTEXT_SYSTEM));
// Assign capabilities.
assign_capability('ltisource/sarlab:addinstance', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/sarlab:view', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/sarlab:useexp', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/sarlab:editexp', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/sarlab:createexp', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/enlarge:addinstance', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/enlarge:view', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/enlarge:useexp', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/enlarge:editexp', CAP_ALLOW, $enlargedesignerid, $context->id, true);
assign_capability('ltisource/enlarge:createexp', CAP_ALLOW, $enlargedesignerid, $context->id, true);
// Assign capabilities for the Remlab Manager block if installed.
if ($DB->record_exists('block', array('name' => 'remlab_manager'))) {
assign_capability('block/remlab_manager:myaddinstance', CAP_ALLOW, $enlargedesignerid, $context->id, true);
Expand All @@ -55,15 +55,15 @@ function xmldb_ltisource_sarlab_install() {
}
}

// Create the sarlab experiences manager role.
// Create the myFrontier experiences manager role.
if (!$DB->record_exists('role', array('shortname' => 'enlargemanager'))) {
$enlargemanagerid = create_role(get_string('enlargemanager', 'ltisource_sarlab'),
'enlargemanager', get_string('enlargemanager_desc', 'ltisource_sarlab'));
$enlargemanagerid = create_role(get_string('enlargemanager', 'ltisource_enlarge'),
'enlargemanager', get_string('enlargemanager_desc', 'ltisource_enlarge'));
set_role_contextlevels($enlargemanagerid, array(CONTEXT_SYSTEM));
// Assign capabilities.
assign_capability('ltisource/sarlab:view', CAP_ALLOW, $enlargemanagerid, $context->id, true);
assign_capability('ltisource/sarlab:useexp', CAP_ALLOW, $enlargemanagerid, $context->id, true);
assign_capability('ltisource/sarlab:editexp', CAP_ALLOW, $enlargemanagerid, $context->id, true);
assign_capability('ltisource/enlarge:view', CAP_ALLOW, $enlargemanagerid, $context->id, true);
assign_capability('ltisource/enlarge:useexp', CAP_ALLOW, $enlargemanagerid, $context->id, true);
assign_capability('ltisource/enlarge:editexp', CAP_ALLOW, $enlargemanagerid, $context->id, true);
// Assign capabilities for the Remlab Manager block if installed.
if ($DB->record_exists('block', array('name' => 'remlab_manager'))) {
assign_capability('block/remlab_manager:myaddinstance', CAP_ALLOW, $enlargemanagerid, $context->id, true);
Expand Down
14 changes: 7 additions & 7 deletions db/uninstall.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<?php
// This file is part of the Moodle sub-plugin "LTI Sarlab"
// This file is part of the Moodle sub-plugin "LTI ENLARGE"
//
// LTI Sarlab is free software: you can redistribute it and/or modify
// LTI ENLARGE is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// LTI Sarlab is distributed in the hope that it will be useful,
// LTI ENLARGE is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
//
// LTI Sarlab has been developed by:
// LTI ENLARGE has been developed by:
// - Luis de la Torre: [email protected]
//
// at the Computer Science and Automatic Control, Spanish Open University
// (UNED), Madrid, Spain.

/**
* Uninstall file for the LTI Sarlab sub-plugin
* Uninstall file for the LTI ENLARGE sub-plugin
*
* @package mod_lti_sarlab
* @package mod_lti_enlarge
* @copyright 2015 Luis de la Torre
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand All @@ -33,7 +33,7 @@
/**
* Custom uninstallation procedure
*/
function xmldb_ltisource_sarlab_uninstall() {
function xmldb_ltisource_enlarge_uninstall() {
global $DB;

$enlargemanagerid = $DB->get_field('role', 'id', array('shortname' => 'enlargemanager'));
Expand Down
14 changes: 7 additions & 7 deletions db/upgrade.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<?php
// This file is part of the Moodle sub-plugin "LTI Sarlab"
// This file is part of the Moodle sub-plugin "LTI ENLARGE"
//
// LTI Sarlab is free software: you can redistribute it and/or modify
// LTI ENLARGE is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// LTI Sarlab is distributed in the hope that it will be useful,
// LTI ENLARGE is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
//
// LTI Sarlab has been developed by:
// LTI ENLARGE has been developed by:
// - Luis de la Torre: [email protected]
//
// at the Computer Science and Automatic Control, Spanish Open University
// (UNED), Madrid, Spain.

/**
* LTI Sarlab sub-plugin upgrade file
* LTI ENLARGE sub-plugin upgrade file
*
* @package mod_lti_sarlab
* @package mod_lti_enlarge
* @copyright 2015 Luis de la Torre
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand All @@ -36,6 +36,6 @@
* @param string $oldversion
* @return true
*/
function xmldb_ltisource_sarlab_upgrade($oldversion) {
function xmldb_ltisource_enlarge_upgrade($oldversion) {
return true;
}
55 changes: 55 additions & 0 deletions lang/en/ltisource_enlarge.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
// This file is part of the Moodle sub-plugin "LTI ENLARGE"
//
// LTI ENLARGE is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// LTI ENLARGE is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
//
// LTI ENLARGE has been developed by:
// - Luis de la Torre: [email protected]
//
// at the Computer Science and Automatic Control, Spanish Open University
// (UNED), Madrid, Spain.

/**
* English language file for the LTI ENLARGE sub-plugin
*
* @package mod_lti_enlarge
* @copyright 2015 Luis de la Torre
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;

$string['pluginname'] = 'LTI ENLARGE';
$string['addenlarge'] = 'ENLARGE';
$string['addenlarge_help'] = 'ENLARGE is a system that facilitates the management of remote laboratories. This activity enables LTI access to its software';
$string['modenlargename'] = 'lti:ENLARGE';

// Strings for capabilities.
$string['enlarge:addinstance'] = 'Add new ENLARGE LTI activities';
$string['enlarge:view'] = 'View ENLARGE LTI activities';
$string['enlarge:useexp'] = 'Assign existing ENLARGE experiences to EJSApp activities';
$string['enlarge:editexp'] = 'Edit existing ENLARGE experiences';
$string['enlarge:createexp'] = 'Create and delete ENLARGE experiences';

// Strings for new roles.
$string['enlargedesigner'] = 'ENLARGE designer';
$string['enlargedesigner_desc'] = 'ENLARGE designers can create, delete, edit and use ENLARGE experiences, as well as assign manager users';
$string['enlargemanager'] = 'ENLARGE manager';
$string['enlargemanager_desc'] = 'ENLARGE managers can edit and use existing ENLARGE experiences';

// Privacy
$string['privacy:metadata:lti_client'] = 'In order to integrate with ENLARGE\'s LTI service, user data needs to be exchanged with that service.';
$string['privacy:metadata:lti_client:userid'] = 'The userid is sent from Moodle to allow you to access your data on myFrontier.';
$string['privacy:metadata:lti_client:fullname'] = 'Your full name is sent to myFrontier to allow a better user experience.';
$string['privacy:metadata:lti_client:role'] = 'Your course role is sent to myFrontier to enable/disable possibilities according to your permissions.';
Loading

0 comments on commit 111963e

Please sign in to comment.