Merge branch 'MDL-67296-master' of git://github.com/vmdef/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2020-01-22 23:46:06 +01:00
commit cb701f77b4
8 changed files with 192 additions and 45 deletions

View file

@ -44,13 +44,23 @@ class h5p_get_content_types_task extends scheduled_task {
return get_string('h5pgetcontenttypestask', 'admin');
}
/**
* Get an \core_h5p\core instance.
*
* @return \core_h5p\core
*/
public function get_core() {
$factory = new factory();
$core = $factory->get_core();
return $core;
}
/**
* Execute the task.
*/
public function execute() {
$factory = new factory();
$core = $factory->get_core();
$core = $this->get_core();
$result = $core->fetch_latest_content_types();