mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-67296-master' of git://github.com/vmdef/moodle
This commit is contained in:
commit
cb701f77b4
8 changed files with 192 additions and 45 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue