ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)

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

References $DIC, $task, ILIAS\Repository\ctrl(), getActions(), getDescription(), getGroupDescription(), getGroupTitle(), getTitle(), and ILIAS\Repository\lng().

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:22
+ Here is the call graph for this function:

Member Function Documentation

◆ cancel()

ilSCComponentTaskGUI::cancel ( )
protected

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

References getCtrl().

96  : void
97  {
98  $this->getCtrl()->returnToParent($this);
99  }
+ Here is the call graph for this function:

◆ executeCommand()

ilSCComponentTaskGUI::executeCommand ( )

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

References getCtrl().

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  }
+ Here is the call graph for this function:

◆ getActions()

ilSCComponentTaskGUI::getActions ( )
abstract

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

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getCtrl()

◆ getDescription()

ilSCComponentTaskGUI::getDescription ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getGroupDescription()

ilSCComponentTaskGUI::getGroupDescription ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getGroupTitle()

ilSCComponentTaskGUI::getGroupTitle ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getLang()

◆ getTask()

◆ getTitle()

ilSCComponentTaskGUI::getTitle ( )
abstract

Referenced by __construct().

+ Here is the caller graph for this function:

◆ showSimpleConfirmation()

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

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

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

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

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  }
+ 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: