ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilChatroomObjectGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26abstract class ilChatroomObjectGUI extends ilObjectGUI
27{
28 protected function dispatchCall(string $gui, string $method): bool
29 {
30 $definition = $this->getObjectDefinition();
31 if ($definition->hasGUI($gui)) {
32 $guiHandler = $definition->buildGUI($gui, $this);
33 $guiHandler->execute($method);
34 return true;
35 }
36
37 return false;
38 }
39
40 abstract protected function getObjectDefinition(): ilChatroomObjectDefinition;
41
42 abstract public function getConnector(): ilChatroomServerConnector;
43
47 public function switchToVisibleMode(): void
48 {
49 $this->prepareOutput();
50 }
51
52 public function getAdminTabs(): void
53 {
54 if (
55 $this->http->wrapper()->query()->has('admin_mode') &&
56 $this->http->wrapper()->query()->retrieve(
57 'admin_mode',
58 $this->refinery->kindlyTo()->string()
59 ) === 'repository'
60 ) {
61 $this->ctrl->setParameterByClass(ilAdministrationGUI::class, 'admin_mode', 'settings');
62 $this->tabs_gui->setBackTarget(
63 $this->lng->txt('administration'),
64 $this->ctrl->getLinkTargetByClass(ilAdministrationGUI::class, 'frameset')
65 );
66 $this->ctrl->setParameterByClass(ilAdministrationGUI::class, 'admin_mode', 'repository');
67 }
68
69 if ($this->tree->getSavedNodeData($this->object->getRefId())) {
70 $this->tabs_gui->addTarget('trash', $this->ctrl->getLinkTarget($this, 'trash'), 'trash', static::class);
71 }
72 }
73}
getAdminTabs()
administration tabs show only permissions and trash folder
switchToVisibleMode()
Calls $this->prepareOutput() method.
dispatchCall(string $gui, string $method)
Class ilChatroomServerConnector.
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput(bool $show_sub_objects=true)
Interface GlobalHttpState.
static http()
Fetches the global http state from ILIAS.