public static function get_enrolment_plugins() {
        $cache = cache::make('tool_uploadcourse', 'helper');
        if (($enrol = $cache->get('enrol')) === false) {
            $enrol = enrol_get_plugins(false);
            $cache->set('enrol', $enrol);
        }
        return $enrol;
    }
public static function get_enrolment_plugins() {
        $cache = cache::make('tool_uploadcourse', 'helper');
        if (($enrol = $cache->get('enrol')) === false) {
            $enrol = enrol_get_plugins(false);
            $cache->set('enrol', $enrol);
        }
        return $enrol;
    }
public static function get_enrolment_plugins ( ) { $ cache = cache :: make ( 'tool_uploadcourse' , 'helper' ) ; if ( ( $ enrol = $ cache -> get ( 'enrol' ) ) === false ) { $ enrol = enrol_get_plugins ( false ) ; $ cache -> set ( 'enrol' , $ enrol ) ; } return $ enrol ; }
Return the enrolment plugins.

The result is cached for faster execution.

@return array
Return the enrolment plugins .