|
|
@ -2738,8 +2738,11 @@ function getAllWork( |
|
|
|
$is_author = false; |
|
|
|
$is_author = false; |
|
|
|
$can_read = false; |
|
|
|
$can_read = false; |
|
|
|
$owner_id = $work['user_id']; |
|
|
|
$owner_id = $work['user_id']; |
|
|
|
$visibility = api_get_item_visibility($courseInfo, 'work', $work['id'], $sessionId); |
|
|
|
//$visibility = api_get_item_visibility($courseInfo, 'work', $work['id'], $sessionId); |
|
|
|
if ($visibility != 1) { |
|
|
|
$studentPublication = $repo->find($work['iid']); |
|
|
|
|
|
|
|
$workId = $studentPublication->getIid(); |
|
|
|
|
|
|
|
$isVisible = $studentPublication->isVisible($courseEntity, $sessionEntity); |
|
|
|
|
|
|
|
if (false === $isVisible) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
/*$locked = api_resource_is_locked_by_gradebook( |
|
|
|
/*$locked = api_resource_is_locked_by_gradebook( |
|
|
@ -2768,6 +2771,9 @@ function getAllWork( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$work_assignment = get_work_assignment_by_id($work_id, $courseId); |
|
|
|
|
|
|
|
|
|
|
|
$work['qualification_score'] = $work['qualification']; |
|
|
|
$work['qualification_score'] = $work['qualification']; |
|
|
|
$add_string = ''; |
|
|
|
$add_string = ''; |
|
|
|
$time_expires = ''; |
|
|
|
$time_expires = ''; |
|
|
@ -2857,6 +2863,7 @@ function getAllWork( |
|
|
|
$parent = $parentList[$work['parent_id']]; |
|
|
|
$parent = $parentList[$work['parent_id']]; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$parent = get_work_data_by_id($work['parent_id'], $courseId); |
|
|
|
$parent = get_work_data_by_id($work['parent_id'], $courseId); |
|
|
|
|
|
|
|
$parentList[$work['parent_id']] = $parent; |
|
|
|
} |
|
|
|
} |
|
|
|
$work['work_name'] = $parent['title']; |
|
|
|
$work['work_name'] = $parent['title']; |
|
|
|
|
|
|
|
|
|
|
@ -3020,7 +3027,7 @@ function getAllWork( |
|
|
|
$work['actions'] = '<div class="work-action">'.$linkToDownload.$action.'</div>'; |
|
|
|
$work['actions'] = '<div class="work-action">'.$linkToDownload.$action.'</div>'; |
|
|
|
$work['correction'] = $correction; |
|
|
|
$work['correction'] = $correction; |
|
|
|
|
|
|
|
|
|
|
|
if (!empty($compilation) && $is_allowed_to_edit) { |
|
|
|
/*if (!empty($compilation) && $is_allowed_to_edit) { |
|
|
|
$compilationId = $compilation->getCompilatioId($item_id, $courseId); |
|
|
|
$compilationId = $compilation->getCompilatioId($item_id, $courseId); |
|
|
|
if ($compilationId) { |
|
|
|
if ($compilationId) { |
|
|
|
$actionCompilatio = "<div id='id_avancement".$item_id."' class='compilation_block'> |
|
|
|
$actionCompilatio = "<div id='id_avancement".$item_id."' class='compilation_block'> |
|
|
@ -3046,7 +3053,7 @@ function getAllWork( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$work['compilatio'] = $actionCompilatio; |
|
|
|
$work['compilatio'] = $actionCompilatio; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
$works[] = $work; |
|
|
|
$works[] = $work; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|