ILIAS
Release_4_2_x_branch Revision 61807
|
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="") | |
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.gif" |
const | DOWN_ARROW_DARK = "mm_down_arrow_dark.gif" |
const | DOWN_ARROW_TOPBAR = "mm_down_arrow_topbar.gif" |
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 = "" |
|||
) |
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 124 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getAccessKey | ( | ) |
Get access key.
Definition at line 314 of file class.ilAdvancedSelectionListGUI.php.
References $access_key.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAdditionalToggleElement | ( | ) |
Get additional toggle element.
Definition at line 413 of file class.ilAdvancedSelectionListGUI.php.
References $toggle.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAsynch | ( | ) |
Get asynch mode.
Definition at line 438 of file class.ilAdvancedSelectionListGUI.php.
References $asynch.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAsynchUrl | ( | ) |
Get asynch url.
Definition at line 458 of file class.ilAdvancedSelectionListGUI.php.
References $asynch_url.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAutoHide | ( | ) |
Get auto hide.
Definition at line 346 of file class.ilAdvancedSelectionListGUI.php.
References $auto_hide.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getHeaderIcon | ( | ) |
Get Header Icon.
Definition at line 214 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getHTML | ( | $a_only_cmd_list_asynch = false | ) |
Get selection list HTML.
Definition at line 482 of file class.ilAdvancedSelectionListGUI.php.
References $GLOBALS, $items, $toggle, $tpl, 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 274 of file class.ilAdvancedSelectionListGUI.php.
References $id.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getItemLinkClass | ( | ) |
Get Item Link Class.
Definition at line 254 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getItems | ( | ) |
Get items.
Definition at line 134 of file class.ilAdvancedSelectionListGUI.php.
References $items.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getListTitle | ( | ) |
Get List Title.
Definition at line 154 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getNoJSLinkClass | ( | ) |
Get No Javascript Link Style Class.
Definition at line 234 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getOnClickMode | ( | ) |
Get "onClick"-Mode.
Definition at line 372 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectCallback | ( | ) |
Get select callback.
Definition at line 474 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectedValue | ( | ) |
Get selected value.
Definition at line 392 of file class.ilAdvancedSelectionListGUI.php.
References $selected_value.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectionHeaderClass | ( | ) |
Get Selection Header Class.
Definition at line 174 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectionHeaderSpanClass | ( | ) |
Get selection header span class.
Definition at line 194 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getTriggerEvent | ( | ) |
Get trigger event.
Definition at line 330 of file class.ilAdvancedSelectionListGUI.php.
References $trigger_event.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getUseImages | ( | ) |
Get Use Images.
Definition at line 294 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::setAccessKey | ( | $a_val | ) |
Set access key.
integer | access function id |
Definition at line 304 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 403 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 423 of file class.ilAdvancedSelectionListGUI.php.
References ilYuiUtil\initConnection().
ilAdvancedSelectionListGUI::setAsynchUrl | ( | $a_val | ) |
Set asynch url.
string | asynch url |
Definition at line 448 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setAutoHide | ( | $a_val | ) |
Set auto hide.
Definition at line 338 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 204 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
ilAdvancedSelectionListGUI::setId | ( | $a_id | ) |
Set Id.
string | $a_id | Id |
Definition at line 264 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setItemLinkClass | ( | $a_itemlinkclass | ) |
Set Item Link Class.
string | $a_itemlinkclass | Item Link Class |
Definition at line 244 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 144 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 224 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 361 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
ilAdvancedSelectionListGUI::setSelectCallback | ( | $a_val | ) |
Set select callback.
Definition at line 466 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectedValue | ( | $a_val | ) |
Set selected value.
string | selected value |
Definition at line 382 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectionHeaderClass | ( | $a_selectionheaderclass | ) |
Set Selection Header Class.
string | $a_selectionheaderclass | Selection Header Class |
Definition at line 164 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectionHeaderSpanClass | ( | $a_val | ) |
Set selection header span class.
string | $a_val | header span class |
Definition at line 184 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setTriggerEvent | ( | $a_val | ) |
Set trigger event.
Definition at line 322 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setUseImages | ( | $a_useimages | ) |
Set Use Images.
boolean | $a_useimages | Use Images |
Definition at line 284 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.gif" |
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.gif" |
Definition at line 17 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), and ilMainMenuGUI\renderDropDown().
const ilAdvancedSelectionListGUI::DOWN_ARROW_TOPBAR = "mm_down_arrow_topbar.gif" |
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 ilTemplate\fillAdminPanel(), and 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().