mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-40220 use new core_component::get_plugin_list_with_class()
This commit is contained in:
parent
bd3b3bba9f
commit
059e08ed92
2
cache/locallib.php
vendored
2
cache/locallib.php
vendored
@ -1191,7 +1191,7 @@ abstract class cache_administration_helper extends cache_helper {
|
||||
* @return array
|
||||
*/
|
||||
public static function get_addable_lock_options() {
|
||||
$plugins = get_plugin_list_with_class('cachelock', '', 'lib.php');
|
||||
$plugins = core_component::get_plugin_list_with_class('cachelock', '', 'lib.php');
|
||||
$options = array();
|
||||
$len = strlen('cachelock_');
|
||||
foreach ($plugins as $plugin => $class) {
|
||||
|
@ -1232,7 +1232,7 @@ function get_import_export_formats($type) {
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/question/format.php');
|
||||
|
||||
$formatclasses = get_plugin_list_with_class('qformat', '', 'format.php');
|
||||
$formatclasses = core_component::get_plugin_list_with_class('qformat', '', 'format.php');
|
||||
|
||||
$fileformatname = array();
|
||||
foreach ($formatclasses as $component => $formatclass) {
|
||||
|
@ -90,7 +90,7 @@ class quiz_access_manager {
|
||||
* @return array of all the installed rule class names.
|
||||
*/
|
||||
protected static function get_rule_classes() {
|
||||
return get_plugin_list_with_class('quizaccess', '', 'rule.php');
|
||||
return core_component::get_plugin_list_with_class('quizaccess', '', 'rule.php');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user