|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Accordion user interface class. More...
Collaboration diagram for ilAccordionGUI:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| setId ($a_val) | |
| Set id. More... | |
| getId () | |
| Get id. More... | |
| setOrientation ($a_orientation) | |
| Set Orientation. More... | |
| getOrientation () | |
| Get Orientation. More... | |
| setContainerClass ($a_containerclass) | |
| Set Container CSS Class. More... | |
| getContainerClass () | |
| Get Container CSS Class. More... | |
| setInnerContainerClass ($a_containerclass) | |
| Set inner Container CSS Class. More... | |
| getInnerContainerClass () | |
| Get inner Container CSS Class. More... | |
| setHeaderClass ($a_headerclass) | |
| Set Header CSS Class. More... | |
| getHeaderClass () | |
| Get Header CSS Class. More... | |
| setActiveHeaderClass ($a_h_class) | |
| Set active header class. More... | |
| getActiveHeaderClass () | |
| Get active Header CSS Class. More... | |
| setContentClass ($a_contentclass) | |
| Set Content CSS Class. More... | |
| getContentClass () | |
| Get Content CSS Class. More... | |
| setContentWidth ($a_contentwidth) | |
| Set ContentWidth. More... | |
| getContentWidth () | |
| Get ContentWidth. More... | |
| setContentHeight ($a_contentheight) | |
| Set ContentHeight. More... | |
| getContentHeight () | |
| Get ContentHeight. More... | |
| setBehaviour ($a_val) | |
| Set behaviour "ForceAllOpen" | "FirstOpen" | "AllClosed". More... | |
| getBehaviour () | |
| Get behaviour. More... | |
| setUseSessionStorage ($a_val) | |
| Set use session storage. More... | |
| getUseSessionStorage () | |
| Get use session storage. More... | |
| setAllowMultiOpened ($a_val) | |
| Set allow multi opened. More... | |
| getAllowMultiOpened () | |
| Get allow multi opened. More... | |
| setShowAllElement ($a_val) | |
| Set show all element. More... | |
| getShowAllElement () | |
| Get show all element. More... | |
| setHideAllElement ($a_val) | |
| Set hide all element. More... | |
| getHideAllElement () | |
| Get hide all element. More... | |
| addItem ($a_header, $a_content, $a_force_open=false) | |
| Add item. More... | |
| getItems () | |
| Get all items. More... | |
| getHTML () | |
| Get accordion html. More... | |
Static Public Member Functions | |
| static | addJavaScript () |
| Add javascript files that are necessary to run accordion. More... | |
| static | addCss () |
| Add required css. More... | |
| static | getLocalJavascriptFiles () |
| static | getLocalCssFiles () |
Data Fields | |
| const | VERTICAL = "vertical" |
| const | HORIZONTAL = "horizontal" |
| const | FORCE_ALL_OPEN = "ForceAllOpen" |
| const | FIRST_OPEN = "FirstOpen" |
| const | ALL_CLOSED = "AllClosed" |
Static Public Attributes | |
| static | $owl_path = "./Services/Accordion/lib/owl.carousel.2.0.0-beta.2.4" |
| static | $owl_js_path = "/owl.carousel.js" |
| static | $owl_css_path = "/assets/owl.carousel.css" |
Protected Attributes | |
| $items = array() | |
| $force_open = array() | |
| $use_session_storage = false | |
| $allow_multi_opened = false | |
| $show_all_element = null | |
| $hide_all_element = null | |
Static Protected Attributes | |
| static | $accordion_cnt = 0 |
Accordion user interface class.
Definition at line 11 of file class.ilAccordionGUI.php.
| ilAccordionGUI::__construct | ( | ) |
Constructor.
Definition at line 34 of file class.ilAccordionGUI.php.
References setOrientation(), and VERTICAL.
Here is the call graph for this function:
|
static |
Add required css.
Definition at line 346 of file class.ilAccordionGUI.php.
References $tpl.
Referenced by ilTableTemplatesTableGUI\__construct(), ilObjStyleSheetGUI\_getTemplatePreview(), getHTML(), ilPCIIMTriggerEditorGUI\getImageMapTableHTML(), ilPCTabsGUI\initForm(), ilLMPresentationGUI\layout(), and ilPageObjectGUI\showPage().
Here is the caller graph for this function:| ilAccordionGUI::addItem | ( | $a_header, | |
| $a_content, | |||
$a_force_open = false |
|||
| ) |
Add item.
Definition at line 381 of file class.ilAccordionGUI.php.
References $items.
|
static |
Add javascript files that are necessary to run accordion.
Definition at line 326 of file class.ilAccordionGUI.php.
References $tpl, ilYuiUtil\initConnection(), and iljQueryUtil\initjQueryUI().
Referenced by ilPCIIMTriggerEditorGUI\getImageMapTableHTML(), ilObjStudyProgrammeTreeGUI\initAsyncUIElements(), ilLMPresentationGUI\layout(), and ilPageObjectGUI\showPage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAccordionGUI::getActiveHeaderClass | ( | ) |
Get active Header CSS Class.
Definition at line 158 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getAllowMultiOpened | ( | ) |
Get allow multi opened.
Definition at line 278 of file class.ilAccordionGUI.php.
References $allow_multi_opened.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getBehaviour | ( | ) |
Get behaviour.
Definition at line 238 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getContainerClass | ( | ) |
Get Container CSS Class.
Definition at line 98 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getContentClass | ( | ) |
Get Content CSS Class.
Definition at line 178 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getContentHeight | ( | ) |
Get ContentHeight.
Definition at line 218 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getContentWidth | ( | ) |
Get ContentWidth.
Definition at line 198 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getHeaderClass | ( | ) |
Get Header CSS Class.
Definition at line 138 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getHideAllElement | ( | ) |
Get hide all element.
Definition at line 318 of file class.ilAccordionGUI.php.
References $hide_all_element.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getHTML | ( | ) |
Get accordion html.
Definition at line 403 of file class.ilAccordionGUI.php.
References $accordion_cnt, $ilUser, $options, $tpl, addCss(), ilJsonUtil\encode(), getActiveHeaderClass(), getAllowMultiOpened(), getBehaviour(), getContainerClass(), getContentClass(), getContentHeight(), getContentWidth(), getHeaderClass(), getHideAllElement(), getId(), getInnerContainerClass(), getItems(), getOrientation(), getShowAllElement(), getUseSessionStorage(), HORIZONTAL, and VERTICAL.
Here is the call graph for this function:| ilAccordionGUI::getId | ( | ) |
Get id.
Definition at line 54 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getInnerContainerClass | ( | ) |
Get inner Container CSS Class.
Definition at line 118 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getItems | ( | ) |
Get all items.
Definition at line 395 of file class.ilAccordionGUI.php.
References $items.
Referenced by getHTML().
Here is the caller graph for this function:
|
static |
Definition at line 370 of file class.ilAccordionGUI.php.
Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilPCTabs\getCssFiles(), and ilCOPageHTMLExport\getPreparedMainTemplate().
Here is the caller graph for this function:
|
static |
Definition at line 359 of file class.ilAccordionGUI.php.
Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilPCTabs\getJavascriptFiles(), and ilCOPageHTMLExport\getPreparedMainTemplate().
Here is the caller graph for this function:| ilAccordionGUI::getOrientation | ( | ) |
Get Orientation.
Definition at line 78 of file class.ilAccordionGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getShowAllElement | ( | ) |
Get show all element.
Definition at line 298 of file class.ilAccordionGUI.php.
References $show_all_element.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::getUseSessionStorage | ( | ) |
Get use session storage.
Definition at line 258 of file class.ilAccordionGUI.php.
References $use_session_storage.
Referenced by getHTML().
Here is the caller graph for this function:| ilAccordionGUI::setActiveHeaderClass | ( | $a_h_class | ) |
Set active header class.
| string | $a_h_class | Active Header CSS Class |
Definition at line 148 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setAllowMultiOpened | ( | $a_val | ) |
Set allow multi opened.
| bool | $a_val | allow multiple accordions being opened |
Definition at line 268 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setBehaviour | ( | $a_val | ) |
Set behaviour "ForceAllOpen" | "FirstOpen" | "AllClosed".
| string | behaviour |
Definition at line 228 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setContainerClass | ( | $a_containerclass | ) |
Set Container CSS Class.
| string | $a_containerclass | Container CSS Class |
Definition at line 88 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setContentClass | ( | $a_contentclass | ) |
Set Content CSS Class.
| string | $a_contentclass | Content CSS Class |
Definition at line 168 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setContentHeight | ( | $a_contentheight | ) |
Set ContentHeight.
| integer | $a_contentheight | ContentHeight |
Definition at line 208 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setContentWidth | ( | $a_contentwidth | ) |
Set ContentWidth.
| integer | $a_contentwidth | ContentWidth |
Definition at line 188 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setHeaderClass | ( | $a_headerclass | ) |
Set Header CSS Class.
| string | $a_headerclass | Header CSS Class |
Definition at line 128 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setHideAllElement | ( | $a_val | ) |
Set hide all element.
| string | $a_val | ID of hide all html element |
Definition at line 308 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setId | ( | $a_val | ) |
Set id.
| string | id |
Definition at line 44 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setInnerContainerClass | ( | $a_containerclass | ) |
Set inner Container CSS Class.
| string | $a_containerclass | Container CSS Class |
Definition at line 108 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setOrientation | ( | $a_orientation | ) |
Set Orientation.
| string | $a_orientation | Orientation |
Definition at line 64 of file class.ilAccordionGUI.php.
References HORIZONTAL, and VERTICAL.
Referenced by __construct().
Here is the caller graph for this function:| ilAccordionGUI::setShowAllElement | ( | $a_val | ) |
Set show all element.
| string | $a_val | ID of show all html element |
Definition at line 288 of file class.ilAccordionGUI.php.
| ilAccordionGUI::setUseSessionStorage | ( | $a_val | ) |
Set use session storage.
| bool | $a_val | use session storage |
Definition at line 248 of file class.ilAccordionGUI.php.
|
staticprotected |
Definition at line 15 of file class.ilAccordionGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 17 of file class.ilAccordionGUI.php.
Referenced by getAllowMultiOpened().
|
protected |
Definition at line 14 of file class.ilAccordionGUI.php.
|
protected |
Definition at line 19 of file class.ilAccordionGUI.php.
Referenced by getHideAllElement().
|
protected |
Definition at line 13 of file class.ilAccordionGUI.php.
Referenced by addItem(), and getItems().
|
static |
Definition at line 29 of file class.ilAccordionGUI.php.
|
static |
Definition at line 28 of file class.ilAccordionGUI.php.
|
static |
Definition at line 27 of file class.ilAccordionGUI.php.
|
protected |
Definition at line 18 of file class.ilAccordionGUI.php.
Referenced by getShowAllElement().
|
protected |
Definition at line 16 of file class.ilAccordionGUI.php.
Referenced by getUseSessionStorage().
| const ilAccordionGUI::ALL_CLOSED = "AllClosed" |
Definition at line 25 of file class.ilAccordionGUI.php.
| const ilAccordionGUI::FIRST_OPEN = "FirstOpen" |
Definition at line 24 of file class.ilAccordionGUI.php.
Referenced by ilObjStudyProgrammeTreeGUI\create(), ilObjectGUI\getCreationFormsHTML(), ilHelpGUI\showHelp(), and ilContainerObjectiveGUI\showObjectives().
| const ilAccordionGUI::FORCE_ALL_OPEN = "ForceAllOpen" |
Definition at line 23 of file class.ilAccordionGUI.php.
Referenced by ilObjRoleGUI\permObject().
| const ilAccordionGUI::HORIZONTAL = "horizontal" |
Definition at line 22 of file class.ilAccordionGUI.php.
Referenced by ilObjStyleSheetGUI\accordiontestObject(), getHTML(), and setOrientation().
| const ilAccordionGUI::VERTICAL = "vertical" |
Definition at line 21 of file class.ilAccordionGUI.php.
Referenced by __construct(), ilObjStyleSheetGUI\accordiontestObject(), getHTML(), and setOrientation().