Actualización
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
namespace Chamilo\PluginBundle\MigrationMoodle\Task;
|
||||
|
||||
use Chamilo\PluginBundle\MigrationMoodle\Extractor\LoadedCoursesFilterExtractor;
|
||||
|
||||
/**
|
||||
* Class FilesForQuizzesTask.
|
||||
*
|
||||
* @package Chamilo\PluginBundle\MigrationMoodle\Task
|
||||
*/
|
||||
class FilesForQuizzesTask extends CourseFilesTask
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getExtractConfiguration()
|
||||
{
|
||||
return [
|
||||
'class' => LoadedCoursesFilterExtractor::class,
|
||||
'query' => "SELECT
|
||||
f.id,
|
||||
f.contenthash,
|
||||
f.filepath,
|
||||
f.filename,
|
||||
f.filesize,
|
||||
f.mimetype,
|
||||
cm.course
|
||||
FROM mdl_files f
|
||||
INNER JOIN mdl_context c ON f.contextid = c.id
|
||||
INNER JOIN mdl_course_modules cm ON c.instanceid = cm.id
|
||||
WHERE f.component = 'mod_quiz'
|
||||
AND f.filearea = 'intro'
|
||||
AND c.contextlevel = 70
|
||||
AND f.filename NOT IN ('.', '..')",
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user