Skip to content

Commit 80cc154

Browse files
committed
Replacing more "sarlab" with "enlarge"
1 parent 159736f commit 80cc154

12 files changed

+54
-54
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ created with Easy Java/Javascript Simulations (EjsS) and which are added to a Mo
66
The Java applets or the Javascript applications should have been created with version 5.1 (build 20150613 or later) of
77
EjsS to work properly.
88

9-
This plugin supports (but does not require) the use of SARLAB for managing the connection to the remote labs.
9+
This plugin supports (but does not require) the use of ENLARGE for managing the connection to the remote labs.
1010

1111
## 2. License
1212

@@ -30,11 +30,11 @@ your Moodle installation directory.
3030

3131
When installing remlab manager for the first time, you will need to set a few variables:
3232

33-
sarlab_IP: This variable defines the IP(s) address(es) of the SARLAB system(s) used for managing the access to
34-
the remote laboratories. If left empty, the plugin understands that SARLAB is not used.
33+
enlarge_IP: This variable defines the IP(s) address(es) of the ENLARGE system(s) used for managing the access to
34+
the remote laboratories. If left empty, the plugin understands that ENLARGE is not used.
3535

36-
sarlab_port: This variable defines the port(s) used to communicate with the SARLAB system(s). If left empty, the
37-
plugin understands that SARLAB is not used.
36+
enlarge_port: This variable defines the port(s) used to communicate with the ENLARGE system(s). If left empty, the
37+
plugin understands that ENLARGE is not used.
3838

3939
## 4. Dependencies
4040

classes/task/delete_sarlab_keys.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
namespace block_remlab_manager\task;
3232

