ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilDBayObjectGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 abstract class ilDBayObjectGUI extends ilObjectGUI
10 {
15  abstract protected function getObjectDefinition();
16 
21  abstract public function getConnector();
22 
28  protected function dispatchCall($task, $method)
29  {
30  $definition = $this->getObjectDefinition();
31 
32  if($definition->hasTask($task))
33  {
34  $definition->loadTask($task);
35  $taskHandler = $definition->buildTask($task, $this);
36  $taskHandler->execute($method);
37  }
38  }
39 
43  public function switchToVisibleMode()
44  {
45  $this->prepareOutput();
46  }
47 
51  public function getAdminTabs(ilTabsGUI $tabs_gui)
52  {
56  global $tree;
57 
58  if($_GET['admin_mode'] == 'repository')
59  {
60  $this->ctrl->setParameterByClass('iladministrationgui', 'admin_mode', 'settings');
61  $tabs_gui->setBackTarget(
62  $this->lng->txt('administration'),
63  $this->ctrl->getLinkTargetByClass('iladministrationgui', 'frameset'),
64  ilFrameTargetInfo::_getFrame('MainContent')
65  );
66  $this->ctrl->setParameterByClass('iladministrationgui', 'admin_mode', 'repository');
67  }
68  if($tree->getSavedNodeData($this->object->getRefId()))
69  {
70  $tabs_gui->addTarget('trash', $this->ctrl->getLinkTarget($this, 'trash'), 'trash', get_class($this));
71  }
72  }
73 }