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->setParameterByClass($next_class,
"new_type", $new_type);
174 $this->
ctrl->redirectByClass($next_class, $this->
ctrl->getCmd());
176 } elseif ((($next_class = $this->
ctrl->getNextClass($this)) ==
"")
177 || ($next_class ===
"ilrepositorygui" && $this->
ctrl->getCmd() ===
"return")) {
180 $class_name = $this->objDefinition->getClassName($obj_type);
181 $next_class = strtolower(
"ilObj" . $class_name .
"GUI");
183 if ($this->
ctrl->getCmd() ===
"return") {
184 $this->
ctrl->redirectByClass($next_class,
"");
187 if ($this->
ctrl->getCmd() !==
"showRepTree") {
188 $this->
ctrl->redirectByClass($next_class, $this->
ctrl->getCmd());
194 if (
$cmd ===
"showRepTree") {
198 switch ($next_class) {
202 case strtolower(ilObjFileUploadHandlerGUI::class):
208 if ($next_class !==
null && $next_class !==
"" && $next_class !==
"ilrepositorygui") {
209 $class_path = $this->
ctrl->lookupClassPath($next_class);
212 $class_name = $this->
ctrl->getClassForClasspath($class_path);
213 if (!$this->creation_mode) {
214 if (is_subclass_of($class_name,
"ilObject2GUI")) {
217 $this->gui_obj =
new $class_name(
"", $this->cur_ref_id,
true,
false);
219 } elseif (is_subclass_of($class_name,
"ilObject2GUI")) {
222 $this->gui_obj =
new $class_name(
"", 0,
true,
false);
224 $this->gui_obj->setCreationMode($this->creation_mode);
225 $this->
ctrl->setReturn($this,
"return");
229 $cmd = (string) $this->
ctrl->getCmd(
"");
234 $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...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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)