MDL-40220 use new core_component::get_plugin_list_with_class()

This commit is contained in:
Petr Škoda 2013-07-16 22:37:15 +02:00
parent bd3b3bba9f
commit 059e08ed92
3 changed files with 3 additions and 3 deletions

2
cache/locallib.php vendored
View File

@ -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) {

View File

@ -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) {

View File

@ -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');
}
/**