ILIAS
Release_5_0_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. | |
setGroupedList ($a_val) | |
Set Grouped List. | |
getGroupedList () | |
Get Grouped List. | |
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. | |
setStyle ($a_val) | |
Set style. | |
getStyle () | |
Get style. | |
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. | |
setPullRight ($a_val) | |
Set pull right. | |
getPullRight () | |
Get pull right. | |
getHTML ($a_only_cmd_list_asynch=false) | |
Get selection list HTML. |
Data Fields | |
const | DOWN_ARROW_DARK = "down_arrow_dark" |
const | ICON_ARROW = "caret" |
const | ICON_CONFIG = "glyphicon glyphicon-cog" |
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" |
const | STYLE_DEFAULT = 0 |
const | STYLE_LINK = 1 |
const | STYLE_EMPH = 2 |
const | STYLE_LINK_BUTTON = 3 |
Protected Attributes | |
$css_row = "" | |
$access_key = false | |
$toggle = false | |
$asynch_url = false | |
$selected_value = "" | |
$trigger_event = "click" | |
$auto_hide = false | |
$grouped_list = null | |
$style = 0 |
Private Attributes | |
$items = array() | |
$id = "asl" | |
$asynch = false | |
$dd_pullright = true |
User interface class for advanced drop-down selection lists.
Definition at line 11 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::__construct | ( | ) |
Constructor.
Definition at line 70 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 123 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::flush | ( | ) |
Definition at line 154 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getAccessKey | ( | ) |
Get access key.
Definition at line 368 of file class.ilAdvancedSelectionListGUI.php.
References $access_key.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAdditionalToggleElement | ( | ) |
Get additional toggle element.
Definition at line 467 of file class.ilAdvancedSelectionListGUI.php.
References $toggle.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAsynch | ( | ) |
Get asynch mode.
Definition at line 492 of file class.ilAdvancedSelectionListGUI.php.
References $asynch.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAsynchUrl | ( | ) |
Get asynch url.
Definition at line 512 of file class.ilAdvancedSelectionListGUI.php.
References $asynch_url.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAutoHide | ( | ) |
Get auto hide.
Definition at line 400 of file class.ilAdvancedSelectionListGUI.php.
References $auto_hide.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getGroupedList | ( | ) |
Get Grouped List.
Definition at line 149 of file class.ilAdvancedSelectionListGUI.php.
References $grouped_list.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getHeaderIcon | ( | ) |
Get Header Icon.
Definition at line 268 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getHTML | ( | $a_only_cmd_list_asynch = false | ) |
Get selection list HTML.
Definition at line 556 of file class.ilAdvancedSelectionListGUI.php.
References $GLOBALS, $items, $toggle, $tpl, ilTooltipGUI\addTooltip(), DOWN_ARROW_DARK, ilJsonUtil\encode(), getAccessKey(), getAdditionalToggleElement(), getAsynch(), getAsynchUrl(), ilAccessKeyGUI\getAttribute(), getAutoHide(), getGroupedList(), getHeaderIcon(), getId(), ilUtil\getImagePath(), getItemLinkClass(), getItems(), getListTitle(), getOnClickMode(), getPullRight(), getSelectCallback(), getSelectedValue(), getSelectionHeaderSpanClass(), getStyle(), getTriggerEvent(), getUseImages(), ICON_ARROW, ICON_CONFIG, 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 328 of file class.ilAdvancedSelectionListGUI.php.
References $id.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getItemLinkClass | ( | ) |
Get Item Link Class.
Definition at line 308 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getItems | ( | ) |
Get items.
Definition at line 164 of file class.ilAdvancedSelectionListGUI.php.
References $items.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getListTitle | ( | ) |
Get List Title.
Definition at line 184 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getNoJSLinkClass | ( | ) |
Get No Javascript Link Style Class.
Definition at line 288 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getOnClickMode | ( | ) |
Get "onClick"-Mode.
Definition at line 426 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getPullRight | ( | ) |
Get pull right.
Definition at line 548 of file class.ilAdvancedSelectionListGUI.php.
References $dd_pullright.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectCallback | ( | ) |
Get select callback.
Definition at line 528 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectedValue | ( | ) |
Get selected value.
Definition at line 446 of file class.ilAdvancedSelectionListGUI.php.
References $selected_value.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectionHeaderClass | ( | ) |
Get Selection Header Class.
Definition at line 206 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getSelectionHeaderSpanClass | ( | ) |
Get selection header span class.
Definition at line 248 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getStyle | ( | ) |
Get style.
Definition at line 226 of file class.ilAdvancedSelectionListGUI.php.
References $style.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getTriggerEvent | ( | ) |
Get trigger event.
Definition at line 384 of file class.ilAdvancedSelectionListGUI.php.
References $trigger_event.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getUseImages | ( | ) |
Get Use Images.
Definition at line 348 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::setAccessKey | ( | $a_val | ) |
Set access key.
integer | access function id |
Definition at line 358 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 457 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 477 of file class.ilAdvancedSelectionListGUI.php.
References ilYuiUtil\initConnection().
ilAdvancedSelectionListGUI::setAsynchUrl | ( | $a_val | ) |
Set asynch url.
string | asynch url |
Definition at line 502 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setAutoHide | ( | $a_val | ) |
Set auto hide.
Definition at line 392 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 92 of file class.ilAdvancedSelectionListGUI.php.
References MODE_FORM_SELECT.
ilAdvancedSelectionListGUI::setGroupedList | ( | $a_val | ) |
Set Grouped List.
ilGroupedListGUI | $a_val | grouped list object |
Definition at line 139 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setHeaderIcon | ( | $a_headericon | ) |
Set Header Icon.
string | $a_headericon | Header Icon |
Definition at line 258 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
ilAdvancedSelectionListGUI::setId | ( | $a_id | ) |
Set Id.
string | $a_id | Id |
Definition at line 318 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setItemLinkClass | ( | $a_itemlinkclass | ) |
Set Item Link Class.
string | $a_itemlinkclass | Item Link Class |
Definition at line 298 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setLinksMode | ( | $a_link_class = "" | ) |
Set links mode (for no js fallback)
Definition at line 80 of file class.ilAdvancedSelectionListGUI.php.
References MODE_LINKS.
ilAdvancedSelectionListGUI::setListTitle | ( | $a_listtitle | ) |
Set List Title.
string | $a_listtitle | List Title |
Definition at line 174 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 278 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 415 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
ilAdvancedSelectionListGUI::setPullRight | ( | $a_val | ) |
Set pull right.
bool | $a_val | pull right |
Definition at line 538 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectCallback | ( | $a_val | ) |
Set select callback.
Definition at line 520 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectedValue | ( | $a_val | ) |
Set selected value.
string | selected value |
Definition at line 436 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectionHeaderClass | ( | $a_selectionheaderclass | ) |
Set Selection Header Class.
DEPRECATED use set style instead
string | $a_selectionheaderclass | Selection Header Class |
Definition at line 196 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectionHeaderSpanClass | ( | $a_val | ) |
Set selection header span class.
string | $a_val | header span class |
Definition at line 238 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setStyle | ( | $a_val | ) |
Set style.
int | $a_val | button style STYLE_DEFAULT, STYLE_LINK, STYLE_EMPH |
Definition at line 216 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setTriggerEvent | ( | $a_val | ) |
Set trigger event.
Definition at line 376 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setUseImages | ( | $a_useimages | ) |
Set Use Images.
boolean | $a_useimages | Use Images |
Definition at line 338 of file class.ilAdvancedSelectionListGUI.php.
|
protected |
Definition at line 36 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 38 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAsynchUrl().
|
protected |
Definition at line 41 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAutoHide().
|
protected |
Definition at line 35 of file class.ilAdvancedSelectionListGUI.php.
|
private |
Definition at line 44 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getPullRight().
|
protected |
Definition at line 42 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getGroupedList().
|
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 39 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getSelectedValue().
|
protected |
Definition at line 43 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getStyle().
|
protected |
Definition at line 37 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAdditionalToggleElement(), and getHTML().
|
protected |
Definition at line 40 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getTriggerEvent().
const ilAdvancedSelectionListGUI::DOWN_ARROW_DARK = "down_arrow_dark" |
Definition at line 17 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct(), ilPCParagraphGUI\getCharStyleSelector(), getHTML(), ilPersonalSkillsGUI\getSkillHTML(), ilPCParagraphGUI\getStyleSelector(), ilAdvSelectInputGUI\insert(), and ilObjectListGUI\insertCommands().
const ilAdvancedSelectionListGUI::ICON_ARROW = "caret" |
Definition at line 18 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), and ilMainMenuGUI\renderDropDown().
const ilAdvancedSelectionListGUI::ICON_CONFIG = "glyphicon glyphicon-cog" |
Definition at line 19 of file class.ilAdvancedSelectionListGUI.php.
Referenced by ilBlockGUI\fillHeaderCommands(), and getHTML().
const ilAdvancedSelectionListGUI::MODE_FORM_SELECT = "select" |
Definition at line 23 of file class.ilAdvancedSelectionListGUI.php.
Referenced by setFormSelectMode().
const ilAdvancedSelectionListGUI::MODE_LINKS = "links" |
Definition at line 22 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct(), 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().
const ilAdvancedSelectionListGUI::STYLE_DEFAULT = 0 |
Definition at line 30 of file class.ilAdvancedSelectionListGUI.php.
const ilAdvancedSelectionListGUI::STYLE_EMPH = 2 |
Definition at line 32 of file class.ilAdvancedSelectionListGUI.php.
Referenced by ilCloudPluginInitGUI\addToolbar(), and ilObjectAddNewItemGUI\render().
const ilAdvancedSelectionListGUI::STYLE_LINK = 1 |
Definition at line 31 of file class.ilAdvancedSelectionListGUI.php.
Referenced by ilWikiFunctionsBlockGUI\fillDataSection().
const ilAdvancedSelectionListGUI::STYLE_LINK_BUTTON = 3 |
Definition at line 33 of file class.ilAdvancedSelectionListGUI.php.
Referenced by ilTable2GUI\fillFooter(), and ilBlockGUI\fillHeaderCommands().