3333
/**
34-
* Task for sarlab keys in the block_remlab_manager_sb_keys table.
34+
* Task for ENLARGE keys in the block_remlab_manager_sb_keys table.
3535
*
3636
* @package block_remlab_manager
3737
* @copyright 2018 Luis de la Torre
@@ -50,7 +50,7 @@ public function get_name() {
5050
}
5151

5252
/**
53-
* Deletes the sarlab keys that are one day old or more.
53+
* Deletes the ENLARGE keys that are one day old or more.
5454
*
5555
* @return bool|void
5656
* @throws

classes/task/synchronise_sarlab_users.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ function update_role($record, $user_id, $enlargeroleid) {
156156
}
157157
}
158158
foreach ($enlargedesignerusersid as $enlargedesigneruserid) {
159-
if (!in_array($enlargedesigneruserid, $sarlabirsdesignerusersid)) {
159+
if (!in_array($enlargedesigneruserid, $enlargeirsdesignerusersid)) {
160160
$DB->delete_records('role_assignments', ['roleid' => $enlargedesignerroleid,
161161
'userid' => $enlargedesigneruserid]);
162162
}
163163
}
164164
foreach ($enlargemanagerusersid as $enlargemanageruserid) {
165-
if (!in_array($enlargemanageruserid, $sarlabirsmanagerusersid)) {
165+
if (!in_array($enlargemanageruserid, $enlargeirsmanagerusersid)) {
166166
$DB->delete_records('role_assignments', ['roleid' => $enlargemanagerroleid,
167167
'userid' => $enlargemanageruserid]);
168168
}

db/install.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function xmldb_block_remlab_manager_install() {
3636
// Get system context.
3737
$context = context_system::instance();
3838

39-
// Check if the sarlab designer user role exists.
39+
// Check if the ENLARGE designer user role exists.
4040
if ($DB->record_exists('role', array('shortname' => 'enlargedesigner'))) {
4141
$enlargedesignerid = $DB->get_field('role', 'id', array('shortname' => 'enlargedesigner'));
4242
// If so, assign capabilities.
@@ -45,7 +45,7 @@ function xmldb_block_remlab_manager_install() {
4545
assign_capability('block/remlab_manager:view', CAP_ALLOW, $enlargedesignerid, $context->id, true);
4646
}
4747

48-
// Check if the sarlab manager role exists.
48+
// Check if the ENLARGE manager role exists.
4949
if ($DB->record_exists('role', array('shortname' => 'enlargemanager'))) {
5050
$enlargemanagerid = $DB->get_field('role', 'id', array('shortname' => 'enlargemanager'));
5151
// If so, assign capabilities.

db/install.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<INDEX NAME="practiceintro" UNIQUE="false" FIELDS="practiceintro"/>
5959
</INDEXES>
6060
</TABLE>
61-
<TABLE NAME="block_remlab_manager_sb_keys" COMMENT="Stores the access keys used by Sarlab to grant access to a remote lab experience"
61+
<TABLE NAME="block_remlab_manager_sb_keys" COMMENT="Stores the access keys used by ENLARGE to grant access to a remote lab experience"
6262
PREVIOUS="block_remlab_manager_exp2prc">
6363
<FIELDS>
6464
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" NEXT="user"/>

db/upgrade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function xmldb_block_remlab_manager_upgrade($oldversion) {
100100
}
101101

102102
if ($oldversion < '2017092700') {
103-
// Delete the fields related to sarlab experiences.
103+
// Delete the fields related to ENLARGE experiences.
104104
$dbman = $DB->get_manager();
105105
$table = new xmldb_table('block_remlab_manager_conf');
106106
$field = new xmldb_field('usingsarlab', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL,
@@ -115,7 +115,7 @@ function xmldb_block_remlab_manager_upgrade($oldversion) {
115115
}
116116

117117
if ($oldversion < '2018070800') {
118-
// Delete the fields related to sarlab experiences.
118+
// Delete the fields related to ENLARGE experiences.
119119
$dbman = $DB->get_manager();
120120
$table = new xmldb_table('block_remlab_manager_conf');
121121
$field = new xmldb_field('usestate', XMLDB_TYPE_TEXT, '20', null, null,

edit_form.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function specific_definition($mform) {
3636
// Section header title according to language file.
3737
$mform->addElement('header', 'sarlab_header', get_string('sarlab_header', 'block_remlab_manager'));
3838

39-
// Indicate the LTI activity that connects to Sarlab.
39+
// Indicate the LTI activity that connects to ENLARGE.
4040
$mform->addElement('text', 'config_sarlab_lti_url', get_string('sarlab_lti_url', 'block_remlab_manager'));
4141
$mform->setType('config_sarlab_lti_url', PARAM_TEXT);
4242
}

lang/en/block_remlab_manager.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@
3636
$string['delete_existing_local_experience'] = 'Delete local experience';
3737
$string['or'] = 'or';
3838
$string['configure_new_local_experience'] = 'Create new local experience';
39-
$string['go_to_sarlab'] = 'Go to Sarlab';
39+
$string['go_to_enlarge'] = 'Go to ENLARGE';
4040

4141
// Strings in settings.php.
42-
$string['default_communication_set'] = "Communication settings. (Only important if you are also using Sarlab)";
43-
$string['sarlab_IP'] = "Name and IP address of the Sarlab server(s)";
44-
$string['sarlab_IP_description'] = "If you are using Sarlab (a system that manages connections to remote laboratories resources), you need to provide the IP address of the server that runs the Sarlab system you want to use. Otherwise, this value will not be used, so you can leave the default value. If you have more than one Sarlab server (for example, one at 127.0.0.1 and a second one at 127.0.0.2), insert the IP addresses separated by semicolons: 127.0.0.1;127.0.0.2. Additionally, you can provide a name in order to identify each Sarlab server: 'Sarlab Madrid'127.0.0.1;'Sarlab Huelva'127.0.0.2";
45-
$string['sarlab_port'] = "Sarlab communication port(s)";
46-
$string['sarlab_port_description'] = "If you are using Sarlab (a system that manages connections to remote laboratories resources), you need to provide a valid port for establishing the communications with the Sarlab server. Otherwise, this value will not be used, so you can leave the default value. If you have more than one Sarlab server (for example, one using port 443 and a second one also using port 443), insert the values separated by semicolons: 443;443";
42+
$string['default_communication_set'] = "Communication settings. (Only important if you are also using ENLARGE)";
43+
$string['enlarge_IP'] = "Name and IP address of the ENLARGE server(s)";
44+
$string['enlarge_IP_description'] = "If you are using ENLARGE (a system that manages connections to remote laboratories resources), you need to provide the IP address of the server that runs the ENLARGE system you want to use. Otherwise, this value will not be used, so you can leave the default value. If you have more than one ENLARGE server (for example, one at 127.0.0.1 and a second one at 127.0.0.2), insert the IP addresses separated by semicolons: 127.0.0.1;127.0.0.2. Additionally, you can provide a name in order to identify each ENLARGE server: 'ENLARGE Madrid'127.0.0.1;'ENLARGE Huelva'127.0.0.2";
45+
$string['enlarge_port'] = "ENLARGE communication port(s)";
46+
$string['enlarge_port_description'] = "If you are using ENLARGE (a system that manages connections to remote laboratories resources), you need to provide a valid port for establishing the communications with the ENLARGE server. Otherwise, this value will not be used, so you can leave the default value. If you have more than one ENLARGE server (for example, one using port 443 and a second one also using port 443), insert the values separated by semicolons: 443;443";
4747

4848
// Strings in edit_form.php.
49-
$string['sarlab_header'] = 'Configure Sarlab for this block instance';
50-
$string['sarlab_lti_url'] = 'URL to the Sarlab LTI activity ';
49+
$string['enlarge_header'] = 'Configure ENLARGE for this block instance';
50+
$string['enlarge_lti_url'] = 'URL to the ENLARGE LTI activity ';
5151

5252
// Strings for capabilities.
5353
$string['remlab_manager:addinstance'] = 'Add a new Remlab Manager block';
5454
$string['remlab_manager:myaddinstance'] = 'Add a new Remlab Manager block to My home';
5555
$string['remlab_manager:view'] = 'View the Remlab Manager block';
5656

5757
// Strings for new roles.
58-
$string['enlargedesigner'] = 'Sarlab designer';
59-
$string['enlargedesigner_desc'] = 'Sarlab designers can create, delete, edit and use Sarlab experiences';
60-
$string['enlargemanager'] = 'Sarlab manager';
61-
$string['enlargemanager_desc'] = 'Sarlab managers can edit and use existing Sarlab experiences';
58+
$string['enlargedesigner'] = 'ENLARGE designer';
59+
$string['enlargedesigner_desc'] = 'ENLARGE designers can create, delete, edit and use ENLARGE experiences';
60+
$string['enlargemanager'] = 'ENLARGE manager';
61+
$string['enlargemanager_desc'] = 'ENLARGE managers can edit and use existing ENLARGE experiences';
6262

6363
// Strings in view.php.
6464
$string['configure_lab'] = 'Configure remote lab';
@@ -68,7 +68,7 @@
6868
$string['cancel_delete_button'] = 'No';
6969

7070
// Strings in tasks.
71-
$string['delete_sarlab_keys'] = 'Delete Sarlab keys';
71+
$string['delete_enlarge_keys'] = 'Delete ENLARGE keys';
7272

7373
$string['ping_remote_labs'] = 'Check if remote lab equipments are alive';
7474

@@ -88,7 +88,7 @@
8888
$string['mail_content2_lab_up'] = ' - IP: ';
8989
$string['mail_content3_lab_up'] = ') is operative once again.';
9090

91-
$string['synchronise_sarlab_users'] = 'Synchronise Sarlab users';
91+
$string['synchronise_enlarge_users'] = 'Synchronise ENLARGE users';
9292

9393
$string['refresh_usestate_field'] = 'Refresh the use state of remote labs';
9494

lang/es/block_remlab_manager.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@
3636
$string['delete_existing_local_experience'] = 'Borrar experiencia local';
3737
$string['or'] = 'o';
3838
$string['configure_new_local_experience'] = 'Crear nueva experiencia local';
39-
$string['go_to_sarlab'] = 'Ir a Sarlab';
39+
$string['go_to_enlarge'] = 'Ir a ENLARGE';
4040

4141
// Strings in settings.php.
42-
$string['default_communication_set'] = "Opciones de comunicaci&oacute;n. (Importante s&oacute;lo si tambi&eacute;n usa Sarlab)";
43-
$string['sarlab_IP'] = "Nombre y direcci&oacute;n IP del servidor Sarlab";
44-
$string['sarlab_IP_description'] = "Si usa Sarlab (un sistema que gestiona las conexiones a recursos de laboratorios remotos), debe proporcionar la direcci&oacute;n IP del servidor que ejecuta el sistema Sarlab que desea utilizar. En caso contrario, esta variable no se usa, de modo que puede dejar el valor por defecto. Si tiene m&aacute;s de un servidor Sarlab (por ejemplo, uno en 127.0.0.1 y otro en 127.0.0.2), inserte las direcciones IP separadas por puntos y comas: 127.0.0.1;127.0.0.2. Adem&aacute;s, puede proporcionar un nombre para identificar cada servidor Sarlab: 'Sarlab Madrid'127.0.0.1;'Sarlab Huelva'127.0.0.2";
45-
$string['sarlab_port'] = "Puerto(s) de comunicaci&oacute;n con Sarlab";
46-
$string['sarlab_port_description'] = "Si usa Sarlab (un sistema que gestiona las conexiones a recursos de laboratorios remotos), debe proporcionar un puerto v&aacute;lido para establecer las comunicaciones necesarias con el servidor de Sarlab. En caso contrario, esta variable no se usa, de modo que puede dejar el valor por defecto. Si tiene m&aacute;s de un servidor Sarlab (por ejemplo, uno usando el puerto 443 y un segundo usando tambi&eacute;n el puerto 443), inserte los valores separados por puntos y comas: 443;443";
42+
$string['default_communication_set'] = "Opciones de comunicaci&oacute;n. (Importante s&oacute;lo si tambi&eacute;n usa ENLARGE)";
43+
$string['enlarge_IP'] = "Nombre y direcci&oacute;n IP del servidor ENLARGE";
44+
$string['enlarge_IP_description'] = "Si usa ENLARGE (un sistema que gestiona las conexiones a recursos de laboratorios remotos), debe proporcionar la direcci&oacute;n IP del servidor que ejecuta el sistema ENLARGE que desea utilizar. En caso contrario, esta variable no se usa, de modo que puede dejar el valor por defecto. Si tiene m&aacute;s de un servidor ENLARGE (por ejemplo, uno en 127.0.0.1 y otro en 127.0.0.2), inserte las direcciones IP separadas por puntos y comas: 127.0.0.1;127.0.0.2. Adem&aacute;s, puede proporcionar un nombre para identificar cada servidor ENLARGE: 'ENLARGE Madrid'127.0.0.1;'ENLARGE Huelva'127.0.0.2";
45+
$string['enlarge_port'] = "Puerto(s) de comunicaci&oacute;n con ENLARGE";
46+
$string['enlarge_port_description'] = "Si usa ENLARGE (un sistema que gestiona las conexiones a recursos de laboratorios remotos), debe proporcionar un puerto v&aacute;lido para establecer las comunicaciones necesarias con el servidor de ENLARGE. En caso contrario, esta variable no se usa, de modo que puede dejar el valor por defecto. Si tiene m&aacute;s de un servidor ENLARGE (por ejemplo, uno usando el puerto 443 y un segundo usando tambi&eacute;n el puerto 443), inserte los valores separados por puntos y comas: 443;443";
4747

4848
// Strings in edit_form.php.
49-
$string['sarlab_header'] = 'Configurar Sarlab para esta instancia del bloque';
50-
$string['sarlab_lti_url'] = 'URL a la actividad LTI Sarlab';
49+
$string['enlarge_header'] = 'Configurar ENLARGE para esta instancia del bloque';
50+
$string['enlarge_lti_url'] = 'URL a la actividad LTI ENLARGE';
5151

5252
// Strings for capabilities.
5353
$string['remlab_manager:addinstance'] = 'Añadir un nuevo bloque Gestor Remlab';
5454
$string['remlab_manager:myaddinstance'] = 'Añadir un nuevo bloque Gestor Remlab';
5555
$string['remlab_manager:view'] = 'Ver el bloque Gestor Remlab';
5656

5757
// Strings for new roles.
58-
$string['enlargedesigner'] = 'Diseñador Sarlab';
59-
$string['enlargedesigner_desc'] = 'Los diseñadores Sarlab pueden crear, borrar, editar y usar experiencias Sarlab';
60-
$string['enlargemanager'] = 'Gestor Sarlab';
61-
$string['enlargemanager_desc'] = 'Los gestores Sarlab pueden editar y usar experiencias Sarlab';
58+
$string['enlargedesigner'] = 'Diseñador ENLARGE';
59+
$string['enlargedesigner_desc'] = 'Los diseñadores ENLARGE pueden crear, borrar, editar y usar experiencias ENLARGE';
60+
$string['enlargemanager'] = 'Gestor ENLARGE';
61+
$string['enlargemanager_desc'] = 'Los gestores ENLARGE pueden editar y usar experiencias ENLARGE';
6262

6363
// Strings in view.php.
6464
$string['configure_lab'] = 'Configurar laboratorio remoto';
@@ -68,7 +68,7 @@
6868
$string['cancel_delete_button'] = 'No';
6969

7070
// Strings in tasks.
71-
$string['delete_sarlab_keys'] = 'Eliminar claves de Sarlab';
71+
$string['delete_enlarge_keys'] = 'Eliminar claves de ENLARGE';
7272

7373
$string['ping_remote_labs'] = 'Comprobar si los equipos de los laboratorios remotos est&aacute;n operativos';
7474

@@ -88,7 +88,7 @@
8888
$string['mail_content2_lab_up'] = ' - IP: ';
8989
$string['mail_content3_lab_up'] = ') vuelve a estar operativo.';
9090

91-
$string['synchronise_sarlab_users'] = 'Sincronizar usuarios Sarlab';
91+
$string['synchronise_enlarge_users'] = 'Sincronizar usuarios ENLARGE';
9292

9393
$string['refresh_usestate_field'] = 'Refrescar estado de uso de laboratorios remotos';
9494

settings.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// (UNED), Madrid, Spain.
2222

2323
/**
24-
* File for configuring the block instances (selecting the Sarlab server in charge of managing the remote labs)
24+
* File for configuring the block instances (selecting the ENLARGE server in charge of managing the remote labs)
2525
*
2626
* @package block_remlab_manager
2727
* @copyright 2015 Luis de la Torre
@@ -38,18 +38,18 @@
3838
));
3939

4040
$settings->add(new admin_setting_configtext(
41-
'block_remlab_manager/sarlab_IP',
42-
get_string('sarlab_IP', 'block_remlab_manager'),
43-
get_string('sarlab_IP_description', 'block_remlab_manager'),
41+
'block_remlab_manager/myFrontier_IP',
42+
get_string('myFrontier_IP', 'block_remlab_manager'),
43+
get_string('myFrontier_IP_description', 'block_remlab_manager'),
4444
'127.0.0.1',
4545
PARAM_TEXT,
4646
'13'
4747
));
4848

4949
$settings->add(new admin_setting_configtext(
50-
'block_remlab_manager/sarlab_port',
51-
get_string('sarlab_port', 'block_remlab_manager'),
52-
get_string('sarlab_port_description', 'block_remlab_manager'),
50+
'block_remlab_manager/myFrontier_port',
51+
get_string('myFrontier_port', 'block_remlab_manager'),
52+
get_string('myFrontier_port_description', 'block_remlab_manager'),
5353
443,
5454
PARAM_TEXT,
5555
'4'

simplehtml_form.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// (UNED), Madrid, Spain.
2222

2323
/**
24-
* Page for configuring the data needed by a non-Sarlab remote lab application
24+
* Page for configuring the data needed by a non-ENLARGE remote lab application
2525
*
2626
* @package block_remlab_manager
2727
* @copyright 2015 Luis de la Torre
@@ -212,7 +212,7 @@ public function validation($data, $files) {
212212
$editing = $data['editing'];
213213
$showableexperiences = get_showable_experiences();
214214
if ($editing == 0) { // New experience
215-
// Make sure the practice name or identifier does not exist locally nor remotely (in Sarlab)
215+
// Make sure the practice name or identifier does not exist locally nor remotely (in ENLARGE)
216216
if (in_array($data['practiceintro'], $showableexperiences)) {
217217
$errors['practiceintro'] = get_string('existing_practice_id', 'block_remlab_manager');
218218
}

view.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// (UNED), Madrid, Spain.
2222

2323
/**
24-
* Page for configuring the data needed by a non-Sarlab remote lab application
24+
* Page for configuring the data needed by a non-ENLARGE remote lab application
2525
*
2626
* @package block_remlab_manager
2727
* @copyright 2015 Luis de la Torre
@@ -97,7 +97,7 @@
9797
$practiceintro = $experiences[$experienceid];
9898
$toform['practiceintro'] = $practiceintro;
9999
$toform['originalpracticeintro'] = $practiceintro;
100-
// If the experience doesn't exist (it is defined in Sarlab but not in Moodle yet), create it.
100+
// If the experience doesn't exist (it is defined in ENLARGE but not in Moodle yet), create it.
101101
if (!$DB->record_exists('block_remlab_manager_conf', array('practiceintro' => $practiceintro)) &&
102102
$practiceintro != '') {
103103
$default_conf = default_rem_lab_conf($practiceintro, $USER->username);

0 commit comments

Comments
 (0)