|
ILIAS
eassessment Revision 61809
|
User interface class for advanced drop-down selection lists. More...
Collaboration diagram for ilAdvancedSelectionListGUI: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) | |
| Add an item. | |
| 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. | |
| 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. | |
| 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. | |
| 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 | 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" |
Protected Attributes | |
| $css_row = "" | |
| $access_key = false | |
| $toggle = false | |
| $asynch_url = false | |
| $selected_value = "" | |
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 58 of file class.ilAdvancedSelectionListGUI.php.
References DOWN_ARROW_DARK, MODE_LINKS, ON_ITEM_CLICK_HREF, setHeaderIcon(), and setOnClickMode().
Here is the call graph for this function:| ilAdvancedSelectionListGUI::addItem | ( | $a_title, | |
$a_value = "", |
|||
$a_link = "", |
|||
$a_img = "", |
|||
$a_alt = "", |
|||
$a_frame = "", |
|||
$a_html = "", |
|||
$a_prevent_background_click = false |
|||
| ) |
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 111 of file class.ilAdvancedSelectionListGUI.php.
| ilAdvancedSelectionListGUI::getAccessKey | ( | ) |
Get access key.
Definition at line 284 of file class.ilAdvancedSelectionListGUI.php.
References $access_key.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getAdditionalToggleElement | ( | ) |
Get additional toggle element.
Definition at line 351 of file class.ilAdvancedSelectionListGUI.php.
References $toggle.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getAsynch | ( | ) |
Get asynch mode.
Definition at line 376 of file class.ilAdvancedSelectionListGUI.php.
References $asynch.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getAsynchUrl | ( | ) |
Get asynch url.
Definition at line 396 of file class.ilAdvancedSelectionListGUI.php.
References $asynch_url.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getHeaderIcon | ( | ) |
Get Header Icon.
Definition at line 184 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getHTML | ( | $a_only_cmd_list_asynch = false | ) |
Get selection list HTML.
Definition at line 404 of file class.ilAdvancedSelectionListGUI.php.
References $GLOBALS, $items, $toggle, $tpl, DOWN_ARROW_DARK, DOWN_ARROW_LIGHT, ilJsonUtil\encode(), getAccessKey(), getAdditionalToggleElement(), getAsynch(), getAsynchUrl(), ilAccessKeyGUI\getAttribute(), getHeaderIcon(), getId(), ilUtil\getImagePath(), getItemLinkClass(), getItems(), getListTitle(), getOnClickMode(), getSelectedValue(), getSelectionHeaderClass(), getUseImages(), ilYuiUtil\initOverlay(), MODE_FORM_SELECT, MODE_LINKS, NO_ICON, ON_ITEM_CLICK_FORM_SELECT, ON_ITEM_CLICK_FORM_SUBMIT, and ON_ITEM_CLICK_HREF.
Here is the call graph for this function:| ilAdvancedSelectionListGUI::getId | ( | ) |
Get Id.
Definition at line 244 of file class.ilAdvancedSelectionListGUI.php.
References $id.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getItemLinkClass | ( | ) |
Get Item Link Class.
Definition at line 224 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getItems | ( | ) |
Get items.
Definition at line 124 of file class.ilAdvancedSelectionListGUI.php.
References $items.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getListTitle | ( | ) |
Get List Title.
Definition at line 144 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getNoJSLinkClass | ( | ) |
Get No Javascript Link Style Class.
Definition at line 204 of file class.ilAdvancedSelectionListGUI.php.
| ilAdvancedSelectionListGUI::getOnClickMode | ( | ) |
Get "onClick"-Mode.
Definition at line 310 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getSelectedValue | ( | ) |
Get selected value.
Definition at line 330 of file class.ilAdvancedSelectionListGUI.php.
References $selected_value.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getSelectionHeaderClass | ( | ) |
Get Selection Header Class.
Definition at line 164 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::getUseImages | ( | ) |
Get Use Images.
Definition at line 264 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::setAccessKey | ( | $a_val | ) |
Set access key.
| integer | access function id |
Definition at line 274 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 341 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 361 of file class.ilAdvancedSelectionListGUI.php.
References ilYuiUtil\initConnection().
Here is the call graph for this function:| ilAdvancedSelectionListGUI::setAsynchUrl | ( | $a_val | ) |
Set asynch url.
| string | asynch url |
Definition at line 386 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 80 of file class.ilAdvancedSelectionListGUI.php.
References MODE_FORM_SELECT.
| ilAdvancedSelectionListGUI::setHeaderIcon | ( | $a_headericon | ) |
Set Header Icon.
| string | $a_headericon | Header Icon |
Definition at line 174 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::setId | ( | $a_id | ) |
Set Id.
| string | $a_id | Id |
Definition at line 234 of file class.ilAdvancedSelectionListGUI.php.
| ilAdvancedSelectionListGUI::setItemLinkClass | ( | $a_itemlinkclass | ) |
Set Item Link Class.
| string | $a_itemlinkclass | Item Link Class |
Definition at line 214 of file class.ilAdvancedSelectionListGUI.php.
| ilAdvancedSelectionListGUI::setLinksMode | ( | $a_link_class = "" | ) |
Set links mode (for no js fallback)
Definition at line 68 of file class.ilAdvancedSelectionListGUI.php.
References MODE_LINKS.
| ilAdvancedSelectionListGUI::setListTitle | ( | $a_listtitle | ) |
Set List Title.
| string | $a_listtitle | List Title |
Definition at line 134 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 194 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 299 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilAdvancedSelectionListGUI::setSelectedValue | ( | $a_val | ) |
Set selected value.
| string | selected value |
Definition at line 320 of file class.ilAdvancedSelectionListGUI.php.
| ilAdvancedSelectionListGUI::setSelectionHeaderClass | ( | $a_selectionheaderclass | ) |
Set Selection Header Class.
| string | $a_selectionheaderclass | Selection Header Class |
Definition at line 154 of file class.ilAdvancedSelectionListGUI.php.
| ilAdvancedSelectionListGUI::setUseImages | ( | $a_useimages | ) |
Set Use Images.
| boolean | $a_useimages | Use Images |
Definition at line 254 of file class.ilAdvancedSelectionListGUI.php.
|
protected |
Definition at line 29 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 31 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAsynchUrl().
|
protected |
Definition at line 28 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 32 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getSelectedValue().
|
protected |
Definition at line 30 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAdditionalToggleElement(), and getHTML().
| const ilAdvancedSelectionListGUI::DOWN_ARROW_DARK = "mm_down_arrow_dark.gif" |
Definition at line 18 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct(), getHTML(), ilAdvSelectInputGUI\insert(), ilObjectListGUI\insertCommands(), ilObjectListGUI\insertPaymentCommand(), and ilPCParagraphGUI\insertStyleSelectionList().
| const ilAdvancedSelectionListGUI::DOWN_ARROW_LIGHT = "mm_down_arrow.gif" |
Definition at line 17 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
| const ilAdvancedSelectionListGUI::MODE_FORM_SELECT = "select" |
Definition at line 22 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), and setFormSelectMode().
| const ilAdvancedSelectionListGUI::MODE_LINKS = "links" |
Definition at line 21 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct(), getHTML(), and setLinksMode().
| const ilAdvancedSelectionListGUI::NO_ICON = "" |
Definition at line 19 of file class.ilAdvancedSelectionListGUI.php.
Referenced by ilNavigationHistoryGUI\getHTML(), and getHTML().
| const ilAdvancedSelectionListGUI::ON_ITEM_CLICK_FORM_SELECT = "select" |
Definition at line 26 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML(), ilAdvSelectInputGUI\insert(), and ilPCParagraphGUI\insertStyleSelectionList().
| const ilAdvancedSelectionListGUI::ON_ITEM_CLICK_FORM_SUBMIT = "submit" |
Definition at line 25 of file class.ilAdvancedSelectionListGUI.php.
Referenced by ilTemplate\fillAdminPanel(), and getHTML().
| const ilAdvancedSelectionListGUI::ON_ITEM_CLICK_HREF = "href" |
Definition at line 24 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct(), and getHTML().