ILIAS  release_8 Revision v8.24
ilFormSectionHeaderGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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.

36 {
37 $this->setType("section_header");
38 }

References setType().

+ 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.

83 : string
84 {
85 return $this->info;
86 }

◆ getParentForm()

ilFormSectionHeaderGUI::getParentForm ( )

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

94 {
95 return $this->parentform;
96 }
This class represents a property form user interface.

◆ 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.

63 : array
64 {
65 return $this->section_icon ?: array();
66 }

◆ getTitle()

ilFormSectionHeaderGUI::getTitle ( )

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

73 : string
74 {
75 return $this->title;
76 }

◆ getType()

ilFormSectionHeaderGUI::getType ( )

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

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

References $type.

◆ insert()

ilFormSectionHeaderGUI::insert ( ilTemplate  $a_tpl)

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

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 }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:514
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)

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

+ Here is the call graph for this function:

◆ setInfo()

ilFormSectionHeaderGUI::setInfo ( string  $a_info)

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

78 : void
79 {
80 $this->info = $a_info;
81 }

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

+ 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.

45 : void
46 {
47 $this->type = $a_type;
48 }

Referenced by __construct().

+ 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.

◆ $parentform

ilPropertyFormGUI ilFormSectionHeaderGUI::$parentform = null
protected

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

◆ $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.

◆ $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: