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(
"scov");
42 $ilTabs->setBackTarget(
43 $this->lng->txt(
"back"),
44 $this->ctrl->getLinkTarget($this,
"cancel")
47 include_once
"Modules/ScormAicc/classes/Verification/class.ilSCORMVerificationTableGUI.php";
49 $this->tpl->setContent(
$table->getHTML());
59 $lm_id = $_REQUEST[
"lm_id"];
61 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
63 if (
$type ==
"scorm") {
64 include_once
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php";
67 include_once
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php";
70 include_once
"Modules/ScormAicc/classes/Verification/class.ilObjSCORMVerification.php";
74 $this->node_id = null;
89 $file = $this->
object->getFilePath();
101 public function render($a_return =
false, $a_url =
false)
109 $wsp_id =
$tree->lookupNodeId($this->
object->getId());
111 $caption = $lng->txt(
"wsp_type_scov") .
' "' . $this->
object->getTitle() .
'"';
114 if (!file_exists($this->
object->getFilePath())) {
116 $message = $lng->txt(
"url_not_found");
118 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
122 $message = $lng->txt(
"permission_denied");
130 return '<div><a href="' . $a_url .
'">' . $caption .
'</a></div>';
132 return '<div>' . $caption .
' (' .
$message .
')</div>';
141 include_once
"Services/COPage/classes/class.ilPCVerification.php";
146 $ilErr->raiseError($this->lng->txt(
'permission_denied'), $ilErr->MESSAGE);
149 public static function _goto($a_target)
151 $id = explode(
"_", $a_target);
153 $_GET[
"baseClass"] =
"ilsharedresourceGUI";
155 include(
"ilias.php");
List all completed learning modules for current user.
New implementation of ilObjectGUI.
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
getAccessHandler()
Get access handler.
save()
create new instance and save it
downloadFromPortfolioPage(ilPortfolioPage $a_page)
if(!array_key_exists('StateId', $_REQUEST)) $id
Access handler for personal workspace.
static createFromSCORMLM(ilObjSAHSLearningModule $a_lm, $a_user_id)
Import relevant properties from given learning module.
afterSave(ilObject $a_new_object)
Post (successful) object creation hook.
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
Tree handler for personal workspace.
catch(Exception $e) $message
static isUploadPossible($a_additional_size=null)
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.
Create new PHPExcel object
obj_idprivate
Class ilObjSCORM2004LearningModule.
render($a_return=false, $a_url=false)
Render content.
create()
List all tests in which current user participated.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
if(empty($password)) $table
GUI class for scorm verification.
Class ilObjSCORMLearningModule.
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.