29 $this->lng->loadLanguageModule(
"cmxv");
31 $ilTabs->setBackTarget(
32 $this->lng->txt(
"back"),
33 $this->ctrl->getLinkTarget($this,
"cancel")
36 include_once
"Modules/Course/classes/Verification/class.ilCourseVerificationTableGUI.php";
38 $this->tpl->setContent($table->getHTML());
44 public function save() : void
48 $objId = $_REQUEST[
"cmix_id"];
53 $DIC->logger()->root(),
59 $userCertificatePresentation = $userCertificateRepository->fetchActiveCertificateForPresentation(
60 (
int) $DIC->user()->getId(),
65 $newObj = $certificateVerificationFileService->
createFile($userCertificatePresentation);
74 $this->node_id = null;
90 $file = $this->
object->getFilePath();
102 public function render($a_return =
false, $a_url =
false)
110 $wsp_id =
$tree->lookupNodeId($this->object->getId());
112 $caption = $lng->txt(
"wsp_type_cmxv") .
' "' . $this->
object->getTitle() .
'"';
115 if (!file_exists($this->object->getFilePath())) {
117 $message = $lng->txt(
"url_not_found");
119 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
123 $message = $lng->txt(
"permission_denied");
129 $a_url = $this->
getAccessHandler()->getGotoLink($wsp_id, $this->object->getId());
131 return '<div><a href="' . $a_url .
'">' . $caption .
'</a></div>';
133 return '<div>' . $caption .
' (' .
$message .
')</div>';
142 include_once
"Services/COPage/classes/class.ilPCVerification.php";
147 $ilErr->raiseError($this->lng->txt(
'permission_denied'), $ilErr->MESSAGE);
150 public static function _goto($a_target)
152 $id = explode(
"_", $a_target);
154 $_GET[
"baseClass"] =
"ilsharedresourceGUI";
155 $_GET[
"wsp_id"] = $id[0];
156 include(
"ilias.php");
New implementation of ilObjectGUI.
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
getAccessHandler()
Get access handler.
downloadFromPortfolioPage(ilPortfolioPage $a_page)
Access handler for personal workspace.
createFile(ilUserCertificatePresentation $userCertificatePresentation)
afterSave(ilObject $a_new_object)
Post (successful) object creation hook.
Tree handler for personal workspace.
create()
List all tests in which current user participated.
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.
save()
create new instance and save it
render($a_return=false, $a_url=false)
Render content.
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.