Created factory class

This commit is contained in:
Mark Nelson 2017-08-26 13:27:19 +08:00
parent 3120130437
commit fedfe95080
9 changed files with 82 additions and 32 deletions

View file

@ -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);
}
}