Skip to content

Commit

Permalink
CS updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchi committed Nov 13, 2024
1 parent ed42938 commit 34bf62d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
18 changes: 12 additions & 6 deletions lang/en/local_enrolstaff.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

$string['abouttobeenrolled'] = 'You are about to be enrolled on <strong>{$a->coursename}</strong> with the role of <strong>{$a->rolename}</strong><br /><br />';
$string['addmore'] = "Enrol on another module";

$string['cannotenrolself'] = 'You are not permitted to do this action';
$string['codesbcas'] = "Comma separated list of BCAS module code prefixes";
$string['codesqahe'] = "Comma separated list of QAHE module code prefixes";
Expand All @@ -35,11 +36,11 @@
$string['coursesearch'] = "Module code";
$string['currentcourses'] = 'Current enrolments';

$string['enrol-selfservice'] = "Staff enrolment self-service";
$string['enrolconfirmation'] = 'You have been enrolled on {$a->shortname} as {$a->rolename}';
$string['enrolintro'] = "<p>To remove yourself as module leader from a module page, <strong><a href='mailto:[email protected]?subject=Module%20Leader%20enrolment%20deletion%20request&amp;body=Dear%20Student%20Registry,%0D%0A%0D%0APlease%20remove%20me%20as%20module%20leader%20from%20module'>please click here to generate an email template to send to Student Registry</a></strong></p>";
$string['enrolmenthome'] = 'Enrolment home';
$string['enrolmentnotificationmessage'] = 'Notification message';
$string['enrolmentnotificationmessage_desc'] = 'You can include the following codes in the message [coursefullname], [recipientfirstname], [rolename], [shortname], [userfullname]';
$string['enrolmentnotificationmessage_default'] = "Dear [recipientfirstname],
[userfullname] has been enrolled on \"[coursefullname]\" with the \"[rolename]\" role.
Expand All @@ -48,6 +49,7 @@
Kind regards
";
$string['enrolmentnotificationmessage_desc'] = 'You can include the following codes in the message [coursefullname], [recipientfirstname], [rolename], [shortname], [userfullname]';
$string['enrolmentnotificationmessageenable'] = 'Enable Module Leader notifications';
$string['enrolmentnotificationmessageenable_desc'] = 'Should emails be sent to the module leader when someone self-enrols?';
$string['enrolmentnotificationsubject'] = 'Subject of notification email';
Expand All @@ -57,9 +59,8 @@
$string['enrolrequestalert'] = '{$a->schoolemail} has been sent a request for you to be enrolled on {$a->shortname} as {$a->rolename}. <br /><br /> You will receive an email confirmation with further information.';
$string['enrolrequestedschool'] = 'Please enrol me on {$a->fullname} as {$a->rolename}.';
$string['enrolrequesteduser'] = 'This is confirmation of your request to be added to {$a->fullname} as {$a->rolename}. The turnaround time for processing module leader requests is 2-3 working days. If you do not have access to the module after that time, please let us know.';
$string['enrolwarning'] = "Please only enrol yourself on this module if you are teaching on it or have a specific operational requirement.";
$string['enrol-selfservice'] = "Staff enrolment self-service";
$string['enrolstaff:managestaffenrolments'] = "Manage staff enrolments";
$string['enrolwarning'] = "Please only enrol yourself on this module if you are teaching on it or have a specific operational requirement.";
$string['excludefullname'] = "Exclude from search by fullname (comma separated)";
$string['excludeid'] = "Exclude from search by id (comma separated)";
$string['excludeshortname'] = "Exclude from search by shortname (comma separated)";
Expand All @@ -83,25 +84,30 @@
$string['nocourses'] = "You are not enrolled on any courses that can be un-enrolled from via this service.";
$string['nomatchingmodules'] = 'No modules match the term <strong>{$a->coursesearch}</strong>';
$string['nopermission'] = "You do not have permission to view this page (please check you are logged in).";

$string['otherunitleaders'] = "Other module leaders currently enrolled on this module are: ";

$string['pluginname'] = "Staff Enrolment";

$string['qahecontact'] = 'QAHE contact email';
$string['qahecontact_desc'] = 'This account will be emailed when someone requests to be enrolled on a QA module as Module leader';

