5 include_once(
'./Services/Object/classes/class.ilObject2GUI.php');
31 if ($this->id_type == self::WORKSPACE_NODE_ID) {
32 include_once
"Services/DiskQuota/classes/class.ilDiskQuotaHandler.php";
34 $this->lng->loadLanguageModule(
"file");
36 $this->ctrl->redirect($this,
"cancel");
40 $this->lng->loadLanguageModule(
"excv");
42 $ilTabs->setBackTarget(
43 $this->lng->txt(
"back"),
44 $this->ctrl->getLinkTarget($this,
"cancel")
47 include_once
"Modules/Exercise/classes/class.ilExerciseVerificationTableGUI.php";
49 $this->tpl->setContent(
$table->getHTML());
61 $objectId = $_REQUEST[
"exc_id"];
66 $DIC->logger()->root(),
72 $userCertificatePresentation = $userCertificateRepository->fetchActiveCertificateForPresentation(
78 $newObj = $certificateVerificationFileService->
createFile($userCertificatePresentation);
86 $this->node_id = null;
101 $file = $this->
object->getFilePath();
113 public function render($a_return =
false, $a_url =
false)
122 $wsp_id =
$tree->lookupNodeId($this->object->getId());
124 $caption =
$lng->txt(
"wsp_type_excv") .
' "' . $this->
object->getTitle() .
'"';
127 if (!file_exists($this->object->getFilePath())) {
131 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
141 $a_url = $this->
getAccessHandler()->getGotoLink($wsp_id, $this->object->getId());
143 return '<div><a href="' . $a_url .
'">' . $caption .
'</a></div>';
145 return '<div>' . $caption .
' (' .
$message .
')</div>';
152 include_once
"Services/COPage/classes/class.ilPCVerification.php";
157 include_once
"Modules/Exercise/exceptions/class.ilExerciseException.php";
161 public static function _goto($a_target)
163 $id = explode(
"_", $a_target);
165 $_GET[
"baseClass"] =
"ilsharedresourceGUI";
167 include(
"ilias.php");
New implementation of ilObjectGUI.
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
getAccessHandler()
Get access handler.
if(!array_key_exists('StateId', $_REQUEST)) $id
Access handler for personal workspace.
createFile(ilUserCertificatePresentation $userCertificatePresentation)
afterSave(ilObject $a_new_object)
Post (successful) object creation hook.
create()
List all exercises in which current user participated.
Tree handler for personal workspace.
catch(Exception $e) $message
List all completed exercises for current user.
save()
create new instance and save it
GUI class for exercise verification.
static isUploadPossible($a_additional_size=null)
render($a_return=false, $a_url=false)
Render content.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
putObjectInTree(ilObject $a_obj, $a_parent_node_id=null)
Add object to tree at given position.
downloadFromPortfolioPage(ilPortfolioPage $a_page)
if(empty($password)) $table
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
Exercise exceptions class.