ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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

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 array, ilSkinStyleXML\getId(), ilSkinXML\getId(), ilUtil\getImagePath(), ilSkinStyleXML\getName(), and ilSkinXML\getName().

43  {
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  }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getDeleteStyleFormHTML()

ilSystemStyleDeleteGUI::getDeleteStyleFormHTML ( )
Returns
string

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

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

55  {
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  }
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 72 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 80 of file class.ilSystemStyleDeleteGUI.php.

References $styles.

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

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: