38 $this->overlay_el_id = $a_overlay_el_id;
48 public function setAnchor($a_anchor_el_id, $a_ov_corner =
"tl", $a_anch_corner =
"bl")
50 $this->anchor_el_id = $a_anchor_el_id;
51 $this->anchor_ov_corner = $a_ov_corner;
52 $this->anchor_anch_corner = $a_anch_corner;
61 public function setSize($a_width =
"", $a_height =
"")
63 $this->width = $a_width;
64 $this->height = $a_height;
74 $this->fixed_center = $a_fixed_center;
84 $this->visible = $a_visible;
93 public function setTrigger($a_el_id, $a_event =
"click", $a_trigger_anchor_el_id = null)
95 $this->trigger_el_id = $a_el_id;
96 $this->trigger_event = $a_event;
97 $this->trigger_anchor_el_id = $a_trigger_anchor_el_id;
107 $this->auto_hide = $a_val;
127 $this->close_el = $a_val;
146 $yuicfg[
"visible"] = $this->visible ? true :
false;
148 if ($this->width !=
"") {
152 if ($this->height !=
"") {
155 $yuicfg[
"fixedcenter"] = $this->fixed_center ? true :
false;
156 if ($this->anchor_el_id !=
"") {
157 $yuicfg[
"context"] = array($this->anchor_el_id, $this->anchor_ov_corner,
158 $this->anchor_anch_corner, array(
"beforeShow",
"windowResize"));
161 $cfg[
"yuicfg"] = $yuicfg;
162 $cfg[
"trigger"] = $this->trigger_el_id;
163 $cfg[
"trigger_event"] = $this->trigger_event;
164 $cfg[
"anchor_id"] = $this->trigger_anchor_el_id;
168 include_once(
"./Services/JSON/classes/class.ilJsonUtil.php");
170 return 'il.Overlay.add("' . $this->overlay_el_id .
'", ' .
180 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
182 self::initJavascript();
198 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
200 $tpl->addJavascript(
"./Services/UIComponent/Overlay/js/ilOverlay.js");
216 $a_anch_corner =
"bl" 218 $center = ($a_center) ?
"true" :
"false";
219 return 'il.Overlay.addTrigger("' . $a_tr_id .
'","' . $a_tr_event .
'","' . $this->overlay_el_id .
'","' .
220 $a_anchor_el_id .
'", ' . $center .
',"' . $a_ov_corner .
'","' . $a_anch_corner .
'"); ';
232 $a_anch_corner =
"bl" 235 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
237 self::initJavascript();
setAutoHide($a_val)
Set auto hiding.
setFixedCenter($a_fixed_center=true)
Set fixed center.
getTriggerOnLoadCode( $a_tr_id, $a_tr_event, $a_anchor_el_id, $a_center=false, $a_ov_corner="tl", $a_anch_corner="bl")
Get trigger onload code.
setCloseElementId($a_val)
Set close element id.
add()
Makes an existing HTML element an overlay.
addTrigger( $a_tr_id, $a_tr_event, $a_anchor_el_id, $a_center=false, $a_ov_corner="tl", $a_anch_corner="bl")
Add trigger.
setTrigger($a_el_id, $a_event="click", $a_trigger_anchor_el_id=null)
Set trigger element.
static initOverlay(ilTemplate $a_main_tpl=null)
Init YUI Overlay module.
static encode($mixed, $suppress_native=false)
This is a utility class for the yui overlays.
catch(Exception $e) if(isset($_POST['cancel'])) if(isset($_POST['continue'])) $cfg
setAnchor($a_anchor_el_id, $a_ov_corner="tl", $a_anch_corner="bl")
Set anchor element.
getOnLoadCode()
Makes an existing HTML element an overlay.
setSize($a_width="", $a_height="")
Set size.
__construct($a_overlay_el_id)
Constructor.
setVisible($a_visible=true)
Set visible.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
getCloseElementId()
Get close element id.
getAutoHide()
Get auto_hide.
static initJavascript()
Init javascript.