ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilModalGUI Class Reference

Modal class. More...

+ Collaboration diagram for ilModalGUI:

Public Member Functions

 setId ($a_val)
 Set id.
 getId ()
 Get id.
 setHeading ($a_val)
 Set heading.
 getHeading ()
 Get heading.
 setBody ($a_val)
 Set body.
 getBody ()
 Get body.
 setType ($a_val)
 Set type.
 getType ()
 Get type.
 getHTML ()
 Get HTML.

Static Public Member Functions

static getInstance ()
 Get instance.

Data Fields

const TYPE_LARGE = "large"
const TYPE_MEDIUM = "medium"
const TYPE_SMALL = "small"

Protected Member Functions

 __construct ()
 Constructor.

Protected Attributes

 $heading = ""
 $body = ""
 $id = ""
 $type = self::TYPE_MEDIUM

Detailed Description

Modal class.

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

Definition at line 12 of file class.ilModalGUI.php.

Constructor & Destructor Documentation

ilModalGUI::__construct ( )
protected

Constructor.

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

{
}

Member Function Documentation

ilModalGUI::getBody ( )

Get body.

Returns
string body

Definition at line 96 of file class.ilModalGUI.php.

References $body.

Referenced by getHTML().

{
return $this->body;
}

+ Here is the caller graph for this function:

ilModalGUI::getHeading ( )

Get heading.

Returns
string heading

Definition at line 76 of file class.ilModalGUI.php.

References $heading.

Referenced by getHTML().

{
}

+ Here is the caller graph for this function:

ilModalGUI::getHTML ( )

Get HTML.

Returns
string html

Definition at line 126 of file class.ilModalGUI.php.

References $tpl, getBody(), getHeading(), getId(), and getType().

{
$tpl = new ilTemplate("tpl.modal.html", true, true, "Services/UIComponent/Modal");
$tpl->setVariable("HEADING", $this->getHeading());
$tpl->setVariable("MOD_ID", $this->getId());
$tpl->setVariable("BODY", $this->getBody());
switch ($this->getType())
{
case self::TYPE_LARGE:
$tpl->setVariable("CLASS", "modal-lg");
break;
case self::TYPE_SMALL:
$tpl->setVariable("CLASS", "modal-sm");
break;
}
return $tpl->get();
}

+ Here is the call graph for this function:

ilModalGUI::getId ( )

Get id.

Returns
string id

Definition at line 56 of file class.ilModalGUI.php.

References $id.

Referenced by getHTML().

{
return $this->id;
}

+ Here is the caller graph for this function:

static ilModalGUI::getInstance ( )
static
ilModalGUI::getType ( )

Get type.

Returns
string type

Definition at line 116 of file class.ilModalGUI.php.

References $type.

Referenced by getHTML().

{
return $this->type;
}

+ Here is the caller graph for this function:

ilModalGUI::setBody (   $a_val)

Set body.

Parameters
string$a_valbody

Definition at line 86 of file class.ilModalGUI.php.

{
$this->body = $a_val;
}
ilModalGUI::setHeading (   $a_val)

Set heading.

Parameters
string$a_valheading

Definition at line 66 of file class.ilModalGUI.php.

{
$this->heading = $a_val;
}
ilModalGUI::setId (   $a_val)

Set id.

Parameters
string$a_valid

Definition at line 46 of file class.ilModalGUI.php.

{
$this->id = $a_val;
}
ilModalGUI::setType (   $a_val)

Set type.

Parameters
string$a_valtype const ilModalGUI::TYPE_SMALL|ilModalGUI::TYPE_MEDIUM|ilModalGUI::TYPE_LARGE

Definition at line 106 of file class.ilModalGUI.php.

{
$this->type = $a_val;
}

Field Documentation

ilModalGUI::$body = ""
protected

Definition at line 15 of file class.ilModalGUI.php.

Referenced by getBody().

ilModalGUI::$heading = ""
protected

Definition at line 14 of file class.ilModalGUI.php.

Referenced by getHeading().

ilModalGUI::$id = ""
protected

Definition at line 16 of file class.ilModalGUI.php.

Referenced by getId().

ilModalGUI::$type = self::TYPE_MEDIUM
protected

Definition at line 21 of file class.ilModalGUI.php.

Referenced by getType().

const ilModalGUI::TYPE_LARGE = "large"

Definition at line 17 of file class.ilModalGUI.php.

Referenced by ilObjMediaPoolGUI\getPreviewModalHTML().

const ilModalGUI::TYPE_MEDIUM = "medium"

Definition at line 18 of file class.ilModalGUI.php.

const ilModalGUI::TYPE_SMALL = "small"

Definition at line 19 of file class.ilModalGUI.php.


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