130 ($this->
user->isAnonymous() || !($this->
user->getId() >= 1)) &&
132 $this->
http->request()->getServerParams()[
'SERVER_NAME']
135 $this->
ctrl->redirectToURL(
'./login.php?cmd=force_login');
138 $this->tool_context->claim()->repository();
142 $new_type = $this->request->getNewType();
144 if ($new_type !==
"" && $new_type !==
"sty") {
145 $this->creation_mode =
true;
146 $ilHelp->setScreenIdComponent($new_type);
148 $this->
ctrl->saveParameter($this, [
"crtcb"]);
154 if ($this->creation_mode) {
155 $obj_type = $new_type;
156 $class_name = $this->objDefinition->getClassName($obj_type);
157 if (strtolower($class_name) !==
"user") {
158 $next_class = strtolower(
"ilObj" . $class_name .
"GUI");
160 $next_class = $this->
ctrl->getNextClass();
171 if ($this->
ctrl->getNextClass() !== strtolower(
'ilObj' . $class_name .
'GUI')) {
172 $this->
ctrl->setParameterByClass($next_class,
"new_type", $new_type);
173 $this->
ctrl->redirectByClass($next_class, $this->
ctrl->getCmd());
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 if ($this->
ctrl->getCmd() ===
"return") {
183 $this->
ctrl->redirectByClass($next_class,
"");
186 if ($this->
ctrl->getCmd() !==
"showRepTree") {
187 $this->
ctrl->setParameterByClass($next_class,
"item_ref_id", $this->request->getItemRefId());
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)