ILIAS
Release_4_4_x_branch Revision 61816
|
User interface class for advanced drop-down selection lists. More...
Public Member Functions | |
__construct () | |
Constructor. | |
setLinksMode ($a_link_class="") | |
Set links mode (for no js fallback) | |
setFormSelectMode ($a_select_name, $a_select_class="", $a_include_form_tag=false, $a_form_action="", $a_form_id="", $a_form_class="", $a_form_target="_top", $a_button_text="", $a_button_class="", $a_button_cmd="") | |
Set form mode (for no js fallback) | |
addItem ($a_title, $a_value="", $a_link="", $a_img="", $a_alt="", $a_frame="", $a_html="", $a_prevent_background_click=false, $a_onclick="", $a_ttip="", $a_tt_my="right center", $a_tt_at="left center", $a_tt_use_htmlspecialchars=true) | |
Add an item. | |
flush () | |
getItems () | |
Get items. | |
setListTitle ($a_listtitle) | |
Set List Title. | |
getListTitle () | |
Get List Title. | |
setSelectionHeaderClass ($a_selectionheaderclass) | |
Set Selection Header Class. | |
getSelectionHeaderClass () | |
Get Selection Header Class. | |
setSelectionHeaderSpanClass ($a_val) | |
Set selection header span class. | |
getSelectionHeaderSpanClass () | |
Get selection header span class. | |
setHeaderIcon ($a_headericon) | |
Set Header Icon. | |
getHeaderIcon () | |
Get Header Icon. | |
setNoJSLinkClass ($a_nojslinkclass) | |
Set No Javascript Link Style Class. | |
getNoJSLinkClass () | |
Get No Javascript Link Style Class. | |
setItemLinkClass ($a_itemlinkclass) | |
Set Item Link Class. | |
getItemLinkClass () | |
Get Item Link Class. | |
setId ($a_id) | |
Set Id. | |
getId () | |
Get Id. | |
setUseImages ($a_useimages) | |
Set Use Images. | |
getUseImages () | |
Get Use Images. | |
setAccessKey ($a_val) | |
Set access key. | |
getAccessKey () | |
Get access key. | |
setTriggerEvent ($a_val) | |
Set trigger event. | |
getTriggerEvent () | |
Get trigger event. | |
setAutoHide ($a_val) | |
Set auto hide. | |
getAutoHide () | |
Get auto hide. | |
setOnClickMode ($a_val, $a_onclick_form_id="") | |
Set "onClick"- Mode. | |
getOnClickMode () | |
Get "onClick"-Mode. | |
setSelectedValue ($a_val) | |
Set selected value. | |
getSelectedValue () | |
Get selected value. | |
setAdditionalToggleElement ($a_el, $a_on) | |
Set additional toggle element. | |
getAdditionalToggleElement () | |
Get additional toggle element. | |
setAsynch ($a_val) | |
Set asynch mode (this is set to true, if list should get items asynchronously) | |
getAsynch () | |
Get asynch mode. | |
setAsynchUrl ($a_val) | |
Set asynch url. | |
getAsynchUrl () | |
Get asynch url. | |
setSelectCallback ($a_val) | |
Set select callback. | |
getSelectCallback () | |
Get select callback. | |
getHTML ($a_only_cmd_list_asynch=false) | |
Get selection list HTML. |
Data Fields | |
const | DOWN_ARROW_LIGHT = "mm_down_arrow.png" |
const | DOWN_ARROW_DARK = "mm_down_arrow_dark.png" |
const | DOWN_ARROW_TOPBAR = "mm_down_arrow_topbar.png" |
const | NO_ICON = "" |
const | MODE_LINKS = "links" |
const | MODE_FORM_SELECT = "select" |
const | ON_ITEM_CLICK_HREF = "href" |
const | ON_ITEM_CLICK_FORM_SUBMIT = "submit" |
const | ON_ITEM_CLICK_FORM_SELECT = "select" |
const | ON_ITEM_CLICK_NOP = "nop" |
Protected Attributes | |
$css_row = "" | |
$access_key = false | |
$toggle = false | |
$asynch_url = false | |
$selected_value = "" | |
$trigger_event = "click" | |
$auto_hide = false |
Private Attributes | |
$items = array() | |
$id = "asl" | |
$asynch = false |
User interface class for advanced drop-down selection lists.
Definition at line 11 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::__construct | ( | ) |
Constructor.
Definition at line 62 of file class.ilAdvancedSelectionListGUI.php.
References DOWN_ARROW_DARK, MODE_LINKS, ON_ITEM_CLICK_HREF, setHeaderIcon(), and setOnClickMode().
ilAdvancedSelectionListGUI::addItem | ( | $a_title, | |
$a_value = "" , |
|||
$a_link = "" , |
|||
$a_img = "" , |
|||
$a_alt = "" , |
|||
$a_frame = "" , |
|||
$a_html = "" , |
|||
$a_prevent_background_click = false , |
|||
$a_onclick = "" , |
|||
$a_ttip = "" , |
|||
$a_tt_my = "right center" , |
|||
$a_tt_at = "left center" , |
|||
$a_tt_use_htmlspecialchars = true |
|||
) |
Add an item.
string | item title |
string | value (used for select input) |
link | href for the item |
string | image href attribute |
string | image alt attribute |
string | frame target |
string | item html (is used instead of title if js is active) |
Definition at line 115 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::flush | ( | ) |
Definition at line 126 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getAccessKey | ( | ) |
Get access key.
Definition at line 316 of file class.ilAdvancedSelectionListGUI.php.
References $access_key.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAdditionalToggleElement | ( | ) |
Get additional toggle element.
Definition at line 415 of file class.ilAdvancedSelectionListGUI.php.
References $toggle.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAsynch | ( | ) |
Get asynch mode.
Definition at line 440 of file class.ilAdvancedSelectionListGUI.php.
References $asynch.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAsynchUrl | ( | ) |
Get asynch url.
Definition at line 460 of file class.ilAdvancedSelectionListGUI.php.
References $asynch_url.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAutoHide | ( | ) |
Get auto hide.
Definition at line 348 of file class.ilAdvancedSelectionListGUI.php.
References $auto_hide.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getHeaderIcon | ( | ) |
Get Header Icon.
Definition at line 216 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getHTML | ( | $a_only_cmd_list_asynch = false | ) |
Get selection list HTML.
Definition at line 484 of file class.ilAdvancedSelectionListGUI.php.
References $GLOBALS, $items, $toggle, $tpl, ilTooltipGUI\addTooltip(), DOWN_ARROW_DARK, DOWN_ARROW_LIGHT, DOWN_ARROW_TOPBAR, ilJsonUtil\encode(), getAccessKey(), getAdditionalToggleElement(), getAsynch(), getAsynchUrl(), ilAccessKeyGUI\getAttribute(), getAutoHide(), getHeaderIcon(), getId(), ilUtil\getImagePath(), getItemLinkClass(), getItems(), getListTitle(), getOnClickMode(), getSelectCallback(), getSelectedValue(), getSelectionHeaderClass(), getSelectionHeaderSpanClass(), getTriggerEvent(), getUseImages(), ilYuiUtil\initOverlay(), MODE_FORM_SELECT, MODE_LINKS, NO_ICON, ON_ITEM_CLICK_FORM_SELECT, ON_ITEM_CLICK_FORM_SUBMIT, ON_ITEM_CLICK_HREF, and ON_ITEM_CLICK_NOP.
ilAdvancedSelectionListGUI::getId | ( | ) |
Get Id.
Definition at line 276 of file class.ilAdvancedSelectionListGUI.php.
References $id.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getItemLinkClass | ( | ) |
Get Item Link Class.
Definition at line 256 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getItems | ( | ) |
Get items.
Definition at line 136 of file class.ilAdvancedSelectionListGUI.php.
References $items.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getListTitle | ( | ) |
Get List Title.
Definition at line 156 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getNoJSLinkClass | ( | ) |
Get No Javascript Link Style Class.
Definition at line 236 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getOnClickMode | ( | ) |
Get "onClick"-Mode.
Definition at line 374 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectCallback | ( | ) |
Get select callback.
Definition at line 476 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectedValue | ( | ) |
Get selected value.
Definition at line 394 of file class.ilAdvancedSelectionListGUI.php.
References $selected_value.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectionHeaderClass | ( | ) |
Get Selection Header Class.
Definition at line 176 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectionHeaderSpanClass | ( | ) |
Get selection header span class.
Definition at line 196 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getTriggerEvent | ( | ) |
Get trigger event.
Definition at line 332 of file class.ilAdvancedSelectionListGUI.php.
References $trigger_event.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getUseImages | ( | ) |
Get Use Images.
Definition at line 296 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::setAccessKey | ( | $a_val | ) |
Set access key.
integer | access function id |
Definition at line 306 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setAdditionalToggleElement | ( | $a_el, | |
$a_on | |||
) |
Set additional toggle element.
string | element id |
string | class for "on" |
Definition at line 405 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setAsynch | ( | $a_val | ) |
Set asynch mode (this is set to true, if list should get items asynchronously)
boolean | turn asynch mode on/off |
Definition at line 425 of file class.ilAdvancedSelectionListGUI.php.
References ilYuiUtil\initConnection().
ilAdvancedSelectionListGUI::setAsynchUrl | ( | $a_val | ) |
Set asynch url.
string | asynch url |
Definition at line 450 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setAutoHide | ( | $a_val | ) |
Set auto hide.
Definition at line 340 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setFormSelectMode | ( | $a_select_name, | |
$a_select_class = "" , |
|||
$a_include_form_tag = false , |
|||
$a_form_action = "" , |
|||
$a_form_id = "" , |
|||
$a_form_class = "" , |
|||
$a_form_target = "_top" , |
|||
$a_button_text = "" , |
|||
$a_button_class = "" , |
|||
$a_button_cmd = "" |
|||
) |
Set form mode (for no js fallback)
Outputs form selection including sourrounding form
Definition at line 84 of file class.ilAdvancedSelectionListGUI.php.
References MODE_FORM_SELECT.
ilAdvancedSelectionListGUI::setHeaderIcon | ( | $a_headericon | ) |
Set Header Icon.
string | $a_headericon | Header Icon |
Definition at line 206 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
ilAdvancedSelectionListGUI::setId | ( | $a_id | ) |
Set Id.
string | $a_id | Id |
Definition at line 266 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setItemLinkClass | ( | $a_itemlinkclass | ) |
Set Item Link Class.
string | $a_itemlinkclass | Item Link Class |
Definition at line 246 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setLinksMode | ( | $a_link_class = "" | ) |
Set links mode (for no js fallback)
Definition at line 72 of file class.ilAdvancedSelectionListGUI.php.
References MODE_LINKS.
ilAdvancedSelectionListGUI::setListTitle | ( | $a_listtitle | ) |
Set List Title.
string | $a_listtitle | List Title |
Definition at line 146 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setNoJSLinkClass | ( | $a_nojslinkclass | ) |
Set No Javascript Link Style Class.
string | $a_nojslinkclass | No Javascript Link Style Class |
Definition at line 226 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setOnClickMode | ( | $a_val, | |
$a_onclick_form_id = "" |
|||
) |
Set "onClick"- Mode.
Valid values are: ilAdvancedSelectionList::ON_ITEM_CLICK_HREF or ilAdvancedSelectionList::ON_ITEM_CLICK_FORM_SUBMIT ilAdvancedSelectionList::ON_ITEM_CLICK_FORM_SELECT
string | mode |
Definition at line 363 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
ilAdvancedSelectionListGUI::setSelectCallback | ( | $a_val | ) |
Set select callback.
Definition at line 468 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectedValue | ( | $a_val | ) |
Set selected value.
string | selected value |
Definition at line 384 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectionHeaderClass | ( | $a_selectionheaderclass | ) |
Set Selection Header Class.
string | $a_selectionheaderclass | Selection Header Class |
Definition at line 166 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectionHeaderSpanClass | ( | $a_val | ) |
Set selection header span class.
string | $a_val | header span class |
Definition at line 186 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setTriggerEvent | ( | $a_val | ) |
Set trigger event.
Definition at line 324 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setUseImages | ( | $a_useimages | ) |
Set Use Images.
boolean | $a_useimages | Use Images |
Definition at line 286 of file class.ilAdvancedSelectionListGUI.php.
|
protected |
Definition at line 31 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAccessKey().
|
private |
Definition at line 15 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAsynch().
|
protected |
Definition at line 33 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAsynchUrl().
|
protected |
Definition at line 36 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAutoHide().
|
protected |
Definition at line 30 of file class.ilAdvancedSelectionListGUI.php.
|
private |
Definition at line 14 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getId().
|
private |
Definition at line 13 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), and getItems().
|
protected |
Definition at line 34 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getSelectedValue().
|
protected |
Definition at line 32 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAdditionalToggleElement(), and getHTML().
|
protected |
Definition at line 35 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getTriggerEvent().
const ilAdvancedSelectionListGUI::DOWN_ARROW_DARK = "mm_down_arrow_dark.png" |
Definition at line 18 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct(), ilPCParagraphGUI\getCharStyleSelector(), getHTML(), ilPersonalSkillsGUI\getSkillHTML(), ilPCParagraphGUI\getStyleSelector(), ilAdvSelectInputGUI\insert(), and ilObjectListGUI\insertCommands().
const ilAdvancedSelectionListGUI::DOWN_ARROW_LIGHT = "mm_down_arrow.png" |
Definition at line 17 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), and ilMainMenuGUI\renderDropDown().
const ilAdvancedSelectionListGUI::DOWN_ARROW_TOPBAR = "mm_down_arrow_topbar.png" |
Definition at line 19 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), and ilMainMenuGUI\getLanguageSelection().
const ilAdvancedSelectionListGUI::MODE_FORM_SELECT = "select" |
Definition at line 23 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), and setFormSelectMode().
const ilAdvancedSelectionListGUI::MODE_LINKS = "links" |
Definition at line 22 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct(), getHTML(), and setLinksMode().
const ilAdvancedSelectionListGUI::NO_ICON = "" |
Definition at line 20 of file class.ilAdvancedSelectionListGUI.php.
Referenced by ilNavigationHistoryGUI\getHTML(), and getHTML().
const ilAdvancedSelectionListGUI::ON_ITEM_CLICK_FORM_SELECT = "select" |
Definition at line 27 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), ilPCParagraphGUI\getStyleSelector(), and ilAdvSelectInputGUI\insert().
const ilAdvancedSelectionListGUI::ON_ITEM_CLICK_FORM_SUBMIT = "submit" |
Definition at line 26 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
const ilAdvancedSelectionListGUI::ON_ITEM_CLICK_HREF = "href" |
Definition at line 25 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct(), and getHTML().
const ilAdvancedSelectionListGUI::ON_ITEM_CLICK_NOP = "nop" |
Definition at line 28 of file class.ilAdvancedSelectionListGUI.php.
Referenced by ilPCParagraphGUI\getCharStyleSelector(), and getHTML().