131 ($this->
user->isAnonymous() || !($this->
user->getId() >= 1)) &&
133 $this->
http->request()->getServerParams()[
'SERVER_NAME']
136 $this->
ctrl->redirectToURL(
'./login.php?cmd=force_login');
139 $this->tool_context->claim()->repository();
143 $new_type = $this->request->getNewType();
145 if ($new_type !==
"" && $new_type !==
"sty") {
146 $this->creation_mode =
true;
147 $ilHelp->setScreenIdComponent($new_type);
149 $this->
ctrl->saveParameter($this, [
"crtcb"]);
155 if ($this->creation_mode) {
156 $obj_type = $new_type;
157 $class_name = $this->objDefinition->getClassName($obj_type);
158 if (strtolower($class_name) !==
"user") {
159 $next_class = strtolower(
"ilObj" . $class_name .
"GUI");
161 $next_class = $this->
ctrl->getNextClass();
172 if ($this->
ctrl->getNextClass() !== strtolower(
'ilObj' . $class_name .
'GUI')) {
173 $this->
ctrl->setCmdClass($next_class);
175 } elseif ((($next_class = $this->
ctrl->getNextClass($this)) ==
"")
176 || ($next_class ===
"ilrepositorygui" && $this->
ctrl->getCmd() ===
"return")) {
179 $class_name = $this->objDefinition->getClassName($obj_type);
180 $next_class = strtolower(
"ilObj" . $class_name .
"GUI");
182 $this->
ctrl->setCmdClass($next_class);
183 if ($this->
ctrl->getCmd() ===
"return") {
185 $this->
ctrl->redirectByClass($next_class,
"");
191 if (
$cmd ===
"showRepTree") {
195 switch ($next_class) {
199 case strtolower(ilObjFileUploadHandlerGUI::class):
205 if ($next_class !== null && $next_class !==
"" && $next_class !==
"ilrepositorygui") {
206 $class_path = $this->
ctrl->lookupClassPath($next_class);
209 $class_name = $this->
ctrl->getClassForClasspath($class_path);
210 if (!$this->creation_mode) {
211 if (is_subclass_of($class_name,
"ilObject2GUI")) {
214 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
216 } elseif (is_subclass_of($class_name,
"ilObject2GUI")) {
219 $this->gui_obj =
new $class_name(
"", 0,
true,
false);
221 $this->gui_obj->setCreationMode($this->creation_mode);
222 $this->
ctrl->setReturn($this,
"return");
226 $cmd = (string) $this->
ctrl->getCmd(
"");
231 $this->tpl->printToStdout();
static getLogger(string $a_component_id)
Get component logger.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
static http()
Fetches the global http state from ILIAS.
static _lookupType(int $id, bool $reference=false)