Created factory class
This commit is contained in:
parent
3120130437
commit
fedfe95080
9 changed files with 82 additions and 32 deletions
|
@ -112,7 +112,7 @@ class restore_customcert_activity_task extends restore_activity_task {
|
|||
// Go through the elements for the certificate.
|
||||
foreach ($elements as $e) {
|
||||
// Get an instance of the element class.
|
||||
if ($e = \mod_customcert\element::instance($e)) {
|
||||
if ($e = \mod_customcert\element_factory::get_element_instance($e)) {
|
||||
$e->after_restore($this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue