ILIAS  release_8 Revision v8.24
ilSystemStyleDeleteGUI Class Reference
+ Collaboration diagram for ilSystemStyleDeleteGUI:

Public Member Functions

 __construct (ilLanguage $lng, ilCtrl $ctrl)
 
 addStyle (ilSkin $skin, ilSkinStyle $style, string $img_path)
 
 getDeleteStyleFormHTML ()
 

Protected Attributes

ilLanguage $lng
 
ilCtrl $ctrl
 
array $styles = []
 

Private Attributes

ilGlobalTemplateInterface $main_tpl
 

Detailed Description

Definition at line 21 of file class.ilSystemStyleDeleteGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleDeleteGUI::__construct ( ilLanguage  $lng,
ilCtrl  $ctrl 
)

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

29 {
30 global $DIC;
31 $this->main_tpl = $DIC->ui()->mainTemplate();
32 $this->lng = $lng;
33 $this->ctrl = $ctrl;
34 }
global $DIC
Definition: feed.php:28

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

+ Here is the call graph for this function:

Member Function Documentation

◆ addStyle()

ilSystemStyleDeleteGUI::addStyle ( ilSkin  $skin,
ilSkinStyle  $style,
string  $img_path 
)

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

36 : void
37 {
38 $this->styles[] = [
39 'var' => 'style_' . sizeof($this->styles),
40 'id' => $skin->getId() . ':' . $style->getId(),
41 'text' => $skin->getName() . ' / ' . $style->getName(),
42 'img' => $img_path,
43 'alt' => ''
44 ];
45 }

References $styles, ilSkin\getId(), ilSkinStyle\getId(), ilSkin\getName(), and ilSkinStyle\getName().

+ Here is the call graph for this function:

◆ getDeleteStyleFormHTML()

ilSystemStyleDeleteGUI::getDeleteStyleFormHTML ( )

Definition at line 47 of file class.ilSystemStyleDeleteGUI.php.

47 : string
48 {
49 $this->main_tpl->setOnScreenMessage('question', $this->lng->txt('info_delete_sure'), true);
50
51 $table_form = new ilConfirmationTableGUI(true);
52 $table_form->setFormName('delete_style');
53
54 $table_form->addCommandButton('confirmDelete', $this->lng->txt('confirm'));
55 $table_form->addCommandButton('cancel', $this->lng->txt('cancel'));
56 $table_form->setFormAction($this->ctrl->getFormActionByClass('ilSystemStyleOverviewGUI'));
57 $table_form->setData($this->styles);
58 return $table_form->getHTML();
59 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilSystemStyleDeleteGUI::$ctrl
protected

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

Referenced by __construct().

◆ $lng

ilLanguage ilSystemStyleDeleteGUI::$lng
protected

Definition at line 23 of file class.ilSystemStyleDeleteGUI.php.

Referenced by __construct().

◆ $main_tpl

ilGlobalTemplateInterface ilSystemStyleDeleteGUI::$main_tpl
private

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

◆ $styles

array ilSystemStyleDeleteGUI::$styles = []
protected

Definition at line 25 of file class.ilSystemStyleDeleteGUI.php.

Referenced by addStyle().


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