/** * Populates the property {@link $availableupdates} with the information provided by * available update checker * * @param available_update_checker $provider the class providing the available update info */ public function check_available_updates(available_update_checker $provider) { global $CFG; if (isset($CFG->updateminmaturity)) { $minmaturity = $CFG->updateminmaturity; } else { // this can happen during the very first upgrade to 2.3 $minmaturity = MATURITY_STABLE; } $this->availableupdates = $provider->get_update_info($this->component, array('minmaturity' => $minmaturity)); }