ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilLightboxGUI.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12
class
ilLightboxGUI
13
{
14
protected
$id
=
""
;
15
22
function
__construct
($a_id)
23
{
24
$this->
setId
($a_id);
25
}
26
32
function
setId
($a_val)
33
{
34
$this->
id
= $a_val;
35
}
36
42
function
getId
()
43
{
44
return
$this->id
;
45
}
46
52
function
setWidth
($a_val)
53
{
54
$this->width = $a_val;
55
}
56
62
function
getWidth
()
63
{
64
return
$this->width;
65
}
66
70
static
function
getLocalLightboxJsPath
()
71
{
72
return
"./Services/UIComponent/Lightbox/js/Lightbox.js"
;
73
}
74
78
public
function
addLightbox
($a_tpl = null)
79
{
80
global
$tpl
;
81
82
if
($a_tpl == null)
83
{
84
$a_tpl =
$tpl
;
85
}
86
87
$a_tpl->addJavaScript(self::getLocalLightboxJsPath());
88
$a_tpl->addLightbox($this->
getHTML
(), $this->
getId
());
89
}
90
97
function
getHTML
()
98
{
99
$tpl
=
new
ilTemplate
(
"tpl.lightbox.html"
,
true
,
true
,
"Services/UIComponent/Lightbox"
);
100
$tpl
->setVariable(
"LIGHTBOX_CONTENT"
,
""
);
101
$tpl
->setVariable(
"ID"
, $this->
getId
());
102
if
($this->
getWidth
() !=
""
)
103
{
104
$tpl
->setVariable(
"WIDTH"
,
"width: "
.$this->
getWidth
().
";"
);
105
}
106
return
$tpl
->get();
107
}
108
109
}
110
111
?>
Services
UIComponent
Lightbox
classes
class.ilLightboxGUI.php
Generated on Sat Apr 30 2016 19:01:17 for ILIAS by
1.8.1.2 (using
Doxyfile
)