ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjectActivationGUI Class Reference

Class ilObjectActivationGUI. More...

+ Collaboration diagram for ilObjectActivationGUI:

Public Member Functions

 __construct (int $ref_id, int $item_id)
 
 executeCommand ()
 

Protected Member Functions

 setTabs ()
 

Protected Attributes

ilGlobalTemplateInterface $tpl
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ilHelpGUI $help
 
ILIAS HTTP Wrapper RequestWrapper $request_wrapper
 
ILIAS Refinery Factory $refinery
 
int $parent_ref_id
 
int $item_id
 
int $timing_mode = null
 
ilObjectActivation $activation = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjectActivationGUI::__construct ( int  $ref_id,
int  $item_id 
)

Definition at line 44 of file class.ilObjectActivationGUI.php.

45 {
46 global $DIC;
47
48 $this->tpl = $DIC->ui()->mainTemplate();
49 $this->ctrl = $DIC->ctrl();
50 $this->lng = $DIC->language();
51 $this->lng->loadLanguageModule('crs');
52 $this->tabs_gui = $DIC->tabs();
53 $this->help = $DIC["ilHelp"];
54 $this->request_wrapper = $DIC->http()->wrapper()->query();
55 $this->refinery = $DIC->refinery();
56
57 $this->parent_ref_id = $ref_id;
58 $this->item_id = $item_id;
59
60 $this->ctrl->saveParameter($this, 'item_id');
61 }
$ref_id
Definition: ltiauth.php:66
global $DIC
Definition: shib_login.php:26

References $DIC, $item_id, $ref_id, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilObjectActivationGUI::executeCommand ( )

Definition at line 63 of file class.ilObjectActivationGUI.php.

63 : void
64 {
65 $this->setTabs();
66
67 $this->tpl->loadStandardTemplate();
68
69 $this->ctrl->forwardCommand(
70 new ilConditionHandlerGUI($this->item_id)
71 );
72 $this->tpl->printToStdout();
73 }
class ilConditionHandlerGUI

References ILIAS\Repository\ctrl(), and setTabs().

+ Here is the call graph for this function:

◆ setTabs()

ilObjectActivationGUI::setTabs ( )
protected

Definition at line 75 of file class.ilObjectActivationGUI.php.

75 : bool
76 {
77 $this->tabs_gui->clearTargets();
78
79 $this->help->setScreenIdComponent("obj");
80
81 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->parent_ref_id);
82 $back_link = $this->ctrl->getLinkTargetByClass("ilrepositorygui", "");
83 $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->string());
84 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $ref_id);
85 $this->tabs_gui->setBackTarget($this->lng->txt('btn_back'), $back_link);
86
87 $this->ctrl->setParameterByClass('ilconditionhandlergui', 'item_id', $this->item_id);
88 $this->tabs_gui->addTarget(
89 "preconditions",
90 $this->ctrl->getLinkTargetByClass('ilConditionHandlerGUI', 'listConditions'),
91 "",
92 "ilConditionHandlerGUI"
93 );
94 return true;
95 }

References $ref_id, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $activation

ilObjectActivation ilObjectActivationGUI::$activation = null
protected

Definition at line 42 of file class.ilObjectActivationGUI.php.

◆ $ctrl

ilCtrl ilObjectActivationGUI::$ctrl
protected

Definition at line 31 of file class.ilObjectActivationGUI.php.

◆ $help

ilHelpGUI ilObjectActivationGUI::$help
protected

Definition at line 34 of file class.ilObjectActivationGUI.php.

◆ $item_id

int ilObjectActivationGUI::$item_id
protected

Definition at line 39 of file class.ilObjectActivationGUI.php.

Referenced by __construct().

◆ $lng

ilLanguage ilObjectActivationGUI::$lng
protected

Definition at line 32 of file class.ilObjectActivationGUI.php.

◆ $parent_ref_id

int ilObjectActivationGUI::$parent_ref_id
protected

Definition at line 38 of file class.ilObjectActivationGUI.php.

◆ $refinery

ILIAS Refinery Factory ilObjectActivationGUI::$refinery
protected

Definition at line 36 of file class.ilObjectActivationGUI.php.

◆ $request_wrapper

ILIAS HTTP Wrapper RequestWrapper ilObjectActivationGUI::$request_wrapper
protected

Definition at line 35 of file class.ilObjectActivationGUI.php.

◆ $tabs_gui

ilTabsGUI ilObjectActivationGUI::$tabs_gui
protected

Definition at line 33 of file class.ilObjectActivationGUI.php.

◆ $timing_mode

int ilObjectActivationGUI::$timing_mode = null
protected

Definition at line 41 of file class.ilObjectActivationGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilObjectActivationGUI::$tpl
protected

Definition at line 30 of file class.ilObjectActivationGUI.php.


The documentation for this class was generated from the following file: