ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSystemStyleDeleteGUI Class Reference
+ Collaboration diagram for ilSystemStyleDeleteGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 addStyle (ilSkinXML $skin, ilSkinStyleXML $style)
 
 getDeleteStyleFormHTML ()
 
 getStyles ()
 
 setStyles ($styles)
 

Protected Attributes

 $lng
 
 $ctrl
 
 $styles = array()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleDeleteGUI::__construct ( )

Constructor.

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

References $DIC.

32  {
33  global $DIC;
34 
35  $this->lng = $DIC->language();
36  $this->ctrl = $DIC->ctrl();
37  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ addStyle()

ilSystemStyleDeleteGUI::addStyle ( ilSkinXML  $skin,
ilSkinStyleXML  $style 
)
Parameters
ilSkinXML$skin
ilSkinStyleXML$style

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

References ilSkinStyleXML\getId(), ilSkinXML\getId(), ilUtil\getImagePath(), ilSkinStyleXML\getName(), and ilSkinXML\getName().

44  {
45  $this->styles[] = array(
46  "var" => "style_" . $skin->getId() . ":" . $style->getId(),
47  "id" => $skin->getId() . ":" . $style->getId(),
48  "text" => $skin->getName() . " / " . $style->getName(),
49  "img" => ilUtil::getImagePath('icon_stys.svg')
50  );
51  }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:

◆ getDeleteStyleFormHTML()

ilSystemStyleDeleteGUI::getDeleteStyleFormHTML ( )
Returns
string

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

References getStyles(), and ilUtil\sendQuestion().

57  {
58  ilUtil::sendQuestion($this->lng->txt("info_delete_sure"), true);
59 
60  $table_form = new ilConfirmationTableGUI(true);
61  $table_form->setFormName("delete_style");
62 
63  $table_form->addCommandButton('confirmDelete', $this->lng->txt('confirm'));
64  $table_form->addCommandButton('cancel', $this->lng->txt('cancel'));
65  $table_form->setFormAction($this->ctrl->getFormActionByClass("ilSystemStyleOverviewGUI"));
66  $table_form->setData($this->getStyles());
67  return $table_form->getHTML();
68  }
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.
+ Here is the call graph for this function:

◆ getStyles()

ilSystemStyleDeleteGUI::getStyles ( )
Returns
array

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

References $styles.

Referenced by getDeleteStyleFormHTML().

+ Here is the caller graph for this function:

◆ setStyles()

ilSystemStyleDeleteGUI::setStyles (   $styles)
Parameters
array$styles

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

References $styles.

82  {
83  $this->styles = $styles;
84  }

Field Documentation

◆ $ctrl

ilSystemStyleDeleteGUI::$ctrl
protected

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

◆ $lng

ilSystemStyleDeleteGUI::$lng
protected

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

◆ $styles

ilSystemStyleDeleteGUI::$styles = array()
protected

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

Referenced by getStyles(), and setStyles().


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