forked from UniversityofPortland/moodle-local_mahara
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change mahara local plugin to work with updated submission plugin
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
Showing
9 changed files
with
99 additions
and
810 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
), | ||
); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.