|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This is a utility class for the yui overlays. More...
Inheritance diagram for ilOverlayGUI:
Collaboration diagram for ilOverlayGUI:Public Member Functions | |
| __construct ($a_overlay_el_id) | |
| Constructor. More... | |
| setAnchor ($a_anchor_el_id, $a_ov_corner="tl", $a_anch_corner="bl") | |
| Set anchor element. More... | |
| setSize ($a_width="", $a_height="") | |
| Set size. More... | |
| setFixedCenter ($a_fixed_center=true) | |
| Set fixed center. More... | |
| setVisible ($a_visible=true) | |
| Set visible. More... | |
| setTrigger ($a_el_id, $a_event="click", $a_trigger_anchor_el_id=null) | |
| Set trigger element. More... | |
| setAutoHide ($a_val) | |
| Set auto hiding. More... | |
| getAutoHide () | |
| Get auto_hide. More... | |
| setCloseElementId ($a_val) | |
| Set close element id. More... | |
| getCloseElementId () | |
| Get close element id. More... | |
| getOnLoadCode () | |
| Makes an existing HTML element an overlay. More... | |
| add () | |
| Makes an existing HTML element an overlay. More... | |
| 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. More... | |
| addTrigger ( $a_tr_id, $a_tr_event, $a_anchor_el_id, $a_center=false, $a_ov_corner="tl", $a_anch_corner="bl") | |
| Add trigger. More... | |
Static Public Member Functions | |
| static | initJavascript () |
| Init javascript. More... | |
Protected Attributes | |
| $tpl | |
| $width = "" | |
| $height = "" | |
| $fixed_center = false | |
| $visible = false | |
| $anchor_el_id = "" | |
| $anchor_ov_corner = "" | |
| $anchor_anch_corner = "" | |
| $auto_hide = false | |
| $close_el = null | |
This is a utility class for the yui overlays.
this only works, if a parent has class="yui-skin-sam" attached.
Definition at line 8 of file class.ilOverlayGUI.php.
| ilOverlayGUI::__construct | ( | $a_overlay_el_id | ) |
Constructor.
return
Definition at line 31 of file class.ilOverlayGUI.php.
| ilOverlayGUI::add | ( | ) |
Makes an existing HTML element an overlay.
Definition at line 177 of file class.ilOverlayGUI.php.
References $tpl, getOnLoadCode(), and initJavascript().
Referenced by ilAssLacLegendGUI\initOverlay().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOverlayGUI::addTrigger | ( | $a_tr_id, | |
| $a_tr_event, | |||
| $a_anchor_el_id, | |||
$a_center = false, |
|||
$a_ov_corner = "tl", |
|||
$a_anch_corner = "bl" |
|||
| ) |
Add trigger.
Definition at line 226 of file class.ilOverlayGUI.php.
References $tpl, getTriggerOnLoadCode(), and initJavascript().
Here is the call graph for this function:| ilOverlayGUI::getAutoHide | ( | ) |
Get auto_hide.
Definition at line 115 of file class.ilOverlayGUI.php.
References $auto_hide.
| ilOverlayGUI::getCloseElementId | ( | ) |
Get close element id.
Definition at line 135 of file class.ilOverlayGUI.php.
References $close_el.
| ilOverlayGUI::getOnLoadCode | ( | ) |
Makes an existing HTML element an overlay.
Definition at line 143 of file class.ilOverlayGUI.php.
References $auto_hide, $cfg, $close_el, $height, $width, and ilJsonUtil\encode().
Referenced by add().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOverlayGUI::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.
return
Definition at line 210 of file class.ilOverlayGUI.php.
Referenced by addTrigger().
Here is the caller graph for this function:
|
static |
Init javascript.
return
Definition at line 192 of file class.ilOverlayGUI.php.
References $DIC, $GLOBALS, $tpl, and ilYuiUtil\initOverlay().
Referenced by add(), addTrigger(), ilTestPlayerDynamicQuestionSetGUI\executeCommand(), ilSCORM2004ScoGUI\sco_preview(), ilPageObjectGUI\showPage(), ilSearchGUI\showSearch(), ilLuceneSearchGUI\showSearchForm(), and ilLuceneUserSearchGUI\showSearchForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilOverlayGUI::setAnchor | ( | $a_anchor_el_id, | |
$a_ov_corner = "tl", |
|||
$a_anch_corner = "bl" |
|||
| ) |
Set anchor element.
| string | anchor element id |
| string | overlay corner ("tl", "tr", "bl", "br") aligned to... |
| string | anchor corner ("tl", "tr", "bl", "br") |
Definition at line 48 of file class.ilOverlayGUI.php.
| ilOverlayGUI::setAutoHide | ( | $a_val | ) |
Set auto hiding.
| boolean | auto hide |
Definition at line 105 of file class.ilOverlayGUI.php.
Referenced by ilAssLacLegendGUI\initOverlay().
Here is the caller graph for this function:| ilOverlayGUI::setCloseElementId | ( | $a_val | ) |
Set close element id.
| string | close element id |
Definition at line 125 of file class.ilOverlayGUI.php.
| ilOverlayGUI::setFixedCenter | ( | $a_fixed_center = true | ) |
Set fixed center.
| boolean | fixed center |
Definition at line 72 of file class.ilOverlayGUI.php.
| ilOverlayGUI::setSize | ( | $a_width = "", |
|
$a_height = "" |
|||
| ) |
Set size.
| string | width, e.g. 300px |
| string | height, e.g. 300px |
Definition at line 61 of file class.ilOverlayGUI.php.
| ilOverlayGUI::setTrigger | ( | $a_el_id, | |
$a_event = "click", |
|||
$a_trigger_anchor_el_id = null |
|||
| ) |
Set trigger element.
| string | element id |
| string | event ("click" or "mouseover") |
Definition at line 93 of file class.ilOverlayGUI.php.
| ilOverlayGUI::setVisible | ( | $a_visible = true | ) |
Set visible.
| boolean | visible |
Definition at line 82 of file class.ilOverlayGUI.php.
Referenced by ilAssLacLegendGUI\initOverlay().
Here is the caller graph for this function:
|
protected |
Definition at line 21 of file class.ilOverlayGUI.php.
|
protected |
Definition at line 19 of file class.ilOverlayGUI.php.
|
protected |
Definition at line 20 of file class.ilOverlayGUI.php.
|
protected |
Definition at line 22 of file class.ilOverlayGUI.php.
Referenced by getAutoHide(), and getOnLoadCode().
|
protected |
Definition at line 23 of file class.ilOverlayGUI.php.
Referenced by getCloseElementId(), and getOnLoadCode().
|
protected |
Definition at line 17 of file class.ilOverlayGUI.php.
|
protected |
Definition at line 16 of file class.ilOverlayGUI.php.
Referenced by getOnLoadCode().
|
protected |
Definition at line 13 of file class.ilOverlayGUI.php.
Referenced by add(), addTrigger(), and initJavascript().
|
protected |
Definition at line 18 of file class.ilOverlayGUI.php.
|
protected |
Definition at line 15 of file class.ilOverlayGUI.php.
Referenced by getOnLoadCode().