Skip to content

Commit

Permalink
MDL-69166 core_payment: rename some functions
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy authored and rezaies committed Oct 27, 2020
1 parent 410973c commit 71ccaf2
Show file tree
Hide file tree
Showing 13 changed files with 74 additions and 34 deletions.
22 changes: 21 additions & 1 deletion admin/settings/payment.php
@@ -1,6 +1,26 @@
<?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/>.

// This file defines settingpages and externalpages under the "Payment" category
/**
* Adds payments links to the admin tree
*
* @package core
* @copyright 2020 Marina Glancy
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$ADMIN->add('payment', new admin_externalpage(
'paymentaccounts',
Expand Down
6 changes: 3 additions & 3 deletions lib/db/services.php
Expand Up @@ -2720,10 +2720,10 @@
'ajax' => 'true',
'capabilities' => '',
],
'core_payment_get_gateways_for_currency' => [
'classname' => 'core_payment\external\get_gateways_for_currency',
'core_payment_get_available_gateways' => [
'classname' => 'core_payment\external\get_available_gateways',
'methodname' => 'execute',
'description' => 'Get the list of payment gateways that support the given currency',
'description' => 'Get the list of payment gateways that support the given component/area',
'type' => 'read',
'ajax' => true,
],
Expand Down
2 changes: 1 addition & 1 deletion payment/amd/build/gateways_modal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 71ccaf2

Please sign in to comment.