ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilSystemStyleDeleteGUI.php
Go to the documentation of this file.
1<?php
2include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
3include_once("Services/Utilities/classes/class.ilConfirmationTableGUI.php");
4
5
11{
12
16 protected $lng;
17
21 protected $ctrl;
22
26 protected $styles = array();
27
31 function __construct()
32 {
33 global $DIC;
34
35 $this->lng = $DIC->language();
36 $this->ctrl = $DIC->ctrl();
37 }
38
44 $this->styles[] = array(
45 "var" => "style_".$skin->getId().":".$style->getId(),
46 "id" => $skin->getId().":".$style->getId(),
47 "text" => $skin->getName()." / ".$style->getName(),
48 "img" => ilUtil::getImagePath('icon_stys.svg')
49 );
50 }
51
55 public function getDeleteStyleFormHTML() {
56 ilUtil::sendQuestion($this->lng->txt("info_delete_sure"),true);
57
58 $table_form = new ilConfirmationTableGUI(true);
59 $table_form->setFormName("delete_style");
60
61 $table_form->addCommandButton('confirmDelete', $this->lng->txt('confirm'));
62 $table_form->addCommandButton('cancel', $this->lng->txt('cancel'));
63 $table_form->setFormAction($this->ctrl->getFormActionByClass("ilSystemStyleOverviewGUI"));
64 $table_form->setData($this->getStyles());
65 return $table_form->getHTML();
66
67 }
68
72 public function getStyles()
73 {
74 return $this->styles;
75 }
76
80 public function setStyles($styles)
81 {
82 $this->styles = $styles;
83 }
84
85
86}
An exception for terminatinating execution or to throw for unit testing.
ilSkinXml holds an manages the basic data of a skin as provide by the template of the skin.
addStyle(ilSkinXML $skin, ilSkinStyleXML $style)
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
$style
Definition: example_012.php:70
global $DIC