Skip to content

Commit

Permalink
Removed duplicate copy of plugin_feature.php
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Sep 14, 2024
1 parent 571db4f commit 36c2305
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 115 deletions.
23 changes: 22 additions & 1 deletion classes/bulk_tag_action.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,47 @@
* Class bulk_move_action is the base class for moving questions.
*
* @package qbank_bulktags
* @author Marcus Green
* @copyright 2024 Marcus Green
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class bulk_tag_action extends \core_question\local\bank\bulk_action_base {

/**
* Get the title for the bulk action.
*
* @return string The localized string for the bulk action title.
*/
public function get_bulk_action_title(): string {
return get_string('tagbulkaction', 'qbank_bulktags');
}

/**
* Get the key for the bulk action.
*
* @return string The key for the bulk action.
*/
public function get_key(): string {
return 'bulktags';
}

/**
* Returns the URL for the bulk tag action.
*
* @return \moodle_url The URL for the bulk tag action.
*/
public function get_bulk_action_url(): \moodle_url {
return new \moodle_url('/question/bank/bulktags/tag.php');
}

/**
* Returns the required capabilities for this bulk tag action.
*
* @return array|null An array of required capabilities, or null if no capabilities are required.
*/
public function get_bulk_action_capabilities(): ?array {
return [
'moodle/question:editall',
];
}

}
77 changes: 0 additions & 77 deletions classes/question_text_row.php

This file was deleted.

36 changes: 0 additions & 36 deletions plugin_feature.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/helper_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

namespace qbank_bulktags\tests;
namespace qbank_bulktags;

use qbank_bulktags\helper;
use advanced_testcase;
Expand Down

0 comments on commit 36c2305

Please sign in to comment.