ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilFormSectionHeaderGUI Class Reference

This class represents a section header in a property form. More...

+ Collaboration diagram for ilFormSectionHeaderGUI:

Public Member Functions

 __construct ()
 
 checkInput ()
 
 setType (string $a_type)
 
 getType ()
 
 setSectionIcon (string $a_file, string $a_alt)
 
 getSectionIcon ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setInfo (string $a_info)
 
 getInfo ()
 
 setParentForm (ilPropertyFormGUI $a_parentform)
 
 getParentForm ()
 
 setSectionAnchor (string $value)
 
 insert (ilTemplate $a_tpl)
 
 setValueByArray (array $a_values)
 
 getPostVar ()
 

Protected Attributes

string $type = ""
 
string $title = ""
 
string $info = ""
 
array $section_icon = []
 
string $section_anchor = ""
 
ilPropertyFormGUI $parentform = null
 

Detailed Description

This class represents a section header in a property form.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ilFormSectionHeaderGUI::__construct ( )

Definition at line 35 of file class.ilFormSectionHeaderGUI.php.

References setType().

36  {
37  $this->setType("section_header");
38  }
+ Here is the call graph for this function:

Member Function Documentation

◆ checkInput()

ilFormSectionHeaderGUI::checkInput ( )

Definition at line 40 of file class.ilFormSectionHeaderGUI.php.

40  : bool
41  {
42  return true;
43  }

◆ getInfo()

ilFormSectionHeaderGUI::getInfo ( )

Definition at line 83 of file class.ilFormSectionHeaderGUI.php.

References $info.

Referenced by insert().

83  : string
84  {
85  return $this->info;
86  }
+ Here is the caller graph for this function:

◆ getParentForm()

ilFormSectionHeaderGUI::getParentForm ( )

Definition at line 93 of file class.ilFormSectionHeaderGUI.php.

References $parentform.

◆ getPostVar()

ilFormSectionHeaderGUI::getPostVar ( )

Definition at line 128 of file class.ilFormSectionHeaderGUI.php.

128  : string
129  {
130  return "";
131  }

◆ getSectionIcon()

ilFormSectionHeaderGUI::getSectionIcon ( )

Definition at line 63 of file class.ilFormSectionHeaderGUI.php.

Referenced by insert().

63  : array
64  {
65  return $this->section_icon ?: array();
66  }
+ Here is the caller graph for this function:

◆ getTitle()

ilFormSectionHeaderGUI::getTitle ( )

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

References $title.

Referenced by insert().

73  : string
74  {
75  return $this->title;
76  }
+ Here is the caller graph for this function:

◆ getType()

ilFormSectionHeaderGUI::getType ( )

Definition at line 50 of file class.ilFormSectionHeaderGUI.php.

References $type.

50  : string
51  {
52  return $this->type;
53  }

◆ insert()

ilFormSectionHeaderGUI::insert ( ilTemplate  $a_tpl)

Definition at line 103 of file class.ilFormSectionHeaderGUI.php.

References getInfo(), getSectionIcon(), getTitle(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

103  : void
104  {
105  $section_icon = $this->getSectionIcon();
106 
107  if (isset($section_icon['file']) && is_file($section_icon['file'])) {
108  $a_tpl->setCurrentBlock("title_icon");
109  $a_tpl->setVariable("IMG_ICON", $section_icon['file']);
110  $a_tpl->setVariable('IMG_ALT', $section_icon['alt']);
111  $a_tpl->parseCurrentBlock();
112  }
113 
114  $a_tpl->setCurrentBlock("header");
115  $a_tpl->setVariable("TXT_TITLE", $this->getTitle());
116  $a_tpl->setVariable("TXT_DESCRIPTION", $this->getInfo());
117  $a_tpl->setVariable('HEAD_COLSPAN', 2);
118  if (isset($this->section_anchor)) {
119  $a_tpl->setVariable('LABEL', $this->section_anchor);
120  }
121  $a_tpl->parseCurrentBlock();
122  }
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:544
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
+ Here is the call graph for this function:

◆ setInfo()

ilFormSectionHeaderGUI::setInfo ( string  $a_info)

Definition at line 78 of file class.ilFormSectionHeaderGUI.php.

References ILIAS\UI\examples\MessageBox\Info\info().

78  : void
79  {
80  $this->info = $a_info;
81  }
info()
description: > Example for rendering a info message box.
Definition: info.php:34
+ Here is the call graph for this function:

◆ setParentForm()

ilFormSectionHeaderGUI::setParentForm ( ilPropertyFormGUI  $a_parentform)

Definition at line 88 of file class.ilFormSectionHeaderGUI.php.

88  : void
89  {
90  $this->parentform = $a_parentform;
91  }

◆ setSectionAnchor()

ilFormSectionHeaderGUI::setSectionAnchor ( string  $value)

Definition at line 98 of file class.ilFormSectionHeaderGUI.php.

98  : void
99  {
100  $this->section_anchor = $value;
101  }

◆ setSectionIcon()

ilFormSectionHeaderGUI::setSectionIcon ( string  $a_file,
string  $a_alt 
)

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

58  : void {
59  $this->section_icon['file'] = $a_file;
60  $this->section_icon['alt'] = $a_alt;
61  }

◆ setTitle()

ilFormSectionHeaderGUI::setTitle ( string  $a_title)

Definition at line 68 of file class.ilFormSectionHeaderGUI.php.

68  : void
69  {
70  $this->title = $a_title;
71  }

◆ setType()

ilFormSectionHeaderGUI::setType ( string  $a_type)

Definition at line 45 of file class.ilFormSectionHeaderGUI.php.

Referenced by __construct().

45  : void
46  {
47  $this->type = $a_type;
48  }
+ Here is the caller graph for this function:

◆ setValueByArray()

ilFormSectionHeaderGUI::setValueByArray ( array  $a_values)

Definition at line 124 of file class.ilFormSectionHeaderGUI.php.

124  : void
125  {
126  }

Field Documentation

◆ $info

string ilFormSectionHeaderGUI::$info = ""
protected

Definition at line 30 of file class.ilFormSectionHeaderGUI.php.

Referenced by getInfo().

◆ $parentform

ilPropertyFormGUI ilFormSectionHeaderGUI::$parentform = null
protected

Definition at line 33 of file class.ilFormSectionHeaderGUI.php.

Referenced by getParentForm().

◆ $section_anchor

string ilFormSectionHeaderGUI::$section_anchor = ""
protected

Definition at line 32 of file class.ilFormSectionHeaderGUI.php.

◆ $section_icon

array ilFormSectionHeaderGUI::$section_icon = []
protected

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

◆ $title

string ilFormSectionHeaderGUI::$title = ""
protected

Definition at line 29 of file class.ilFormSectionHeaderGUI.php.

Referenced by getTitle().

◆ $type

string ilFormSectionHeaderGUI::$type = ""
protected

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

Referenced by getType().


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