ILIAS
Release_4_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="") | |
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" |
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 52 of file class.ilAdvancedSelectionListGUI.php.
References DOWN_ARROW_DARK, ilYuiUtil\initDomEvent(), 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 = "" |
|||
) |
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 107 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getAccessKey | ( | ) |
Get access key.
Definition at line 280 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAdditionalToggleElement | ( | ) |
Get additional toggle element.
Definition at line 347 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAsynch | ( | ) |
Get asynch mode.
Definition at line 372 of file class.ilAdvancedSelectionListGUI.php.
References $asynch.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getAsynchUrl | ( | ) |
Get asynch url.
Definition at line 392 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getHeaderIcon | ( | ) |
Get Header Icon.
Definition at line 180 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getHTML | ( | $a_only_cmd_list_asynch = false | ) |
Get selection list HTML.
Definition at line 400 of file class.ilAdvancedSelectionListGUI.php.
References $GLOBALS, $items, $tpl, DOWN_ARROW_DARK, DOWN_ARROW_LIGHT, getAccessKey(), getAdditionalToggleElement(), getAsynch(), ilAccessKeyGUI\getAttribute(), getHeaderIcon(), getId(), ilUtil\getImagePath(), getItemLinkClass(), getItems(), getListTitle(), getOnClickMode(), getSelectedValue(), getSelectionHeaderClass(), getUseImages(), MODE_FORM_SELECT, MODE_LINKS, NO_ICON, ON_ITEM_CLICK_FORM_SELECT, ON_ITEM_CLICK_FORM_SUBMIT, and ON_ITEM_CLICK_HREF.
ilAdvancedSelectionListGUI::getId | ( | ) |
Get Id.
Definition at line 240 of file class.ilAdvancedSelectionListGUI.php.
References $id.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getItemLinkClass | ( | ) |
Get Item Link Class.
Definition at line 220 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getItems | ( | ) |
Get items.
Definition at line 120 of file class.ilAdvancedSelectionListGUI.php.
References $items.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getListTitle | ( | ) |
Get List Title.
Definition at line 140 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getNoJSLinkClass | ( | ) |
Get No Javascript Link Style Class.
Definition at line 200 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::getOnClickMode | ( | ) |
Get "onClick"-Mode.
Definition at line 306 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectedValue | ( | ) |
Get selected value.
Definition at line 326 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getSelectionHeaderClass | ( | ) |
Get Selection Header Class.
Definition at line 160 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::getUseImages | ( | ) |
Get Use Images.
Definition at line 260 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getHTML().
ilAdvancedSelectionListGUI::setAccessKey | ( | $a_val | ) |
Set access key.
integer | access function id |
Definition at line 270 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 337 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 357 of file class.ilAdvancedSelectionListGUI.php.
References ilYuiUtil\initConnection().
ilAdvancedSelectionListGUI::setAsynchUrl | ( | $a_val | ) |
Set asynch url.
string | asynch url |
Definition at line 382 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 76 of file class.ilAdvancedSelectionListGUI.php.
References MODE_FORM_SELECT.
ilAdvancedSelectionListGUI::setHeaderIcon | ( | $a_headericon | ) |
Set Header Icon.
string | $a_headericon | Header Icon |
Definition at line 170 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
ilAdvancedSelectionListGUI::setId | ( | $a_id | ) |
Set Id.
string | $a_id | Id |
Definition at line 230 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setItemLinkClass | ( | $a_itemlinkclass | ) |
Set Item Link Class.
string | $a_itemlinkclass | Item Link Class |
Definition at line 210 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setLinksMode | ( | $a_link_class = "" | ) |
Set links mode (for no js fallback)
Definition at line 64 of file class.ilAdvancedSelectionListGUI.php.
References MODE_LINKS.
ilAdvancedSelectionListGUI::setListTitle | ( | $a_listtitle | ) |
Set List Title.
string | $a_listtitle | List Title |
Definition at line 130 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 190 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 295 of file class.ilAdvancedSelectionListGUI.php.
Referenced by __construct().
ilAdvancedSelectionListGUI::setSelectedValue | ( | $a_val | ) |
Set selected value.
string | selected value |
Definition at line 316 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setSelectionHeaderClass | ( | $a_selectionheaderclass | ) |
Set Selection Header Class.
string | $a_selectionheaderclass | Selection Header Class |
Definition at line 150 of file class.ilAdvancedSelectionListGUI.php.
ilAdvancedSelectionListGUI::setUseImages | ( | $a_useimages | ) |
Set Use Images.
boolean | $a_useimages | Use Images |
Definition at line 250 of file class.ilAdvancedSelectionListGUI.php.
|
private |
Definition at line 15 of file class.ilAdvancedSelectionListGUI.php.
Referenced by getAsynch().
|
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().
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().