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

Abstract class for component tasks. More...

+ Inheritance diagram for ilSCComponentTaskGUI:
+ Collaboration diagram for ilSCComponentTaskGUI:

Public Member Functions

 __construct (?ilSCTask $task=null)
 
 getActions ()
 array( 'txt' => $lng->txt('sysc_action_repair') 'command' => 'repairTask' ); More...
 
 getTitle ()
 
 getDescription ()
 
 getGroupTitle ()
 
 getGroupDescription ()
 
 getTask ()
 
 executeCommand ()
 

Protected Member Functions

 getLang ()
 
 getCtrl ()
 
 showSimpleConfirmation (string $a_text, string $a_btn_text, string $a_cmd)
 
 cancel ()
 

Protected Attributes

ilCtrl $ctrl
 
ilLanguage $lng
 
ilGlobalTemplateInterface $tpl
 
ilSCTask $task
 

Detailed Description

Abstract class for component tasks.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 24 of file class.ilSCComponentTaskGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCComponentTaskGUI::__construct ( ?ilSCTask  $task = null)

Reimplemented in ilSCTreeTasksGUI.

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

33 {
34 global $DIC;
35 $this->task = $task;
36
37 $this->ctrl = $DIC->ctrl();
38 $this->lng = $DIC->language();
39 $this->tpl = $DIC->ui()->mainTemplate();
40 }
global $DIC
Definition: shib_login.php:26

References $DIC, $task, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ cancel()

ilSCComponentTaskGUI::cancel ( )
protected

Definition at line 96 of file class.ilSCComponentTaskGUI.php.

96 : void
97 {
98 $this->getCtrl()->returnToParent($this);
99 }

References getCtrl().

+ Here is the call graph for this function:

◆ executeCommand()

ilSCComponentTaskGUI::executeCommand ( )

Definition at line 73 of file class.ilSCComponentTaskGUI.php.

73 : void
74 {
75 $next_class = $this->getCtrl()->getNextClass($this);
76 $cmd = $this->getCtrl()->getCmd();
77
78 switch ($next_class) {
79 default:
80 $this->$cmd();
81 break;
82 }
83 }

References getCtrl().

+ Here is the call graph for this function:

◆ getActions()

ilSCComponentTaskGUI::getActions ( )
abstract

array( 'txt' => $lng->txt('sysc_action_repair') 'command' => 'repairTask' );

Reimplemented in ilSCTreeTasksGUI.

◆ getCtrl()

◆ getDescription()

ilSCComponentTaskGUI::getDescription ( )
abstract

Reimplemented in ilSCTreeTasksGUI.

◆ getGroupDescription()

ilSCComponentTaskGUI::getGroupDescription ( )
abstract

Reimplemented in ilSCTreeTasksGUI.

◆ getGroupTitle()

ilSCComponentTaskGUI::getGroupTitle ( )
abstract

Reimplemented in ilSCTreeTasksGUI.

◆ getLang()

◆ getTask()

◆ getTitle()

ilSCComponentTaskGUI::getTitle ( )
abstract

Reimplemented in ilSCTreeTasksGUI.

◆ showSimpleConfirmation()

ilSCComponentTaskGUI::showSimpleConfirmation ( string  $a_text,
string  $a_btn_text,
string  $a_cmd 
)
protected

Definition at line 85 of file class.ilSCComponentTaskGUI.php.

85 : void
86 {
87 $confirm = new ilConfirmationGUI();
88 $confirm->setFormAction($this->getCtrl()->getFormAction($this));
89 $confirm->setConfirm($a_btn_text, $a_cmd);
90 $confirm->setCancel($this->lng->txt('cancel'), 'cancel');
91 $confirm->setHeaderText($a_text);
92
93 $this->tpl->setContent($confirm->getHTML());
94 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References getCtrl(), and ILIAS\Repository\lng().

Referenced by ilSCTreeTasksGUI\confirmRepairMissing(), ilSCTreeTasksGUI\confirmRepairMissingTreeEntries(), and ilSCTreeTasksGUI\confirmRepairStructure().

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

Field Documentation

◆ $ctrl

ilCtrl ilSCComponentTaskGUI::$ctrl
protected

Definition at line 26 of file class.ilSCComponentTaskGUI.php.

Referenced by getCtrl().

◆ $lng

ilLanguage ilSCComponentTaskGUI::$lng
protected

Definition at line 27 of file class.ilSCComponentTaskGUI.php.

Referenced by getLang().

◆ $task

ilSCTask ilSCComponentTaskGUI::$task
protected

◆ $tpl

ilGlobalTemplateInterface ilSCComponentTaskGUI::$tpl
protected

Definition at line 28 of file class.ilSCComponentTaskGUI.php.


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