private function get_moodle_metadata() {
        $moodlemodules = array();
        // Core isn't a plugin type or subsystem - handle it seperately.
        if ($module = $this->get_moodle_path_metadata(core_component::get_component_directory('core'))) {
            $moodlemodules = array_merge($moodlemodules, $module);
        }

        // Handle other core subsystems.
        $subsystems = core_component::get_core_subsystems();
        foreach ($subsystems as $subsystem => $path) {
            if (is_null($path)) {
                continue;
            }
            if ($module = $this->get_moodle_path_metadata($path)) {
                $moodlemodules = array_merge($moodlemodules, $module);
            }
        }

        // And finally the plugins.
        $plugintypes = core_component::get_plugin_types();
        foreach ($plugintypes as $plugintype => $pathroot) {
            $pluginlist = core_component::get_plugin_list($plugintype);
            foreach ($pluginlist as $plugin => $path) {
                if ($module = $this->get_moodle_path_metadata($path)) {
                    $moodlemodules = array_merge($moodlemodules, $module);
                }
            }
        }

        return $moodlemodules;
    }
private function get_moodle_metadata() {
        $moodlemodules = array();
        // Core isn't a plugin type or subsystem - handle it seperately.
        if ($module = $this->get_moodle_path_metadata(core_component::get_component_directory('core'))) {
            $moodlemodules = array_merge($moodlemodules, $module);
        }

        // Handle other core subsystems.
        $subsystems = core_component::get_core_subsystems();
        foreach ($subsystems as $subsystem => $path) {
            if (is_null($path)) {
                continue;
            }
            if ($module = $this->get_moodle_path_metadata($path)) {
                $moodlemodules = array_merge($moodlemodules, $module);
            }
        }

        // And finally the plugins.
        $plugintypes = core_component::get_plugin_types();
        foreach ($plugintypes as $plugintype => $pathroot) {
            $pluginlist = core_component::get_plugin_list($plugintype);
            foreach ($pluginlist as $plugin => $path) {
                if ($module = $this->get_moodle_path_metadata($path)) {
                    $moodlemodules = array_merge($moodlemodules, $module);
                }
            }
        }

        return $moodlemodules;
    }
private function get_moodle_metadata ( ) { $ moodlemodules = array ( ) ; // Core isn't a plugin type or subsystem - handle it seperately. if ( $ module = $ this -> get_moodle_path_metadata ( core_component :: get_component_directory ( 'core' ) ) ) { $ moodlemodules = array_merge ( $ moodlemodules , $ module ) ; } // Handle other core subsystems. $ subsystems = core_component :: get_core_subsystems ( ) ; foreach ( $ subsystems as $ subsystem => $ path ) { if ( is_null ( $ path ) ) { continue ; } if ( $ module = $ this -> get_moodle_path_metadata ( $ path ) ) { $ moodlemodules = array_merge ( $ moodlemodules , $ module ) ; } } // And finally the plugins. $ plugintypes = core_component :: get_plugin_types ( ) ; foreach ( $ plugintypes as $ plugintype => $ pathroot ) { $ pluginlist = core_component :: get_plugin_list ( $ plugintype ) ; foreach ( $ pluginlist as $ plugin => $ path ) { if ( $ module = $ this -> get_moodle_path_metadata ( $ path ) ) { $ moodlemodules = array_merge ( $ moodlemodules , $ module ) ; } } } return $ moodlemodules ; }
Determine the module metadata for all moodle YUI modules.

This works through all modules capable of serving YUI modules, and attempts to get
metadata for each of those modules.

@return Array of module metadata
Determine the module metadata for all moodle YUI modules .