4 include_once (
'./Services/Object/classes/class.ilObject2GUI.php');
30 if($this->id_type == self::WORKSPACE_NODE_ID)
32 include_once
"Services/DiskQuota/classes/class.ilDiskQuotaHandler.php";
35 $this->lng->loadLanguageModule(
"file");
37 $this->ctrl->redirect($this,
"cancel");
41 $this->lng->loadLanguageModule(
"tstv");
43 $ilTabs->setBackTarget($this->lng->txt(
"back"),
44 $this->ctrl->getLinkTarget($this,
"cancel"));
46 include_once
"Modules/Test/classes/tables/class.ilTestVerificationTableGUI.php";
48 $this->tpl->setContent($table->getHTML());
58 $test_id = $_REQUEST[
"tst_id"];
61 include_once
"Modules/Test/classes/class.ilObjTest.php";
64 include_once
"Modules/Test/classes/class.ilObjTestVerification.php";
69 $this->node_id = null;
88 $file = $this->
object->getFilePath();
101 public function render($a_return =
false, $a_url =
false)
112 $wsp_id =
$tree->lookupNodeId($this->
object->getId());
113 $caption = $lng->txt(
"wsp_type_tstv").
' "'.$this->
object->getTitle().
'"';
116 if(!file_exists($this->
object->getFilePath()))
119 $message = $lng->txt(
"url_not_found");
123 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
128 $message = $lng->txt(
"permission_denied");
138 return '<div><a href="'.$a_url.
'">'.$caption.
'</a></div>';
142 return '<div>'.$caption.
' ('.$message.
')</div>';
151 include_once
"Services/COPage/classes/class.ilPCVerification.php";
157 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->MESSAGE);
160 public static function _goto($a_target)
162 $id = explode(
"_", $a_target);
164 $_GET[
"baseClass"] =
"ilsharedresourceGUI";
165 $_GET[
"wsp_id"] = $id[0];
166 include(
"ilias.php");
downloadFromPortfolioPage(ilPortfolioPage $a_page)
New implementation of ilObjectGUI.
render($a_return=false, $a_url=false)
Render content.
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
static createFromTest(ilObjTest $a_test, $a_user_id)
Import relevant properties from given test.
getAccessHandler()
Get access handler.
Access handler for personal workspace.
afterSave(ilObject $a_new_object)
Post (successful) object creation hook.
Tree handler for personal workspace.
static isUploadPossible($a_additional_size=null)
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
save()
create new instance and save it
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.
GUI class for test verification.
Create new PHPExcel object
obj_idprivate
create()
List all tests in which current user participated.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
List all completed tests for current user.