ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Accordion user interface class. More...
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 (ilTemplate $main_tpl=null) |
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 = "./libs/bower/bower_components/owl.carousel/dist" |
static | $owl_js_path = "/owl.carousel.js" |
static | $owl_css_path = "/assets/owl.carousel.css" |
Protected Attributes | |
$user | |
$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 39 of file class.ilAccordionGUI.php.
References $DIC, setOrientation(), user(), and VERTICAL.
|
static |
Add required css.
Definition at line 359 of file class.ilAccordionGUI.php.
References $DIC, $f, and $tpl.
Referenced by ilPCIIMTriggerEditorGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilObjStyleSheetGUI\_getTemplatePreview(), getHTML(), ilPCTabsGUI\initForm(), ilLMPresentationGUI\layout(), and ilPageObjectGUI\showPage().
ilAccordionGUI::addItem | ( | $a_header, | |
$a_content, | |||
$a_force_open = false |
|||
) |
Add item.
Definition at line 395 of file class.ilAccordionGUI.php.
References $a_content, and $items.
|
static |
Add javascript files that are necessary to run accordion.
Definition at line 335 of file class.ilAccordionGUI.php.
References $DIC, $f, $tpl, ilYuiUtil\initConnection(), and iljQueryUtil\initjQueryUI().
Referenced by ilPCIIMTriggerEditorGUI\__construct(), ilObjStudyProgrammeTreeGUI\initAsyncUIElements(), ilLMPresentationGUI\layout(), and ilPageObjectGUI\showPage().
ilAccordionGUI::getActiveHeaderClass | ( | ) |
Get active Header CSS Class.
Definition at line 167 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getAllowMultiOpened | ( | ) |
Get allow multi opened.
Definition at line 287 of file class.ilAccordionGUI.php.
References $allow_multi_opened.
Referenced by getHTML().
ilAccordionGUI::getBehaviour | ( | ) |
Get behaviour.
Definition at line 247 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getContainerClass | ( | ) |
Get Container CSS Class.
Definition at line 107 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getContentClass | ( | ) |
Get Content CSS Class.
Definition at line 187 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getContentHeight | ( | ) |
Get ContentHeight.
Definition at line 227 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getContentWidth | ( | ) |
Get ContentWidth.
Definition at line 207 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getHeaderClass | ( | ) |
Get Header CSS Class.
Definition at line 147 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getHideAllElement | ( | ) |
Get hide all element.
Definition at line 327 of file class.ilAccordionGUI.php.
References $hide_all_element.
Referenced by getHTML().
ilAccordionGUI::getHTML | ( | ) |
Get accordion html.
Definition at line 416 of file class.ilAccordionGUI.php.
References $ilUser, PHPMailer\PHPMailer\$options, $tpl, $user, addCss(), ilJsonUtil\encode(), getActiveHeaderClass(), getAllowMultiOpened(), getBehaviour(), getContainerClass(), getContentClass(), getContentHeight(), getContentWidth(), getHeaderClass(), getHideAllElement(), getId(), getInnerContainerClass(), getItems(), getOrientation(), getShowAllElement(), getUseSessionStorage(), HORIZONTAL, and VERTICAL.
ilAccordionGUI::getId | ( | ) |
Get id.
Definition at line 62 of file class.ilAccordionGUI.php.
References $id.
Referenced by getHTML().
ilAccordionGUI::getInnerContainerClass | ( | ) |
Get inner Container CSS Class.
Definition at line 127 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getItems | ( | ) |
Get all items.
Definition at line 408 of file class.ilAccordionGUI.php.
References $items.
Referenced by getHTML().
|
static |
Definition at line 384 of file class.ilAccordionGUI.php.
Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilPCTabs\getCssFiles(), and ilCOPageHTMLExport\getPreparedMainTemplate().
|
static |
Definition at line 373 of file class.ilAccordionGUI.php.
Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilPCTabs\getJavascriptFiles(), and ilCOPageHTMLExport\getPreparedMainTemplate().
ilAccordionGUI::getOrientation | ( | ) |
Get Orientation.
Definition at line 87 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getShowAllElement | ( | ) |
Get show all element.
Definition at line 307 of file class.ilAccordionGUI.php.
References $show_all_element.
Referenced by getHTML().
ilAccordionGUI::getUseSessionStorage | ( | ) |
Get use session storage.
Definition at line 267 of file class.ilAccordionGUI.php.
References $use_session_storage.
Referenced by getHTML().
ilAccordionGUI::setActiveHeaderClass | ( | $a_h_class | ) |
Set active header class.
string | $a_h_class | Active Header CSS Class |
Definition at line 157 of file class.ilAccordionGUI.php.
ilAccordionGUI::setAllowMultiOpened | ( | $a_val | ) |
Set allow multi opened.
bool | $a_val | allow multiple accordions being opened |
Definition at line 277 of file class.ilAccordionGUI.php.
ilAccordionGUI::setBehaviour | ( | $a_val | ) |
Set behaviour "ForceAllOpen" | "FirstOpen" | "AllClosed".
string | behaviour |
Definition at line 237 of file class.ilAccordionGUI.php.
ilAccordionGUI::setContainerClass | ( | $a_containerclass | ) |
Set Container CSS Class.
string | $a_containerclass | Container CSS Class |
Definition at line 97 of file class.ilAccordionGUI.php.
ilAccordionGUI::setContentClass | ( | $a_contentclass | ) |
Set Content CSS Class.
string | $a_contentclass | Content CSS Class |
Definition at line 177 of file class.ilAccordionGUI.php.
ilAccordionGUI::setContentHeight | ( | $a_contentheight | ) |
Set ContentHeight.
integer | $a_contentheight | ContentHeight |
Definition at line 217 of file class.ilAccordionGUI.php.
ilAccordionGUI::setContentWidth | ( | $a_contentwidth | ) |
Set ContentWidth.
integer | $a_contentwidth | ContentWidth |
Definition at line 197 of file class.ilAccordionGUI.php.
ilAccordionGUI::setHeaderClass | ( | $a_headerclass | ) |
Set Header CSS Class.
string | $a_headerclass | Header CSS Class |
Definition at line 137 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 317 of file class.ilAccordionGUI.php.
ilAccordionGUI::setId | ( | $a_val | ) |
ilAccordionGUI::setInnerContainerClass | ( | $a_containerclass | ) |
Set inner Container CSS Class.
string | $a_containerclass | Container CSS Class |
Definition at line 117 of file class.ilAccordionGUI.php.
ilAccordionGUI::setOrientation | ( | $a_orientation | ) |
Set Orientation.
string | $a_orientation | Orientation |
Definition at line 72 of file class.ilAccordionGUI.php.
References HORIZONTAL, and VERTICAL.
Referenced by __construct().
ilAccordionGUI::setShowAllElement | ( | $a_val | ) |
Set show all element.
string | $a_val | ID of show all html element |
Definition at line 297 of file class.ilAccordionGUI.php.
ilAccordionGUI::setUseSessionStorage | ( | $a_val | ) |
Set use session storage.
bool | $a_val | use session storage |
Definition at line 257 of file class.ilAccordionGUI.php.
|
staticprotected |
Definition at line 20 of file class.ilAccordionGUI.php.
|
protected |
Definition at line 22 of file class.ilAccordionGUI.php.
Referenced by getAllowMultiOpened().
|
protected |
Definition at line 19 of file class.ilAccordionGUI.php.
|
protected |
Definition at line 24 of file class.ilAccordionGUI.php.
Referenced by getHideAllElement().
|
protected |
Definition at line 18 of file class.ilAccordionGUI.php.
Referenced by addItem(), and getItems().
|
static |
Definition at line 34 of file class.ilAccordionGUI.php.
|
static |
Definition at line 33 of file class.ilAccordionGUI.php.
|
static |
Definition at line 32 of file class.ilAccordionGUI.php.
|
protected |
Definition at line 23 of file class.ilAccordionGUI.php.
Referenced by getShowAllElement().
|
protected |
Definition at line 21 of file class.ilAccordionGUI.php.
Referenced by getUseSessionStorage().
|
protected |
Definition at line 16 of file class.ilAccordionGUI.php.
Referenced by getHTML().
const ilAccordionGUI::ALL_CLOSED = "AllClosed" |
Definition at line 30 of file class.ilAccordionGUI.php.
Referenced by ilObjMediaPoolGUI\editTitlesAndDescriptions().
const ilAccordionGUI::FIRST_OPEN = "FirstOpen" |
Definition at line 29 of file class.ilAccordionGUI.php.
Referenced by ilSystemStyleOverviewGUI\cloneSystemStyleForm(), ilObjStudyProgrammeTreeGUI\create(), ilObjectGUI\getCreationFormsHTML(), ilHelpGUI\showHelp(), and ilContainerObjectiveGUI\showObjectives().
const ilAccordionGUI::FORCE_ALL_OPEN = "ForceAllOpen" |
Definition at line 28 of file class.ilAccordionGUI.php.
Referenced by ilObjRoleGUI\permObject(), and ilObjRoleTemplateGUI\saveObject().
const ilAccordionGUI::HORIZONTAL = "horizontal" |
Definition at line 27 of file class.ilAccordionGUI.php.
Referenced by ilObjStyleSheetGUI\accordiontestObject(), getHTML(), and setOrientation().
const ilAccordionGUI::VERTICAL = "vertical" |
Definition at line 26 of file class.ilAccordionGUI.php.
Referenced by __construct(), ilObjStyleSheetGUI\accordiontestObject(), getHTML(), and setOrientation().