ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFormSectionHeaderGUI Class Reference

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

+ Collaboration diagram for ilFormSectionHeaderGUI:

Public Member Functions

 __construct ()
 Constructor.
 checkInput ()
 setType ($a_type)
 Set Type.
 getType ()
 Get Type.
 setSectionIcon ($a_file, $a_alt)
 Set section icon.
 getSectionIcon ()
 Get section icon.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setInfo ($a_info)
 Set Information Text.
 getInfo ()
 Get Information Text.
 setParentForm ($a_parentform)
 Set Parent Form.
 getParentForm ()
 Get Parent Form.
 setSectionAnchor ($value)
 set section label;
 insert (&$a_tpl)
 Insert property html.
 setValueByArray ($a_values)
 Set value by array.

Protected Attributes

 $type
 $title
 $info
 $section_icon
 $section_anchor

Detailed Description

This class represents a section header in a property form.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Constructor & Destructor Documentation

ilFormSectionHeaderGUI::__construct ( )

Constructor.

Parameters

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

References setType().

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

+ Here is the call graph for this function:

Member Function Documentation

ilFormSectionHeaderGUI::checkInput ( )

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

{
return true;
}
ilFormSectionHeaderGUI::getInfo ( )

Get Information Text.

Returns
string Information Text

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

References $info.

{
return $this->info;
}
ilFormSectionHeaderGUI::getParentForm ( )

Get Parent Form.

Returns
object Parent Form

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

{
return $this->parentform;
}
ilFormSectionHeaderGUI::getSectionIcon ( )

Get section icon.

public

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

Referenced by insert().

{
return $this->section_icon ? $this->section_icon : array();
}

+ Here is the caller graph for this function:

ilFormSectionHeaderGUI::getTitle ( )

Get Title.

Returns
string Title

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

References $title.

Referenced by insert().

{
return $this->title;
}

+ Here is the caller graph for this function:

ilFormSectionHeaderGUI::getType ( )

Get Type.

Returns
string Type

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

References $type.

{
return $this->type;
}
ilFormSectionHeaderGUI::insert ( $a_tpl)

Insert property html.

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

References $section_icon, getSectionIcon(), and getTitle().

{
if(isset($section_icon['file']) && is_file($section_icon['file']))
{
$a_tpl->setCurrentBlock("title_icon");
$a_tpl->setVariable("IMG_ICON",$section_icon['file']);
$a_tpl->setVariable('IMG_ALT',$section_icon['alt']);
$a_tpl->parseCurrentBlock();
}
$a_tpl->setCurrentBlock("header");
$a_tpl->setVariable("TXT_TITLE", $this->getTitle());
$a_tpl->setVariable('HEAD_COLSPAN',2);
if (isset($this->section_anchor))
$a_tpl->setVariable('LABEL', $this->section_anchor);
$a_tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

ilFormSectionHeaderGUI::setInfo (   $a_info)

Set Information Text.

Parameters
string$a_infoInformation Text

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

{
$this->info = $a_info;
}
ilFormSectionHeaderGUI::setParentForm (   $a_parentform)

Set Parent Form.

Parameters
object$a_parentformParent Form

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

{
$this->parentform = $a_parentform;
}
ilFormSectionHeaderGUI::setSectionAnchor (   $value)

set section label;

Parameters
unknown_type$value

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

{
$this->section_anchor = $value;
}
ilFormSectionHeaderGUI::setSectionIcon (   $a_file,
  $a_alt 
)

Set section icon.

public

Parameters
stringpath to icon
stringalternative text

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

{
$this->section_icon['file'] = $a_file;
$this->section_icon['alt'] = $a_alt;
}
ilFormSectionHeaderGUI::setTitle (   $a_title)

Set Title.

Parameters
string$a_titleTitle

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

{
$this->title = $a_title;
}
ilFormSectionHeaderGUI::setType (   $a_type)

Set Type.

Parameters
string$a_typeType

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

Referenced by __construct().

{
$this->type = $a_type;
}

+ Here is the caller graph for this function:

ilFormSectionHeaderGUI::setValueByArray (   $a_values)

Set value by array.

Parameters
array$a_valuesvalue array

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

{
// nothing to do since is a header
}

Field Documentation

ilFormSectionHeaderGUI::$info
protected

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

Referenced by getInfo().

ilFormSectionHeaderGUI::$section_anchor
protected

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

ilFormSectionHeaderGUI::$section_icon
protected

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

Referenced by insert().

ilFormSectionHeaderGUI::$title
protected

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

Referenced by getTitle().

ilFormSectionHeaderGUI::$type
protected

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

Referenced by getType().


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