Inheritance diagram for ilObjExerciseGUIAdapter:
Collaboration diagram for ilObjExerciseGUIAdapter:Public Member Functions | |
| ilObjExerciseGUIAdapter ($a_ref_id, $a_cmd= '') | |
| Constructor public. | |
| __prepareOutput () | |
| __setReturnLocation () | |
| __setFormAction () | |
| __showLocator () | |
Definition at line 37 of file class.ilObjExerciseGUIAdapter.php.
| ilObjExerciseGUIAdapter::__prepareOutput | ( | ) |
Definition at line 57 of file class.ilObjExerciseGUIAdapter.php.
References __showLocator(), and sendInfo().
Referenced by ilObjExerciseGUIAdapter().
{
$this->tpl->addBlockFile("CONTENT", "content", "tpl.exercise.html");
$this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
$title = $this->gui_obj->object->getTitle();
// catch feedback message
sendInfo();
if (!empty($title))
{
$this->tpl->setVariable("HEADER", $title);
}
$this->gui_obj->setAdminTabs();
//$this->setAdminTabs();
$this->__showLocator();
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjExerciseGUIAdapter::__setFormAction | ( | ) |
Definition at line 101 of file class.ilObjExerciseGUIAdapter.php.
References ilObjectGUIAdapter::getId().
Referenced by ilObjExerciseGUIAdapter().
{
$this->gui_obj->setFormAction("permSave","exercise.php?cmd=permSave&ref_id=".$this->getId());
$this->gui_obj->setFormAction("addRole","exercise.php?cmd=addRole&ref_id=".$this->getId());
$this->gui_obj->setFormAction("gateway","exercise.php?cmd=gateway&ref_id=".$this->getId());
$this->gui_obj->setFormAction("updateMembers","exercise.php?cmd=updateMembers&ref_id=".$this->getId());
$this->gui_obj->setFormAction("newMembers","exercise.php?cmd=newMembers&ref_id=".$this->getId());
$this->gui_obj->setFormAction("downloadFile","exercise.php?cmd=downloadFile&ref_id=".$this->getId());
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjExerciseGUIAdapter::__setReturnLocation | ( | ) |
Definition at line 77 of file class.ilObjExerciseGUIAdapter.php.
References ilObjectGUIAdapter::getId().
Referenced by ilObjExerciseGUIAdapter().
{
$this->gui_obj->setReturnLocation("permSave","exercise.php?cmd=perm&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("addRole","exercise.php?cmd=perm&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("addRole","exercise.php?cmd=perm&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("cancel","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("view","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("update","exercise.php?cmd=edit&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("uploadFile","exercise.php?cmd=edit&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("members","exercise.php?cmd=members&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("save","exercise.php?cmd=view&ref_id=".$current_ref_id);
$this->gui_obj->setReturnLocation("cut","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("clear","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("copy","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("link","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("paste","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("cancelDelete","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("confirmedDelete","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("removeFromSystem","exercise.php?cmd=view&ref_id=".$this->getId());
$this->gui_obj->setReturnLocation("undelete","exercise.php?cmd=view&ref_id=".$this->getId());
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjExerciseGUIAdapter::__showLocator | ( | ) |
Definition at line 110 of file class.ilObjExerciseGUIAdapter.php.
References ilObjectGUIAdapter::getId().
Referenced by __prepareOutput().
{
$path_info = $this->gui_obj->tree->getPathFull($this->getId());
$this->tpl->addBlockFile("LOCATOR","locator","tpl.locator.html");
$this->tpl->setCurrentBlock("locator_item");
$this->tpl->setVariable("LINK_ITEM","./repository.php");
$this->tpl->setVariable("ITEM",$this->lng->txt("repository"));
$this->tpl->parseCurrentBlock();
$repository_link = true;
for($i = 1; $i < count($path_info); ++$i)
{
if($path_info[$i]["child"] == $this->getId())
{
$repository_link = false;
}
$this->tpl->touchBlock("locator_separator_prefix");
$this->tpl->setCurrentBlock("locator_item");
if($repository_link)
{
$this->tpl->setVariable("LINK_ITEM","./repository.php?ref_id=".$path_info[$i]["child"]);
}
else
{
$this->tpl->setVariable("LINK_ITEM","./exercise.php?ref_id=".$path_info[$i]["child"]);
}
$this->tpl->setVariable("ITEM",$path_info[$i]["title"]);
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("locator");
$this->tpl->setVariable("TXT_LOCATOR",$this->lng->txt("locator"));
$this->tpl->parseCurrentBlock();
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjExerciseGUIAdapter::ilObjExerciseGUIAdapter | ( | $ | a_ref_id, | |
| $ | a_cmd = '' | |||
| ) |
Constructor public.
Definition at line 43 of file class.ilObjExerciseGUIAdapter.php.
References __prepareOutput(), __setFormAction(), __setReturnLocation(), ilObjectGUIAdapter::ilObjectGUIAdapter(), and ilObjectGUIAdapter::performAction().
{
parent::ilObjectGUIAdapter($a_ref_id,true,false,$a_cmd);
$this->gui_obj->setTabTargetScript("exercise.php");
$this->__setReturnLocation();
$this->__setFormAction();
$this->__prepareOutput();
// FINALLY PERFORM ACTION
$this->performAction();
}
Here is the call graph for this function:
1.7.1