ILIAS
Release_4_1_x_branch Revision 61804
|
Accordion user interface class. More...
Public Member Functions | |
__construct () | |
Constructor. | |
setId ($a_val) | |
Set id. | |
getId () | |
Get id. | |
setOrientation ($a_orientation) | |
Set Orientation. | |
getOrientation () | |
Get Orientation. | |
setContainerClass ($a_containerclass) | |
Set Container CSS Class. | |
getContainerClass () | |
Get Container CSS Class. | |
setInnerContainerClass ($a_containerclass) | |
Set inner Container CSS Class. | |
getInnerContainerClass () | |
Get inner Container CSS Class. | |
setHeaderClass ($a_headerclass) | |
Set Header CSS Class. | |
getHeaderClass () | |
Get Header CSS Class. | |
setContentClass ($a_contentclass) | |
Set Content CSS Class. | |
getContentClass () | |
Get Content CSS Class. | |
setContentWidth ($a_contentwidth) | |
Set ContentWidth. | |
getContentWidth () | |
Get ContentWidth. | |
setContentHeight ($a_contentheight) | |
Set ContentHeight. | |
getContentHeight () | |
Get ContentHeight. | |
setBehaviour ($a_val) | |
Set behaviour "ForceAllOpen" | "FirstOpen" | "OneOpenSession". | |
getBehaviour () | |
Get behaviour. | |
addItem ($a_header, $a_content) | |
Add item. | |
getItems () | |
Get all items. | |
getHTML () | |
Get accordion html. |
Static Public Member Functions | |
static | addJavaScript () |
Add javascript files that are necessary to run accordion. | |
static | addCss () |
Add required css. |
Data Fields | |
const | VERTICAL = "vertical" |
const | HORIZONTAL = "horizontal" |
const | FORCE_ALL_OPEN = "ForceAllOpen" |
const | FIRST_OPEN = "FirstOpen" |
const | ONE_OPEN_SESSION = "OneOpenSession" |
Protected Attributes | |
$items = array() |
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 24 of file class.ilAccordionGUI.php.
References setOrientation(), and VERTICAL.
|
static |
Add required css.
Definition at line 231 of file class.ilAccordionGUI.php.
References $tpl.
Referenced by ilTableTemplatesTableGUI\__construct(), ilObjStyleSheetGUI\_getTemplatePreview(), getHTML(), ilPCTabsGUI\initForm(), ilLMPresentationGUI\layout(), and ilPageObjectGUI\showPage().
ilAccordionGUI::addItem | ( | $a_header, | |
$a_content | |||
) |
Add item.
Definition at line 241 of file class.ilAccordionGUI.php.
|
static |
Add javascript files that are necessary to run accordion.
Definition at line 216 of file class.ilAccordionGUI.php.
References $tpl, ilYuiUtil\initAnimation(), ilYuiUtil\initConnection(), ilYuiUtil\initDom(), and ilYuiUtil\initEvent().
Referenced by ilLMPresentationGUI\layout(), and ilPageObjectGUI\showPage().
ilAccordionGUI::getBehaviour | ( | ) |
Get behaviour.
Definition at line 208 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getContainerClass | ( | ) |
Get Container CSS Class.
Definition at line 88 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getContentClass | ( | ) |
Get Content CSS Class.
Definition at line 148 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getContentHeight | ( | ) |
Get ContentHeight.
Definition at line 188 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getContentWidth | ( | ) |
Get ContentWidth.
Definition at line 168 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getHeaderClass | ( | ) |
Get Header CSS Class.
Definition at line 128 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getHTML | ( | ) |
Get accordion html.
Definition at line 258 of file class.ilAccordionGUI.php.
References $tpl, addCss(), getBehaviour(), getContainerClass(), getContentClass(), getContentHeight(), getContentWidth(), getHeaderClass(), getId(), getInnerContainerClass(), getItems(), getOrientation(), HORIZONTAL, and VERTICAL.
ilAccordionGUI::getId | ( | ) |
Get id.
Definition at line 44 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getInnerContainerClass | ( | ) |
Get inner Container CSS Class.
Definition at line 108 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::getItems | ( | ) |
Get all items.
Definition at line 250 of file class.ilAccordionGUI.php.
References $items.
Referenced by getHTML().
ilAccordionGUI::getOrientation | ( | ) |
Get Orientation.
Definition at line 68 of file class.ilAccordionGUI.php.
Referenced by getHTML().
ilAccordionGUI::setBehaviour | ( | $a_val | ) |
Set behaviour "ForceAllOpen" | "FirstOpen" | "OneOpenSession".
string | behaviour |
Definition at line 198 of file class.ilAccordionGUI.php.
ilAccordionGUI::setContainerClass | ( | $a_containerclass | ) |
Set Container CSS Class.
string | $a_containerclass | Container CSS Class |
Definition at line 78 of file class.ilAccordionGUI.php.
ilAccordionGUI::setContentClass | ( | $a_contentclass | ) |
Set Content CSS Class.
string | $a_contentclass | Content CSS Class |
Definition at line 138 of file class.ilAccordionGUI.php.
ilAccordionGUI::setContentHeight | ( | $a_contentheight | ) |
Set ContentHeight.
integer | $a_contentheight | ContentHeight |
Definition at line 178 of file class.ilAccordionGUI.php.
ilAccordionGUI::setContentWidth | ( | $a_contentwidth | ) |
Set ContentWidth.
integer | $a_contentwidth | ContentWidth |
Definition at line 158 of file class.ilAccordionGUI.php.
ilAccordionGUI::setHeaderClass | ( | $a_headerclass | ) |
Set Header CSS Class.
string | $a_headerclass | Header CSS Class |
Definition at line 118 of file class.ilAccordionGUI.php.
ilAccordionGUI::setId | ( | $a_val | ) |
Set id.
string | id |
Definition at line 34 of file class.ilAccordionGUI.php.
ilAccordionGUI::setInnerContainerClass | ( | $a_containerclass | ) |
Set inner Container CSS Class.
string | $a_containerclass | Container CSS Class |
Definition at line 98 of file class.ilAccordionGUI.php.
ilAccordionGUI::setOrientation | ( | $a_orientation | ) |
Set Orientation.
string | $a_orientation | Orientation |
Definition at line 54 of file class.ilAccordionGUI.php.
References HORIZONTAL, and VERTICAL.
Referenced by __construct().
|
staticprotected |
Definition at line 14 of file class.ilAccordionGUI.php.
|
protected |
Definition at line 13 of file class.ilAccordionGUI.php.
Referenced by getItems().
const ilAccordionGUI::FIRST_OPEN = "FirstOpen" |
Definition at line 18 of file class.ilAccordionGUI.php.
const ilAccordionGUI::FORCE_ALL_OPEN = "ForceAllOpen" |
Definition at line 17 of file class.ilAccordionGUI.php.
Referenced by ilObjRoleGUI\permObject().
const ilAccordionGUI::HORIZONTAL = "horizontal" |
Definition at line 16 of file class.ilAccordionGUI.php.
Referenced by ilObjStyleSheetGUI\accordiontestObject(), getHTML(), and setOrientation().
const ilAccordionGUI::ONE_OPEN_SESSION = "OneOpenSession" |
Definition at line 19 of file class.ilAccordionGUI.php.
const ilAccordionGUI::VERTICAL = "vertical" |
Definition at line 15 of file class.ilAccordionGUI.php.
Referenced by __construct(), ilObjStyleSheetGUI\accordiontestObject(), getHTML(), and setOrientation().