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);
66 }
catch (\Exception $exception) {
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())) {
119 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
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");
An exception for terminatinating execution or to throw for unit testing.
save()
create new instance and save it
downloadFromPortfolioPage(ilPortfolioPage $a_page)
render($a_return=false, $a_url=false)
Render content.
create()
List all tests in which current user participated.
getType()
Functions that must be overwritten.
New implementation of ilObjectGUI.
getAccessHandler()
Get access handler.
putObjectInTree(ilObject $a_obj, $a_parent_node_id=null)
Add object to tree at given position.
afterSave(ilObject $a_new_object)
Post (successful) object creation hook.
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
Access handler for personal workspace.
Tree handler for personal workspace.