|
@@ -2,15 +2,15 @@
|
|
|
|
|
|
|
|
|
* Class that implements ilm_handle, in order to allow manipulation and management of HTML5 iLM
|
|
|
- *
|
|
|
+ *
|
|
|
* @author Igor Moreira Félix
|
|
|
* @author Patricia Alves Rodrigues
|
|
|
* @author Leônidas O. Brandão
|
|
|
* @version v 1 2017/17/10
|
|
|
* @package mod_iassign_ilm_handlers
|
|
|
* @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
|
|
|
- *
|
|
|
- * <b>License</b>
|
|
|
+ *
|
|
|
+ * <b>License</b>
|
|
|
* - http:
|
|
|
*/
|
|
|
|
|
@@ -114,7 +114,7 @@ class html5 implements ilm_handle {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
break;
|
|
|
case "editor_new":
|
|
|
$paramsStr .= "&iLM_PARAM_AssignmentURL=true";
|
|
@@ -152,13 +152,13 @@ class html5 implements ilm_handle {
|
|
|
|
|
|
if('requestFullscreen' in element) {
|
|
|
element.requestFullscreen();
|
|
|
- }
|
|
|
+ }
|
|
|
else if ('webkitRequestFullscreen' in element) {
|
|
|
element.webkitRequestFullscreen();
|
|
|
- }
|
|
|
+ }
|
|
|
else if ('mozRequestFullScreen' in element) {
|
|
|
element.mozRequestFullScreen();
|
|
|
- }
|
|
|
+ }
|
|
|
else if ('msRequestFullscreen' in element) {
|
|
|
element.msRequestFullscreen();
|
|
|
}
|
|
@@ -187,6 +187,7 @@ class html5 implements ilm_handle {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
if ($view_teacherfileversion) {
|
|
|
$fileid = "";
|
|
|
$fs = get_file_storage();
|
|
@@ -277,7 +278,7 @@ class html5 implements ilm_handle {
|
|
|
let submissionbehavior = " . $ilm->submissionbehavior . ";
|
|
|
evaluationResult = evaluation;
|
|
|
|
|
|
- strAnswer = window.frames[0].getAnswer();
|
|
|
+ strAnswer = window.frames[0].getAnswer();
|
|
|
|
|
|
|
|
|
|
|
@@ -307,7 +308,7 @@ class html5 implements ilm_handle {
|
|
|
if (request.readyState === 4) {
|
|
|
if (request.status === 200) {
|
|
|
document.getElementById('check-message-success-submission').style.visibility = 'visible';
|
|
|
-
|
|
|
+
|
|
|
setTimeout(function(){
|
|
|
document.getElementById('check-message-success-submission').style.visibility = 'hidden';
|
|
|
}, 3000);
|
|
@@ -331,7 +332,7 @@ class html5 implements ilm_handle {
|
|
|
|
|
|
|
|
|
|
|
|
- $iassign .= ilm_settings::build_ilm_tags($ilm->id, array(
|
|
|
+ $iassign .= html5::build_ilm_tags($ilm->id, array(
|
|
|
"type" => "activity",
|
|
|
"notSEND" => "false",
|
|
|
"addresPOST" => $enderecoPOST,
|
|
@@ -381,6 +382,8 @@ class html5 implements ilm_handle {
|
|
|
}
|
|
|
|
|
|
$iassign .= "</form></center>\n\n";
|
|
|
+ print '<br/><br/><br/><br/><br/><br/>ABUBLÉEÉÉÉÉÉÁDÁSDPOÁSKDOISAKDPOA<br/><br/><br/>';
|
|
|
+
|
|
|
return $iassign;
|
|
|
}
|
|
|
|
|
@@ -827,7 +830,7 @@ class html5 implements ilm_handle {
|
|
|
$msg_error = get_string('error_add_ilm', 'iassign') . "<br/>In new_ilm: file_jar empty, files_extract=" . $files_extract . "<br/>\n";
|
|
|
print_error($msg_error);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
else {
|
|
|
$iassign_ilm = $DB->get_record('iassign_ilm', array("parent" => 0, "name" => (String) $application_xml->name));
|
|
@@ -919,8 +922,8 @@ class html5 implements ilm_handle {
|
|
|
$msg_error = get_string('error_add_ilm', 'iassign') . "<br/>In import_ilm: file_jar empty, files_extract=" . $files_extract . "<br/>\n";
|
|
|
print_error($msg_error);
|
|
|
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
+ }
|
|
|
else {
|
|
|
$iassign_ilm = $DB->get_record('iassign_ilm', array("parent" => 0, "name" => (String) $application_xml->name));
|
|
|
if (!$iassign_ilm) {
|
|
@@ -994,7 +997,7 @@ class html5 implements ilm_handle {
|
|
|
if (!is_writable("ilm/")) {
|
|
|
print($OUTPUT->notification(get_string('error_folder_permission_denied', 'iassign'), 'notifyproblem'));
|
|
|
exit;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1038,11 +1041,11 @@ class html5 implements ilm_handle {
|
|
|
|
|
|
foreach ($iterator = new RecursiveIteratorIterator(
|
|
|
new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS), RecursiveIteratorIterator::SELF_FIRST) as $item) {
|
|
|
- $directory_name = $diretorio . DIRECTORY_SEPARATOR . $iterator->getSubPathName();
|
|
|
+ $directory_name = $diretorio . DIRECTORY_SEPARATOR . $iterator->getSubPathName();
|
|
|
if ($item->isDir()) {
|
|
|
mkdir($directory_name);
|
|
|
touch($directory_name . DIRECTORY_SEPARATOR . "index.html");
|
|
|
- }
|
|
|
+ }
|
|
|
else {
|
|
|
copy($item, $directory_name);
|
|
|
}
|