Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 23... Línea 23...
23
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
24
 */
Línea 25... Línea 25...
25
 
25
 
Línea -... Línea 26...
-
 
26
namespace core\task;
26
namespace core\task;
27
 
27
 
28
use core\di;
-
 
29
use async_helper;
-
 
30
use cache_helper;
Línea 28... Línea 31...
28
use async_helper;
31
use core\hook\manager;
Línea 29... Línea 32...
29
use cache_helper;
32
use core_backup\hook\before_copy_course_execute;
30
 
33
 
Línea 123... Línea 126...
123
        $fullname = $plan->get_setting('course_fullname');
126
        $fullname = $plan->get_setting('course_fullname');
124
        $fullname->set_value($copyinfo->fullname);
127
        $fullname->set_value($copyinfo->fullname);
125
        $shortname = $plan->get_setting('course_shortname');
128
        $shortname = $plan->get_setting('course_shortname');
126
        $shortname->set_value($copyinfo->shortname);
129
        $shortname->set_value($copyinfo->shortname);
Línea -... Línea 130...
-
 
130
 
-
 
131
        // Create and dispatch a hook to allow interaction with the task immediately prior to execution.
-
 
132
        $hook = new before_copy_course_execute($plan, $copyinfo);
-
 
133
        di::get(manager::class)->dispatch($hook);
127
 
134
 
128
        // Do some preflight checks on the restore.
135
        // Do some preflight checks on the restore.
129
        $rc->execute_precheck();
136
        $rc->execute_precheck();
130
        $status = $rc->get_status();
137
        $status = $rc->get_status();