ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 ()
 Get actions for task table gui array( 'txt' => $lng->txt('sysc_action_repair') 'command' => 'repairTask' );. More...
 
 getTitle ()
 Get title of task. More...
 
 getDescription ()
 get description of task More...
 
 getGroupTitle ()
 Get title of group. More...
 
 getGroupDescription ()
 Get description of group. More...
 
 getTask ()
 
 executeCommand ()
 Execute command. More...
 

Protected Member Functions

 getLang ()
 Get language. More...
 
 getCtrl ()
 Get ctrl. More...
 
 showSimpleConfirmation ($a_text, $a_btn_text, $a_cmd)
 Show simple confirmation. More...
 
 cancel ()
 Cancel and return to task list. More...
 

Protected Attributes

 $ctrl
 
 $lng
 
 $task = null
 

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 11 of file class.ilSCComponentTaskGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCComponentTaskGUI::__construct ( ilSCTask  $task = null)

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

23 {
24 $this->task = $task;
25
26 $this->ctrl = $GLOBALS['ilCtrl'];
27 $this->lng = $GLOBALS['lng'];
28 }
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
Definition: CAS.php:276

References $GLOBALS, and $task.

Member Function Documentation

◆ cancel()

ilSCComponentTaskGUI::cancel ( )
protected

Cancel and return to task list.

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

124 {
125 $this->getCtrl()->returnToParent($this);
126 }

References getCtrl().

+ Here is the call graph for this function:

◆ executeCommand()

ilSCComponentTaskGUI::executeCommand ( )

Execute command.

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

92 {
93 $next_class = $this->getCtrl()->getNextClass($this);
94 $cmd = $this->getCtrl()->getCmd();
95
96 switch($next_class)
97 {
98 default:
99 $this->$cmd();
100 break;
101 }
102
103 }
$cmd
Definition: sahs_server.php:35

References $cmd, and getCtrl().

+ Here is the call graph for this function:

◆ getActions()

ilSCComponentTaskGUI::getActions ( )
abstract

Get actions for task table gui array( 'txt' => $lng->txt('sysc_action_repair') 'command' => 'repairTask' );.

Returns
array

Reimplemented in ilSCTreeTasksGUI.

◆ getCtrl()

◆ getDescription()

ilSCComponentTaskGUI::getDescription ( )
abstract

get description of task

Reimplemented in ilSCTreeTasksGUI.

◆ getGroupDescription()

ilSCComponentTaskGUI::getGroupDescription ( )
abstract

Get description of group.

Reimplemented in ilSCTreeTasksGUI.

◆ getGroupTitle()

ilSCComponentTaskGUI::getGroupTitle ( )
abstract

Get title of group.

Reimplemented in ilSCTreeTasksGUI.

◆ getLang()

◆ getTask()

◆ getTitle()

ilSCComponentTaskGUI::getTitle ( )
abstract

Get title of task.

Reimplemented in ilSCTreeTasksGUI.

◆ showSimpleConfirmation()

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

Show simple confirmation.

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

109 {
110 include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
111 $confirm = new ilConfirmationGUI();
112 $confirm->setFormAction($this->getCtrl()->getFormAction($this));
113 $confirm->setConfirm($a_btn_text, $a_cmd);
114 $confirm->setCancel($this->lng->txt('cancel'), 'cancel');
115 $confirm->setHeaderText($a_text);
116
117 $GLOBALS['tpl']->setContent($confirm->getHTML());
118 }
Confirmation screen class.

References $GLOBALS, and getCtrl().

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

ilSCComponentTaskGUI::$ctrl
protected

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

Referenced by getCtrl().

◆ $lng

ilSCComponentTaskGUI::$lng
protected

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

Referenced by getLang().

◆ $task

ilSCComponentTaskGUI::$task = null
protected

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

Referenced by __construct(), and getTask().


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