Skip to content

Commit

Permalink
Prepare for Moodle 4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Apr 21, 2024
1 parent 547726d commit 0a90c1b
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 63 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/moodle-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,6 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci phplint

- name: PHP Copy/Paste Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpcpd

- name: PHP Mess Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Moodle Differentiator
=========================
[![Moodle Plugin CI](https://github.com/lucaboesch/moodle-local_differentiator/workflows/Moodle%20Plugin%20CI/badge.svg?branch=main)](https://github.com/lucaboesch/moodle-local_differentiator/actions?query=workflow%3A%22Moodle+Plugin+CI%22+branch%3Amain)
[![GitHub
Release](https://img.shields.io/github/release/lucaboesch/moodle-local_differentiator.svg)](https://github.com/lucaboesch/moodle-local_differentiator/releases)
[![PHP Support](https://img.shields.io/badge/php-7.4--8.3-blue)](https://github.com/lucaboesch/moodle-local_differentiator/actions)
[![Moodle Support](https://img.shields.io/badge/Moodle-4.1--4.4-orange)](https://github.com/lucaboesch/moodle-local_differentiator/actions)
[![License GPL-3.0](https://img.shields.io/github/license/lucaboesch/moodle-local_differentiator?color=lightgrey)](https://github.com/lucaboesch/moodle-local_differentiator/blob/main/LICENSE)
[![GitHub contributors](https://img.shields.io/github/contributors/lucaboesch/moodle-local_differentiator)](https://github.com/lucaboesch/moodle-local_differentiator/graphs/contributors)

A tool to efficiently formulate and save learning goals.
This plugin is based off The Differentiator by Ian Byrd <http://byrdseed.com/differentiator/>.
Expand Down
6 changes: 3 additions & 3 deletions classes/external/exporter/handlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
*/
class handlers extends \core\external\exporter {
/**
* @var
* @var \handlers the differentiator's handlers
*/
protected $handlers;

/**
* The differentiator handlers constructor.
*
* @param \handlers $handlers
* @param \context $context
* @param \handlers $handlers the differentiator's handlers
* @param \context $context the differentiator's context
* @throws coding_exception
*/
public function __construct($handlers, \context $context) {
Expand Down
6 changes: 3 additions & 3 deletions classes/external/exporter/learninggoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
*/
class learninggoal extends \core\external\exporter {
/**
* @var
* @var \learninggoal the differentiator's learning goal
*/
protected $learninggoal;

/**
* The learning goal constructor.
*
* @param \learninggoal $learninggoal
* @param \context $context
* @param \learninggoal $learninggoal the differentiator's learning goal
* @param \context $context the differentiator's context
* @throws \coding_exception
*/
public function __construct($learninggoal, \context $context) {
Expand Down
6 changes: 4 additions & 2 deletions classes/external/exporter/tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
*/
class tab extends \core\external\exporter {
/**
* @var
* @var \tab the differentiator's tab
*/
protected $tab;

/**
* The tab constructor.
*
Expand All @@ -46,8 +47,9 @@ public function __construct($tab, \context $context) {
$this->tab = $tab;
parent::__construct([], ['context' => $context]);
}

/**
* Return the it, title, color and target input field of the tab.
* Return the id, title, color and target input field of the tab.
*
* @return array
*/
Expand Down
75 changes: 28 additions & 47 deletions lang/en/local_differentiator.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,60 +25,41 @@

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

$string['pluginname'] = 'Differentiator';

// Required strings.
$string['modulename'] = 'Differentiator';
$string['modulenameplural'] = 'Differentiators';
$string['modulename_help'] = 'Differentiator';
$string['pluginadministration'] = 'Differentiator Administration';
$string['pluginname'] = 'Differentiator';

// Capabilities.
$string['differentiator:edit'] = 'Edit Differentiator';
$string['differentiator:view'] = 'View Differentiator';

// Vue component route not found.
$string['route_not_found'] = 'Error: Page (route) not found!';

// Vue component learning goal edit.
$string['learninggoals_edit_site_name'] = 'Differentiator learning goals';
$string['learninggoals_edit_site_description'] = 'You may add a new goal or edit existing goals.';
$string['learninggoals_edit_no_learninggoals'] = 'There are no goals to show.';

// Learning goals overview.
$string['edit'] = 'Edit';
$string['btnconfirmdelete'] = 'Confirm delete';
$string['cancel'] = 'Cancel';
$string['clicktoedit'] = '[click to edit]';
$string['content'] = 'Content';
$string['delete'] = 'Delete';
$string['deletepromptpre'] = 'Do you really want to delete the learning goal "';
$string['deletepromptpost'] = '"?';
$string['btnconfirmdelete'] = 'Confirm delete';
$string['deletepromptpre'] = 'Do you really want to delete the learning goal "';
$string['differentiator:edit'] = 'Edit Differentiator';
$string['differentiator:view'] = 'View Differentiator';
$string['duplicate'] = 'Duplicate';
$string['toclipboard'] = 'Copy to clipboard';
$string['edit'] = 'Edit';
$string['goalnameplaceholder'] = 'Learning goal name';
$string['toclipboarddone'] = 'Copied to clipboard';
$string['subject'] = 'Subject';


// Learning goal form.
$string['groups'] = 'Groups';
$string['learninggoal'] = 'Goal';
$string['learninggoal_name'] = 'Goal name';
$string['learninggoal_description'] = 'Goal description';
$string['learninggoal_form_title_add'] = 'Add a new goal';
$string['learninggoal_form_title_edit'] = 'Edit a goal';
$string['learninggoal_name'] = 'Goal name';
$string['learninggoals_edit_no_learninggoals'] = 'There are no goals to show.';
$string['learninggoals_edit_site_description'] = 'You may add a new goal or edit existing goals.';
$string['learninggoals_edit_site_name'] = 'Differentiator learning goals';
$string['modulename'] = 'Differentiator';
$string['modulename_help'] = 'Differentiator';
$string['modulenameplural'] = 'Differentiators';
$string['pluginadministration'] = 'Differentiator Administration';
$string['pluginname'] = 'Differentiator';
$string['pregroup'] = 'in groups of';
$string['preproduct'] = 'and create';
$string['preresource'] = 'using';
$string['prethinkingskill'] = 'Students will';
$string['products'] = 'Products';
$string['resources'] = 'Resources';
$string['route_not_found'] = 'Error: Page (route) not found!';
$string['save'] = 'Save';
$string['cancel'] = 'Cancel';

// Tabs.
$string['subject'] = 'Subject';
$string['thinkingskill'] = 'Thinking Skill';
$string['content'] = 'Content';
$string['resources'] = 'Resources';
$string['products'] = 'Products';
$string['groups'] = 'Groups';

// Words.
$string['prethinkingskill'] = 'Students will';
$string['clicktoedit'] = '[click to edit]';
$string['preresource'] = 'using';
$string['preproduct'] = 'and create';
$string['pregroup'] = 'in groups of';

$string['toclipboard'] = 'Copy to clipboard';
$string['toclipboarddone'] = 'Copied to clipboard';
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'local_differentiator';
$plugin->release = 'v4.3-r2';
$plugin->version = 2024030200;
$plugin->release = 'v4.4-r1';
$plugin->version = 2024042200;
$plugin->requires = 2020061500;
$plugin->maturity = MATURITY_STABLE;
$plugin->supported = [39, 403];
$plugin->supported = [39, 404];

0 comments on commit 0a90c1b

Please sign in to comment.