Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 52... Línea 52...
52
define('SCORM_DISPLAY_ATTEMPTSTATUS_ENTRY', 3);
52
define('SCORM_DISPLAY_ATTEMPTSTATUS_ENTRY', 3);
Línea 53... Línea 53...
53
 
53
 
54
define('SCORM_EVENT_TYPE_OPEN', 'open');
54
define('SCORM_EVENT_TYPE_OPEN', 'open');
Línea 55... Línea -...
55
define('SCORM_EVENT_TYPE_CLOSE', 'close');
-
 
56
 
-
 
57
require_once(__DIR__ . '/deprecatedlib.php');
55
define('SCORM_EVENT_TYPE_CLOSE', 'close');
58
 
56
 
59
/**
57
/**
60
 * Return an array of status options
58
 * Return an array of status options
61
 *
59
 *
Línea 774... Línea 772...
774
 *
772
 *
775
 * @param MoodleQuickForm $mform form passed by reference
773
 * @param MoodleQuickForm $mform form passed by reference
776
 */
774
 */
777
function scorm_reset_course_form_definition(&$mform) {
775
function scorm_reset_course_form_definition(&$mform) {
778
    $mform->addElement('header', 'scormheader', get_string('modulenameplural', 'scorm'));
776
    $mform->addElement('header', 'scormheader', get_string('modulenameplural', 'scorm'));
-
 
777
    $mform->addElement('static', 'scormdelete', get_string('delete'));
779
    $mform->addElement('advcheckbox', 'reset_scorm', get_string('deleteallattempts', 'scorm'));
778
    $mform->addElement('advcheckbox', 'reset_scorm', get_string('deleteallattempts', 'scorm'));
780
}
779
}
Línea 781... Línea 780...
781
 
780
 
782
/**
781
/**
Línea 843... Línea 842...
843
    }
842
    }
Línea 844... Línea 843...
844
 
843
 
845
    // Any changes to the list of dates that needs to be rolled should be same during course restore and course reset.
844
    // Any changes to the list of dates that needs to be rolled should be same during course restore and course reset.
846
    // See MDL-9367.
845
    // See MDL-9367.
847
    shift_course_mod_dates('scorm', array('timeopen', 'timeclose'), $data->timeshift, $data->courseid);
846
    shift_course_mod_dates('scorm', array('timeopen', 'timeclose'), $data->timeshift, $data->courseid);
Línea 848... Línea 847...
848
    $status[] = ['component' => $componentstr, 'item' => get_string('datechanged'), 'error' => false];
847
    $status[] = ['component' => $componentstr, 'item' => get_string('date'), 'error' => false];
849
 
848
 
Línea 850... Línea 849...
850
    return $status;
849
    return $status;
Línea 1102... Línea 1101...
1102
 
1101
 
1103
    return @unlink($logfile);
1102
    return @unlink($logfile);
Línea 1104... Línea 1103...
1104
}
1103
}
1105
 
-
 
1106
/**
-
 
1107
 * @deprecated since Moodle 3.3, when the block_course_overview block was removed.
-
 
1108
 */
-
 
1109
function scorm_print_overview() {
-
 
1110
    throw new coding_exception('scorm_print_overview() can not be used any more and is obsolete.');
-
 
1111
}
-
 
1112
 
1104
 
1113
/**
1105
/**
1114
 * Return a list of page types
1106
 * Return a list of page types
1115
 * @param string $pagetype current page type
1107
 * @param string $pagetype current page type
1116
 * @param stdClass $parentcontext Block's parent context
1108
 * @param stdClass $parentcontext Block's parent context
Línea 1458... Línea 1450...
1458
/**
1450
/**
1459
 * Get icon mapping for font-awesome.
1451
 * Get icon mapping for font-awesome.
1460
 */
1452
 */
1461
function mod_scorm_get_fontawesome_icon_map() {
1453
function mod_scorm_get_fontawesome_icon_map() {
1462
    return [
1454
    return [
1463
        'mod_scorm:assetc' => 'fa-file-archive-o',
1455
        'mod_scorm:asset' => 'fa-regular fa-file-zipper',
1464
        'mod_scorm:asset' => 'fa-file-archive-o',
1456
        'mod_scorm:assetc' => 'fa-regular fa-file-zipper',
1465
        'mod_scorm:browsed' => 'fa-book',
-
 
1466
        'mod_scorm:completed' => 'fa-check-square-o',
1457
        'mod_scorm:completed' => 'fa-regular fa-square-check',
1467
        'mod_scorm:failed' => 'fa-times',
1458
        'mod_scorm:failed' => 'fa-xmark',
1468
        'mod_scorm:incomplete' => 'fa-pencil-square-o',
1459
        'mod_scorm:incomplete' => 'fa-regular fa-pen-to-square',
1469
        'mod_scorm:minus' => 'fa-minus',
1460
        'mod_scorm:minus' => 'fa-minus',
1470
        'mod_scorm:notattempted' => 'fa-square-o',
1461
        'mod_scorm:notattempted' => 'fa-regular fa-square',
1471
        'mod_scorm:passed' => 'fa-check',
1462
        'mod_scorm:passed' => 'fa-check',
1472
        'mod_scorm:plus' => 'fa-plus',
1463
        'mod_scorm:plus' => 'fa-plus',
1473
        'mod_scorm:popdown' => 'fa-window-close-o',
1464
        'mod_scorm:popdown' => 'fa-regular fa-rectangle-xmark',
1474
        'mod_scorm:popup' => 'fa-window-restore',
1465
        'mod_scorm:popup' => 'fa-regular fa-window-restore',
1475
        'mod_scorm:suspend' => 'fa-pause',
1466
        'mod_scorm:suspend' => 'fa-pause',
1476
        'mod_scorm:wait' => 'fa-clock-o',
1467
        'mod_scorm:wait' => 'fa-spinner fa-spin',
1477
    ];
1468
    ];
1478
}
1469
}
Línea 1479... Línea 1470...
1479
 
1470
 
1480
/**
1471
/**