Skip to content

Commit

Permalink
Change mahara local plugin to work with updated submission plugin
Browse files Browse the repository at this point in the history
To be used along side the pull request MaharaProject/moodle-assignsubmission_mahara#19
which fixes MaharaProject/moodle-assignsubmission_mahara#2.

This plugin is simply a wrapper for mnet functions with the assign
submission plugin. This is due to Moodle not supporting publishing
methods in subplugin architecture.
  • Loading branch information
Hugh Davenport committed Nov 12, 2015
1 parent 33c4bb6 commit 177a8b8
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 810 deletions.
13 changes: 0 additions & 13 deletions db/events.php

This file was deleted.

26 changes: 0 additions & 26 deletions db/install.xml

This file was deleted.

40 changes: 27 additions & 13 deletions db/mnet.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle 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/>.

/**
* MNet publishers/subscribers definition.
*
* @package local_mahara
* @copyright 2015 Catalyst IT Ltd. (@link http://www.catalyst.net.nz/)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

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

$publishes = array(
'mahara' => array(
// Show up as the assign_submission plugin in the services list. Makes it less confusing
'assign_submission_mahara' => array(
'apiversion' => 1,
'classname' => 'mahara_mnetservice',
'classname' => 'mnetservice_local_mahara',
'filename' => 'mnetlib.php',
'methods' => array(
'donothing',
'can_view_view',
),
),
);

$subscribes = array(
'mahara' => array(
'get_views_for_user' => 'mod/mahara/rpclib.php/get_views_for_user',
'submit_view_for_assignment' => 'mod/mahara/rpclib.php/submit_view_for_assessment',
'release_submitted_view' => 'mod/mahara/rpclib.php/release_submitted_view',
'get_groups_for_user' => 'mod/mahara/rpclib.php/get_groups_for_user',
'get_notifications_for_user' => 'mod/mahara/rpclib.php/get_notifications_for_user',
'get_watchlist_for_user' => 'mod/mahara/rpclib.php/get_watchlist_for_user',
),
);
34 changes: 0 additions & 34 deletions events.php

This file was deleted.

27 changes: 24 additions & 3 deletions lang/en/local_mahara.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
<?php
$string['pluginname'] = 'Extra Mahara MNet Functions';
$string['mahara_name'] = 'Extra Mahara MNet Module';
$string['mahara_description'] = 'Mahara functions used in third-party Moodle plugins.<br />Publishing this service on a Moodle site has no effect. Subscribe to this service if you want to be able to use the Mahara plugins with {$a}.<br />';
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle 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/>.

/**
* Strings for component 'local_mahara', language 'en'
*
* @package local_mahara
* @copyright 2015 Catalyst IT Ltd. (@link http://www.catalyst.net.nz/)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['pluginname'] = 'Mahara portfolio';
5 changes: 0 additions & 5 deletions lang/es/local_mahara.php

This file was deleted.

Loading

0 comments on commit 177a8b8

Please sign in to comment.