30 private \ILIAS\WorkflowEngine\Service
$service;
40 public function __construct($a_data,
int $a_id,
bool $a_call_by_reference =
true,
bool $a_prepare_output =
true)
44 $this->ilTabs =
$DIC[
'ilTabs'];
45 $this->
lng = $DIC[
'lng'];
46 $this->
lng->loadLanguageModule(
'wfe');
48 $this->tpl =
$DIC[
'tpl'];
49 $this->tree =
$DIC[
'tree'];
50 $this->ilLocator =
$DIC[
'ilLocator'];
51 $this->ilToolbar =
$DIC[
'ilToolbar'];
53 $this->service =
$DIC->workflowEngine();
63 if ($next_class ===
'' || $next_class ===
null) {
69 switch ($next_class) {
70 case 'ilpermissiongui':
73 $this->ilTabs->setTabActive(
'perm_settings');
75 $this->
ctrl->forwardCommand($perm_gui);
87 $this->tpl->loadStandardTemplate();
90 $this->tpl->setTitle($this->
getObject()->getTitle());
91 $this->tpl->setDescription($this->
getObject()->getDescription());
96 public function initTabs(
string $section): void
99 $rbacsystem =
$DIC->rbac()->system();
101 if ($rbacsystem->checkAccess(
'visible,read', $this->getObject()->getRefId())) {
102 $this->ilTabs->addTab(
104 $this->
lng->txt(
'settings'),
105 $this->ilCtrl->getLinkTarget($this,
'settings.view')
108 if ($rbacsystem->checkAccess(
'edit_permission', $this->getObject()->getRefId())) {
109 $this->ilTabs->addTab(
111 $this->
lng->txt(
'perm_settings'),
112 $this->ilCtrl->getLinkTargetByClass([
'ilobjworkflowenginegui',
'ilpermissiongui'],
'perm')
116 $this->ilTabs->setTabActive($section);
121 $path = $this->tree->getPathFull($this->service->internal()->request()->getRefId());
124 if ($row[
"title"] ===
"Workflow Engine") {
125 $row[
"title"] = $this->
lng->txt(
"obj_wfe");
129 $this->ilLocator->addItem(
136 $this->
ilCtrl->
setParameter($this,
"ref_id", $this->service->internal()->request()->getRefId());
139 $this->tpl->setLocator();
146 return $target_handler->handle($command);
Customizing of pimple-DIC for ILIAS.
Class ilCtrl provides processing control methods.
getNextClass($a_gui_class=null)
@inheritDoc
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
@inheritDoc
getCmd(string $fallback_command=null)
@inheritDoc
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjWorkflowEngineGUI.
ILIAS WorkflowEngine Service $service
initTabs(string $section)
__construct($a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
ilGlobalTemplateInterface $tpl
dispatchCommand(string $cmd)
dispatchToSettings(string $command)
Class ilObjectGUI Basic methods of all Output classes.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
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...
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
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