$string['requestemailsubject'] = 'Module Leader enrolment request for {$a->shortname}';
$string['requestforenrolment'] = 'You are about to send a request for enrolment on <strong>{$a->coursename}</strong> with the role of <strong>{$a->rolename}</strong><br /><br />';
$string['role'] = "Select a role";
$string['roleidssolent'] = 'Comma separated list of Solent role IDs';
$string['roleidsbcas'] = 'Comma separated list of BCAS role IDs';
$string['roleidsqahe'] = 'Comma separated list of QAHE role IDs';
$string['selectmodule'] = 'Select module';
$string['roleidssolent'] = 'Comma separated list of Solent role IDs';

$string['selectamodule'] = 'Select a module';
$string['selectarole'] = 'Select a role';
$string['selectmodule'] = 'Select module';
$string['sendrequest'] = 'You are about to be enrolled on <strong>{$a->fullname}</strong> with the role of <strong>{$a->role}</strong><br /><br />';
$string['sendrequestleader'] = 'You are about to send a request for enrolment on <strong>{$a->fullname}</strong> with the role of <strong>{$a->role}</strong><br /><br />';
$string['studentrecords'] = 'Student records email';
$string['unenrolconfirm'] = "You have been unenrolled from your selected modules.";

$string['unenrol'] = "Unenrol from modules";
$string['unenrolconfirm'] = "You have been unenrolled from your selected modules.";
$string['unenrolfrommodules'] = 'Unenrol from modules';
$string['unenrolheader'] = "<br /><hr><h2>Staff unenrolment self-service</h2>";
$string['unenrolintro'] = "To un-enrol yourself from modules you no longer require access to as tutor, non-editing tutor or technician please use the unenrolment self-service:<br /><br />";
Expand Down
6 changes: 3 additions & 3 deletions tests/api_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @covers \local_enrolstaff\local\api
* @group sol
*/
class api_test extends advanced_testcase {
final class api_test extends advanced_testcase {

use helper_trait;

Expand All @@ -57,7 +57,7 @@ private function setup_bitsnbobs() {
*
* @return void
*/
public function test_moduleleader() {
public function test_moduleleader(): void {
$this->resetAfterTest();
$this->setup_bitsnbobs();
$this->getDataGenerator()->enrol_user($this->users['leader1']->id,
Expand Down Expand Up @@ -87,7 +87,7 @@ public function test_moduleleader() {
*
* @return void
*/
public function test_is_partner_course() {
public function test_is_partner_course(): void {
$this->resetAfterTest();
$this->setup_bitsnbobs();
$ispartner = \local_enrolstaff\local\api::is_partner_course($this->courses['QHO1']);
Expand Down
14 changes: 7 additions & 7 deletions tests/user_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @covers \local_enrolstaff\local\user
* @group sol
*/
class user_test extends advanced_testcase {
final class user_test extends advanced_testcase {

use helper_trait;

Expand All @@ -58,7 +58,7 @@ private function setup_bitsnbobs() {
*
* @return void
*/
public function test_properties() {
public function test_properties(): void {
global $USER;
$this->resetAfterTest();
$this->setup_bitsnbobs();
Expand Down Expand Up @@ -91,7 +91,7 @@ public function test_properties() {
*
* @return void
*/
public function test_get_roles_menu() {
public function test_get_roles_menu(): void {
global $USER;
$this->resetAfterTest();
$this->setup_bitsnbobs();
Expand Down Expand Up @@ -130,7 +130,7 @@ public function test_get_roles_menu() {
*
* @return void
*/
public function test_is_role_valid() {
public function test_is_role_valid(): void {
global $DB, $USER;
$this->resetAfterTest();
$this->setup_bitsnbobs();
Expand Down Expand Up @@ -175,7 +175,7 @@ public function test_is_role_valid() {
*
* @return void
*/
public function test_user_can_enrolself() {
public function test_user_can_enrolself(): void {
global $USER;
$this->resetAfterTest();
$this->setup_bitsnbobs();
Expand Down Expand Up @@ -222,7 +222,7 @@ public function test_user_can_enrolself() {
*
* @return void
*/
public function test_can_enrolselfon() {
public function test_can_enrolselfon(): void {
global $USER;
$this->resetAfterTest();
$this->setup_bitsnbobs();
Expand Down Expand Up @@ -279,7 +279,7 @@ public function test_can_enrolselfon() {
*
* @return void
*/
public function test_course_search() {
public function test_course_search(): void {
global $USER;
$this->resetAfterTest();
$this->setup_bitsnbobs();
Expand Down

0 comments on commit 34bf62d

Please sign in to comment.