ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAccordionGUI Class Reference

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 (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
 

Detailed Description

Accordion user interface class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id:$

Definition at line 11 of file class.ilAccordionGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilAccordionGUI::__construct ( )

Constructor.

Definition at line 39 of file class.ilAccordionGUI.php.

References $DIC, setOrientation(), user(), and VERTICAL.

40  {
41  global $DIC;
42 
43  $this->user = $DIC->user();
45  }
global $DIC
Definition: saml.php:7
user()
Definition: user.php:4
setOrientation($a_orientation)
Set Orientation.
+ Here is the call graph for this function:

Member Function Documentation

◆ addCss()

static ilAccordionGUI::addCss ( )
static

Add required css.

Definition at line 359 of file class.ilAccordionGUI.php.

References $DIC, and $tpl.

Referenced by ilPCIIMTriggerEditorGUI\__construct(), ilTableTemplatesTableGUI\__construct(), ilObjStyleSheetGUI\_getTemplatePreview(), getHTML(), ilPCTabsGUI\initForm(), ilLMPresentationGUI\layout(), and ilPageObjectGUI\showPage().

360  {
361  global $DIC;
362 
363  $tpl = $DIC["tpl"];
364 
365  foreach (self::getLocalCssFiles() as $f) {
366  $tpl->addCss($f);
367  }
368  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ addItem()

ilAccordionGUI::addItem (   $a_header,
  $a_content,
  $a_force_open = false 
)

Add item.

Definition at line 395 of file class.ilAccordionGUI.php.

References $a_content, $items, and array.

396  {
397  $this->items[] = array("header" => $a_header,
398  "content" => $a_content, "force_open" => $a_force_open);
399 
400  if ($a_force_open) {
401  $this->force_open[] = sizeof($this->items);
402  }
403  }
$a_content
Definition: workflow.php:93
Create styles array
The data for the language used.

◆ addJavaScript()

static ilAccordionGUI::addJavaScript ( ilTemplate  $main_tpl = null)
static

Add javascript files that are necessary to run accordion.

Definition at line 335 of file class.ilAccordionGUI.php.

References $DIC, $tpl, ilYuiUtil\initConnection(), and iljQueryUtil\initjQueryUI().

Referenced by ilPCIIMTriggerEditorGUI\__construct(), ilObjStudyProgrammeTreeGUI\initAsyncUIElements(), ilLMPresentationGUI\layout(), and ilPageObjectGUI\showPage().

336  {
337  global $DIC;
338 
339  if ($main_tpl != null) {
340  $tpl = $main_tpl;
341  } else {
342  $tpl = $DIC["tpl"];
343  }
344 
345  include_once("./Services/YUI/classes/class.ilYuiUtil.php");
347 
348  include_once("./Services/jQuery/classes/class.iljQueryUtil.php");
350 
351  foreach (self::getLocalJavascriptFiles() as $f) {
352  $tpl->addJavaScript($f, true, 3);
353  }
354  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
static initConnection(ilTemplate $a_main_tpl=null)
Init YUI Connection module.
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getActiveHeaderClass()

ilAccordionGUI::getActiveHeaderClass ( )

Get active Header CSS Class.

Returns
string Active header CSS Class

Definition at line 167 of file class.ilAccordionGUI.php.

Referenced by getHTML().

168  {
169  return $this->active_headerclass;
170  }
+ Here is the caller graph for this function:

◆ getAllowMultiOpened()

ilAccordionGUI::getAllowMultiOpened ( )

Get allow multi opened.

Returns
bool allow multiple accordions being opened

Definition at line 287 of file class.ilAccordionGUI.php.

References $allow_multi_opened.

Referenced by getHTML().

288  {
290  }
+ Here is the caller graph for this function:

◆ getBehaviour()

ilAccordionGUI::getBehaviour ( )

Get behaviour.

Returns

Definition at line 247 of file class.ilAccordionGUI.php.

Referenced by getHTML().

248  {
249  return $this->behaviour;
250  }
+ Here is the caller graph for this function:

◆ getContainerClass()

ilAccordionGUI::getContainerClass ( )

Get Container CSS Class.

Returns
string Container CSS Class

Definition at line 107 of file class.ilAccordionGUI.php.

Referenced by getHTML().

108  {
109  return $this->containerclass;
110  }
+ Here is the caller graph for this function:

◆ getContentClass()

ilAccordionGUI::getContentClass ( )

Get Content CSS Class.

Returns
string Content CSS Class

Definition at line 187 of file class.ilAccordionGUI.php.

Referenced by getHTML().

188  {
189  return $this->contentclass;
190  }
+ Here is the caller graph for this function:

◆ getContentHeight()

ilAccordionGUI::getContentHeight ( )

Get ContentHeight.

Returns
integer ContentHeight

Definition at line 227 of file class.ilAccordionGUI.php.

Referenced by getHTML().

228  {
229  return $this->contentheight;
230  }
+ Here is the caller graph for this function:

◆ getContentWidth()

ilAccordionGUI::getContentWidth ( )

Get ContentWidth.

Returns
integer ContentWidth

Definition at line 207 of file class.ilAccordionGUI.php.

Referenced by getHTML().

208  {
209  return $this->contentwidth;
210  }
+ Here is the caller graph for this function:

◆ getHeaderClass()

ilAccordionGUI::getHeaderClass ( )

Get Header CSS Class.

Returns
string Header CSS Class

Definition at line 147 of file class.ilAccordionGUI.php.

Referenced by getHTML().

148  {
149  return $this->headerclass;
150  }
+ Here is the caller graph for this function:

◆ getHideAllElement()

ilAccordionGUI::getHideAllElement ( )

Get hide all element.

Returns
string ID of hide all html element

Definition at line 327 of file class.ilAccordionGUI.php.

References $hide_all_element.

Referenced by getHTML().

328  {
330  }
+ Here is the caller graph for this function:

◆ getHTML()

ilAccordionGUI::getHTML ( )

Get accordion html.

Definition at line 416 of file class.ilAccordionGUI.php.

References $ilUser, $options, $tpl, $user, addCss(), ilJsonUtil\encode(), getActiveHeaderClass(), getAllowMultiOpened(), getBehaviour(), getContainerClass(), getContentClass(), getContentHeight(), getContentWidth(), getHeaderClass(), getHideAllElement(), getId(), getInnerContainerClass(), getItems(), getOrientation(), getShowAllElement(), getUseSessionStorage(), HORIZONTAL, and VERTICAL.

417  {
419 
420  self::$accordion_cnt++;
421 
422  $or_short = ($this->getOrientation() == ilAccordionGUI::HORIZONTAL)
423  ? "H"
424  : "V";
425 
426  $width = (int) $this->getContentWidth();
427  $height = (int) $this->getContentHeight();
428  if ($this->getOrientation() == ilAccordionGUI::HORIZONTAL) {
429  if ($width == 0) {
430  $width = 200;
431  }
432  if ($height == 0) {
433  $height = 100;
434  }
435  }
436 
437  $this->addJavascript();
438  $this->addCss();
439 
440  $tpl = new ilTemplate("tpl.accordion.html", true, true, "Services/Accordion");
441  foreach ($this->getItems() as $item) {
442  $tpl->setCurrentBlock("item");
443  $tpl->setVariable("HEADER", $item["header"]);
444  $tpl->setVariable("CONTENT", $item["content"]);
445  $tpl->setVariable("HEADER_CLASS", $this->getHeaderClass()
446  ? $this->getHeaderClass() : "il_" . $or_short . "AccordionHead");
447  $tpl->setVariable("CONTENT_CLASS", $this->getContentClass()
448  ? $this->getContentClass() : "il_" . $or_short . "AccordionContent");
449 
450  if ($this->getBehaviour() != self::FORCE_ALL_OPEN) {
451  $tpl->setVariable("HIDE_CONTENT_CLASS", "ilAccHideContent");
452  }
453 
454  $tpl->setVariable("OR_SHORT", $or_short);
455 
456  $tpl->setVariable("INNER_CONTAINER_CLASS", $this->getInnerContainerClass()
457  ? $this->getInnerContainerClass() : "il_" . $or_short . "AccordionInnerContainer");
458 
459 
460  if ($height > 0) {
461  $tpl->setVariable("HEIGHT", "height:" . $height . "px;");
462  }
463  if ($height > 0 && $this->getOrientation() == ilAccordionGUI::HORIZONTAL) {
464  $tpl->setVariable("HHEIGHT", "height:" . $height . "px;");
465  }
466  $tpl->parseCurrentBlock();
467  }
468 
469  $tpl->setVariable("CONTAINER_CLASS", $this->getContainerClass()
470  ? $this->getContainerClass() : "il_" . $or_short . "AccordionContainer");
471 
472  $options["orientation"] = $this->getOrientation();
473  $options["int_id"] = $this->getId();
474 
475  if ($this->getUseSessionStorage() && $this->getId() != "") {
476  include_once("./Services/Accordion/classes/class.ilAccordionPropertiesStorage.php");
477  $stor = new ilAccordionPropertiesStorage();
478 
479  $ctab = $stor->getProperty(
480  $this->getId(),
481  $ilUser->getId(),
482  "opened"
483  );
484  $ctab_arr = explode(";", $ctab);
485 
486  foreach ($this->force_open as $fo) {
487  if (!in_array($fo, $ctab_arr)) {
488  $ctab_arr[] = $fo;
489  }
490  }
491  $ctab = implode(";", $ctab_arr);
492 
493  if ($ctab == "0") {
494  $ctab = "";
495  }
496 
497  $options["initial_opened"] = $ctab;
498  $options["save_url"] = "./ilias.php?baseClass=ilaccordionpropertiesstorage&cmd=setOpenedTab" .
499  "&accordion_id=" . $this->getId() . "&user_id=" . $ilUser->getId();
500  }
501 
502  $options["behaviour"] = $this->getBehaviour();
503  if ($this->getOrientation() == ilAccordionGUI::HORIZONTAL) {
504  $options["toggle_class"] = 'il_HAccordionToggleDef';
505  $options["toggle_act_class"] = 'il_HAccordionToggleActiveDef';
506  $options["content_class"] = 'il_HAccordionContentDef';
507  } else {
508  $options["toggle_class"] = 'il_VAccordionToggleDef';
509  $options["toggle_act_class"] = 'il_VAccordionToggleActiveDef';
510  $options["content_class"] = 'il_VAccordionContentDef';
511  }
512 
513 
514  if ($width > 0) {
515  $options["width"] = $width;
516  } else {
517  $options["width"] = null;
518  }
519  if ($width > 0 && $this->getOrientation() == ilAccordionGUI::VERTICAL) {
520  $tpl->setVariable("CWIDTH", 'style="width:' . $width . 'px;"');
521  }
522 
523  if ($this->head_class_set) {
524  $options["active_head_class"] = $this->getActiveHeaderClass();
525  } else {
526  if ($this->getOrientation() == ilAccordionGUI::VERTICAL) {
527  $options["active_head_class"] = "il_HAccordionHeadActive";
528  } else {
529  $options["active_head_class"] = "il_VAccordionHeadActive";
530  }
531  }
532 
533  $options["height"] = null;
534  $options["id"] = 'accordion_' . $this->getId() . '_' . self::$accordion_cnt;
535  $options["multi"] = (bool) $this->getAllowMultiOpened();
536  $options["show_all_element"] = $this->getShowAllElement();
537  $options["hide_all_element"] = $this->getHideAllElement();
538 
539  include_once("./Services/JSON/classes/class.ilJsonUtil.php");
540  $tpl->setVariable("OPTIONS", $str = ilJsonUtil::encode($options));
541  $tpl->setVariable("ACC_ID", $options["id"]);
542  //echo "<br><br><br><br><br><br>".$str;
543  return $tpl->get();
544  }
getContentWidth()
Get ContentWidth.
getContentHeight()
Get ContentHeight.
getContainerClass()
Get Container CSS Class.
$tpl
Definition: ilias.php:10
getOrientation()
Get Orientation.
getActiveHeaderClass()
Get active Header CSS Class.
getHeaderClass()
Get Header CSS Class.
getAllowMultiOpened()
Get allow multi opened.
getShowAllElement()
Get show all element.
getHideAllElement()
Get hide all element.
getInnerContainerClass()
Get inner Container CSS Class.
static encode($mixed, $suppress_native=false)
static addCss()
Add required css.
special template class to simplify handling of ITX/PEAR
$ilUser
Definition: imgupload.php:18
getContentClass()
Get Content CSS Class.
getUseSessionStorage()
Get use session storage.
getItems()
Get all items.
Saves (mostly asynchronously) user properties of accordions.
getBehaviour()
Get behaviour.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20
+ Here is the call graph for this function:

◆ getId()

ilAccordionGUI::getId ( )

Get id.

Returns
string id

Definition at line 62 of file class.ilAccordionGUI.php.

References $id.

Referenced by getHTML().

63  {
64  return $this->id;
65  }
if(!array_key_exists('StateId', $_REQUEST)) $id
+ Here is the caller graph for this function:

◆ getInnerContainerClass()

ilAccordionGUI::getInnerContainerClass ( )

Get inner Container CSS Class.

Returns
string Container CSS Class

Definition at line 127 of file class.ilAccordionGUI.php.

Referenced by getHTML().

128  {
129  return $this->icontainerclass;
130  }
+ Here is the caller graph for this function:

◆ getItems()

ilAccordionGUI::getItems ( )

Get all items.

Definition at line 408 of file class.ilAccordionGUI.php.

References $items.

Referenced by getHTML().

409  {
410  return $this->items;
411  }
+ Here is the caller graph for this function:

◆ getLocalCssFiles()

static ilAccordionGUI::getLocalCssFiles ( )
static
Returns
array

Definition at line 384 of file class.ilAccordionGUI.php.

References array.

Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilPCTabs\getCssFiles(), and ilCOPageHTMLExport\getPreparedMainTemplate().

385  {
386  return array(
387  "./Services/Accordion/css/accordion.css",
388  self::$owl_path . self::$owl_css_path
389  );
390  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getLocalJavascriptFiles()

static ilAccordionGUI::getLocalJavascriptFiles ( )
static
Returns
array

Definition at line 373 of file class.ilAccordionGUI.php.

References array.

Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilPCTabs\getJavascriptFiles(), and ilCOPageHTMLExport\getPreparedMainTemplate().

374  {
375  return array(
376  "./Services/Accordion/js/accordion.js",
377  self::$owl_path . self::$owl_js_path
378  );
379  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getOrientation()

ilAccordionGUI::getOrientation ( )

Get Orientation.

Returns
string Orientation

Definition at line 87 of file class.ilAccordionGUI.php.

Referenced by getHTML().

88  {
89  return $this->orientation;
90  }
+ Here is the caller graph for this function:

◆ getShowAllElement()

ilAccordionGUI::getShowAllElement ( )

Get show all element.

Returns
string ID of show all html element

Definition at line 307 of file class.ilAccordionGUI.php.

References $show_all_element.

Referenced by getHTML().

308  {
310  }
+ Here is the caller graph for this function:

◆ getUseSessionStorage()

ilAccordionGUI::getUseSessionStorage ( )

Get use session storage.

Returns
bool use session storage

Definition at line 267 of file class.ilAccordionGUI.php.

References $use_session_storage.

Referenced by getHTML().

268  {
270  }
+ Here is the caller graph for this function:

◆ setActiveHeaderClass()

ilAccordionGUI::setActiveHeaderClass (   $a_h_class)

Set active header class.

Parameters
string$a_h_classActive Header CSS Class

Definition at line 157 of file class.ilAccordionGUI.php.

158  {
159  $this->active_headerclass = $a_h_class;
160  }

◆ setAllowMultiOpened()

ilAccordionGUI::setAllowMultiOpened (   $a_val)

Set allow multi opened.

Parameters
bool$a_valallow multiple accordions being opened

Definition at line 277 of file class.ilAccordionGUI.php.

278  {
279  $this->allow_multi_opened = $a_val;
280  }

◆ setBehaviour()

ilAccordionGUI::setBehaviour (   $a_val)

Set behaviour "ForceAllOpen" | "FirstOpen" | "AllClosed".

Parameters
stringbehaviour

Definition at line 237 of file class.ilAccordionGUI.php.

238  {
239  $this->behaviour = $a_val;
240  }

◆ setContainerClass()

ilAccordionGUI::setContainerClass (   $a_containerclass)

Set Container CSS Class.

Parameters
string$a_containerclassContainer CSS Class

Definition at line 97 of file class.ilAccordionGUI.php.

98  {
99  $this->containerclass = $a_containerclass;
100  }

◆ setContentClass()

ilAccordionGUI::setContentClass (   $a_contentclass)

Set Content CSS Class.

Parameters
string$a_contentclassContent CSS Class

Definition at line 177 of file class.ilAccordionGUI.php.

178  {
179  $this->contentclass = $a_contentclass;
180  }

◆ setContentHeight()

ilAccordionGUI::setContentHeight (   $a_contentheight)

Set ContentHeight.

Parameters
integer$a_contentheightContentHeight

Definition at line 217 of file class.ilAccordionGUI.php.

218  {
219  $this->contentheight = $a_contentheight;
220  }

◆ setContentWidth()

ilAccordionGUI::setContentWidth (   $a_contentwidth)

Set ContentWidth.

Parameters
integer$a_contentwidthContentWidth

Definition at line 197 of file class.ilAccordionGUI.php.

198  {
199  $this->contentwidth = $a_contentwidth;
200  }

◆ setHeaderClass()

ilAccordionGUI::setHeaderClass (   $a_headerclass)

Set Header CSS Class.

Parameters
string$a_headerclassHeader CSS Class

Definition at line 137 of file class.ilAccordionGUI.php.

138  {
139  $this->headerclass = $a_headerclass;
140  }

◆ setHideAllElement()

ilAccordionGUI::setHideAllElement (   $a_val)

Set hide all element.

Parameters
string$a_valID of hide all html element

Definition at line 317 of file class.ilAccordionGUI.php.

318  {
319  $this->hide_all_element = $a_val;
320  }

◆ setId()

ilAccordionGUI::setId (   $a_val)

Set id.

Parameters
stringid

Definition at line 52 of file class.ilAccordionGUI.php.

53  {
54  $this->id = $a_val;
55  }

◆ setInnerContainerClass()

ilAccordionGUI::setInnerContainerClass (   $a_containerclass)

Set inner Container CSS Class.

Parameters
string$a_containerclassContainer CSS Class

Definition at line 117 of file class.ilAccordionGUI.php.

118  {
119  $this->icontainerclass = $a_containerclass;
120  }

◆ setOrientation()

ilAccordionGUI::setOrientation (   $a_orientation)

Set Orientation.

Parameters
string$a_orientationOrientation

Definition at line 72 of file class.ilAccordionGUI.php.

References array, HORIZONTAL, and VERTICAL.

Referenced by __construct().

73  {
74  if (in_array(
75  $a_orientation,
77  )) {
78  $this->orientation = $a_orientation;
79  }
80  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ setShowAllElement()

ilAccordionGUI::setShowAllElement (   $a_val)

Set show all element.

Parameters
string$a_valID of show all html element

Definition at line 297 of file class.ilAccordionGUI.php.

298  {
299  $this->show_all_element = $a_val;
300  }

◆ setUseSessionStorage()

ilAccordionGUI::setUseSessionStorage (   $a_val)

Set use session storage.

Parameters
bool$a_valuse session storage

Definition at line 257 of file class.ilAccordionGUI.php.

258  {
259  $this->use_session_storage = $a_val;
260  }

Field Documentation

◆ $accordion_cnt

ilAccordionGUI::$accordion_cnt = 0
staticprotected

Definition at line 20 of file class.ilAccordionGUI.php.

◆ $allow_multi_opened

ilAccordionGUI::$allow_multi_opened = false
protected

Definition at line 22 of file class.ilAccordionGUI.php.

Referenced by getAllowMultiOpened().

◆ $force_open

ilAccordionGUI::$force_open = array()
protected

Definition at line 19 of file class.ilAccordionGUI.php.

◆ $hide_all_element

ilAccordionGUI::$hide_all_element = null
protected

Definition at line 24 of file class.ilAccordionGUI.php.

Referenced by getHideAllElement().

◆ $items

ilAccordionGUI::$items = array()
protected

Definition at line 18 of file class.ilAccordionGUI.php.

Referenced by addItem(), and getItems().

◆ $owl_css_path

ilAccordionGUI::$owl_css_path = "/assets/owl.carousel.css"
static

Definition at line 34 of file class.ilAccordionGUI.php.

◆ $owl_js_path

ilAccordionGUI::$owl_js_path = "/owl.carousel.js"
static

Definition at line 33 of file class.ilAccordionGUI.php.

◆ $owl_path

ilAccordionGUI::$owl_path = "./libs/bower/bower_components/owl.carousel/dist"
static

Definition at line 32 of file class.ilAccordionGUI.php.

◆ $show_all_element

ilAccordionGUI::$show_all_element = null
protected

Definition at line 23 of file class.ilAccordionGUI.php.

Referenced by getShowAllElement().

◆ $use_session_storage

ilAccordionGUI::$use_session_storage = false
protected

Definition at line 21 of file class.ilAccordionGUI.php.

Referenced by getUseSessionStorage().

◆ $user

ilAccordionGUI::$user
protected

Definition at line 16 of file class.ilAccordionGUI.php.

Referenced by getHTML().

◆ ALL_CLOSED

const ilAccordionGUI::ALL_CLOSED = "AllClosed"

Definition at line 30 of file class.ilAccordionGUI.php.

◆ FIRST_OPEN

◆ FORCE_ALL_OPEN

const ilAccordionGUI::FORCE_ALL_OPEN = "ForceAllOpen"

◆ HORIZONTAL

const ilAccordionGUI::HORIZONTAL = "horizontal"

◆ VERTICAL

const ilAccordionGUI::VERTICAL = "vertical"

The documentation for this class was generated from the following file: