ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilDBayObjectGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * To change this template, choose Tools | Templates
5  * and open the template in the editor.
6  */
7 
13 abstract class ilDBayObjectGUI extends ilObjectGUI
14 {
15 
19  abstract protected function getObjectDefinition();
20 
27  protected function dispatchCall($task, $method)
28  {
29  $definition = $this->getObjectDefinition();
30 
31  if( $definition->hasTask( $task ) )
32  {
33  $definition->loadTask( $task );
34  $taskHandler = $definition->buildTask( $task, $this );
35  $taskHandler->execute( $method );
36  }
37  }
38 
42  public function switchToVisibleMode()
43  {
44  $this->prepareOutput();
45  }
46 
47  public function getAdminTabs(&$tabs_gui) {
48  global $tree;
49 
50  if ($_GET["admin_mode"] == "repository")
51  {
52  $this->ctrl->setParameterByClass("iladministrationgui", "admin_mode", "settings");
53  $tabs_gui->setBackTarget($this->lng->txt("administration"),
54  $this->ctrl->getLinkTargetByClass("iladministrationgui", "frameset"),
55  ilFrameTargetInfo::_getFrame("MainContent"));
56  $this->ctrl->setParameterByClass("iladministrationgui", "admin_mode", "repository");
57  }
58 /*
59  if ($this->checkPermissionBool("edit_permission"))
60  {
61  $tabs_gui->addTarget("perm_settings",
62  $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"), "", "ilpermissiongui");
63  }
64 */
65  if ($tree->getSavedNodeData($this->object->getRefId()))
66  {
67  $tabs_gui->addTarget("trash",
68  $this->ctrl->getLinkTarget($this, "trash"), "trash", get_class($this));
69  }
70  }
71 
72 }
73 
74 ?>