19declare(strict_types=0);
35 public function __construct(
int $a_id = 0,
int $a_id_type = self::REPOSITORY_NODE_ID,
int $a_parent_node_id = 0)
39 $this->error =
$DIC->error();
40 $this->
tabs = $DIC->tabs();
55 public function save(): void
62 $file = $this->
object->getFilePath();
68 public function render(
bool $a_return =
false,
string $a_url =
''): string
70 $ilUser = $this->dic->user();
71 $lng = $this->dic->language();
77 $wsp_id =
$tree->lookupNodeId($this->
object->getId());
79 $caption =
$lng->
txt(
"wsp_type_crsv") .
' "' . $this->
object->getTitle() .
'"';
83 if (!file_exists($this->
object->getFilePath())) {
98 return '<div><a href="' . $a_url .
'">' . $caption .
'</a></div>';
101 return '<div>' . $caption .
' (' .
$message .
')</div>';
112 $this->error->raiseError($this->
lng->txt(
'permission_denied'), $this->error->MESSAGE);
115 public static function _goto(
string $a_target): void
121 $id = explode(
"_", $a_target);
124 ilSharedResourceGUI::class,
137 if (isset($this->request->getQueryParams()[$key])) {
138 return $this->request->getQueryParams()[$key];
141 if (isset($this->request->getParsedBody()[$key])) {
142 return $this->request->getParsedBody()[$key];
145 return $default ??
null;
Customizing of pimple-DIC for ILIAS.
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
Error Handling & global info handling.
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
txt(string|LanguageIdentifier $a_topic, ?int $n=null)
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
GUI class for course verification.
getRequestValue(string $key, $default=null)
downloadFromPortfolioPage(ilPortfolioPage $a_page)
static _goto(string $a_target)
getType()
Functions that must be overwritten.
__construct(int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
render(bool $a_return=false, string $a_url='')
New implementation of ilObjectGUI.
static isInPortfolioPage(ilPortfolioPage $a_page, string $a_type, int $a_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc