5 include_once (
'./Services/Object/classes/class.ilObject2GUI.php');
31 if($this->id_type == self::WORKSPACE_NODE_ID)
33 include_once
"Services/DiskQuota/classes/class.ilDiskQuotaHandler.php";
36 $this->lng->loadLanguageModule(
"file");
38 $this->ctrl->redirect($this,
"cancel");
42 $this->lng->loadLanguageModule(
"excv");
44 $ilTabs->setBackTarget($this->lng->txt(
"back"),
45 $this->ctrl->getLinkTarget($this,
"cancel"));
47 include_once
"Modules/Exercise/classes/class.ilExerciseVerificationTableGUI.php";
49 $this->tpl->setContent($table->getHTML());
59 $exercise_id = $_REQUEST[
"exc_id"];
62 include_once
"Modules/Exercise/classes/class.ilObjExercise.php";
65 include_once
"Modules/Exercise/classes/class.ilObjExerciseVerification.php";
70 $this->node_id = null;
89 $file = $this->
object->getFilePath();
102 public function render($a_return =
false, $a_url =
false)
113 $wsp_id =
$tree->lookupNodeId($this->
object->getId());
115 $caption = $lng->txt(
"wsp_type_excv").
' "'.$this->
object->getTitle().
'"';
118 if(!file_exists($this->
object->getFilePath()))
121 $message = $lng->txt(
"url_not_found");
125 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
130 $message = $lng->txt(
"permission_denied");
140 return '<div><a href="'.$a_url.
'">'.$caption.
'</a></div>';
144 return '<div>'.$caption.
' ('.$message.
')</div>';
151 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";
166 $_GET[
"wsp_id"] = $id[0];
167 include(
"ilias.php");
static createFromExercise(ilObjExercise $a_exercise, $a_user_id)
Import relevant properties from given exercise.
New implementation of ilObjectGUI.
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
getAccessHandler()
Get access handler.
Access handler for personal workspace.
afterSave(ilObject $a_new_object)
Post (successful) object creation hook.
create()
List all exercises in which current user participated.
Tree handler for personal workspace.
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)
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
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.
Create new PHPExcel object
obj_idprivate
downloadFromPortfolioPage(ilPortfolioPage $a_page)
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
Class to report exception.