ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjRecoveryFolderGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
30{
33
34 public function __construct(
35 $a_data,
36 int $a_id,
37 bool $a_call_by_reference
38 ) {
40 global $DIC;
41
42 $this->rbacadmin = $DIC->rbac()->admin();
43 $this->rbacsystem = $DIC->rbac()->system();
44 $this->type = "recf";
45 parent::__construct($a_data, $a_id, $a_call_by_reference, false);
46
47 $this->admin_request = new AdminGUIRequest(
48 $DIC->http(),
49 $DIC->refinery()
50 );
51 }
52
53 public function saveObject(): void
54 {
55 parent::saveObject();
56 $this->tpl->setOnScreenMessage('success', $this->lng->txt("object_added"), true);
57 exit();
58 }
59
60 public function removeFromSystemObject(): void
61 {
62 $ru = new ilRepositoryTrashGUI($this);
63 $ru->removeObjectsFromSystem($this->admin_request->getSelectedIds(), true);
64 $this->ctrl->redirect($this, "view");
65 }
66
67 public function executeCommand(): void
68 {
69 $next_class = $this->ctrl->getNextClass($this);
70 $cmd = $this->ctrl->getCmd();
71 $this->prepareOutput();
72
73 switch ($next_class) {
74 case 'ilpermissiongui':
75 $perm_gui = new ilPermissionGUI($this);
76 $this->ctrl->forwardCommand($perm_gui);
77 break;
78
79 default:
80 if (!$cmd) {
81 $cmd = "view";
82 }
83 $cmd .= "Object";
84 $this->$cmd();
85 break;
86 }
87 }
88
89 protected function showPossibleSubObjects(): void
90 {
91 $this->sub_objects = "";
92 }
93
94 public function getActions(): array
95 {
96 // standard actions for container
97 return array(
98 "cut" => array("name" => "cut", "lng" => "cut"),
99 "clear" => array("name" => "clear", "lng" => "clear"),
100 "removeFromSystem" => array("name" => "removeFromSystem", "lng" => "btn_remove_system")
101 );
102 }
103}
Class ilContainerGUI This is a base GUI class for all container objects in ILIAS: root folder,...
Class ilObjRecoveryFolderGUI.
showPossibleSubObjects()
show possible sub objects (pull down menu)
prepareOutput(bool $show_sub_objects=true)
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
Repository GUI Utilities.
exit
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26