ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilPCTabs Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilPCTabs:
+ Collaboration diagram for ilPCTabs:

Public Member Functions

 init ()
 
 create (ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id="")
 
 setTabType (string $a_type="HorizontalTabs")
 
 getTabType ()
 
 setContentWidth (string $a_val)
 
 getContentWidth ()
 
 setContentHeight (string $a_val)
 
 getContentHeight ()
 
 setHorizontalAlign (string $a_val)
 
 getHorizontalAlign ()
 
 setBehavior (string $a_val)
 
 getBehavior ()
 
 getCaptions ()
 
 getCaption (string $a_hier_id, string $a_pc_id)
 
 savePositions (array $a_pos)
 Save positions of tabs. More...
 
 saveCaptions (array $a_captions)
 
 deleteTab (string $a_hier_id, string $a_pc_id)
 
 addTab (string $a_caption)
 
 setTemplate (string $a_template)
 
 getTemplate ()
 
 setAutoTime (?int $a_val)
 
 getAutoTime ()
 
 setRandomStart (bool $a_val)
 
 getRandomStart ()
 
 getJavascriptFiles (string $a_mode)
 
 getCssFiles (string $a_mode)
 
 saveCaption (string $pc_id, string $caption)
 
 addAbove (string $pc_id, string $caption="")
 
 addBelow (string $pc_id, string $caption="")
 
 moveUp (string $pc_id)
 
 moveDown (string $pc_id)
 
 moveTop (string $pc_id)
 
 moveBottom (string $pc_id)
 
 deletePanel (string $pc_id)
 
 getNodeXml (string $pc_id)
 
- Public Member Functions inherited from ilPageContent
 __construct (ilPageObject $a_pg_obj, ?PageManagerInterface $page_manager=null, ?ObjectAdapterInterface $object_adapter=null)
 
 setPage (ilPageObject $a_val)
 
 getPage ()
 
 init ()
 Init object. More...
 
 getType ()
 
 getDomNode ()
 
 getDomDoc ()
 
 setDomNode (DOMNode $node)
 
 getChildNode ()
 
 getJavascriptFiles (string $a_mode)
 
 getCssFiles (string $a_mode)
 
 getOnloadCode (string $a_mode)
 
 setHierId (string $a_hier_id)
 
 getHierId ()
 
 lookupHierId ()
 
 readHierId ()
 
 setPcId (string $a_pcid)
 
 getPCId ()
 
 setFileDownloadLink (string $a_download_link)
 
 getFileDownloadLink ()
 
 setProfileBackUrl (string $url)
 
 getProfileBackUrl ()
 
 setFullscreenLink (string $a_fullscreen_link)
 
 getFullscreenLink ()
 
 setSourcecodeDownloadScript (string $script_name)
 
 getSourcecodeDownloadScript ()
 
 readPCId ()
 
 writePCId (string $a_pc_id)
 
 setEnabled (string $value)
 Set Enabled value for page content component. More...
 
 enable ()
 
 disable ()
 
 isEnabled ()
 
 createPageContentNode (bool $a_set_this_node=true)
 Create page content node (always use this method first when adding a new element) More...
 
 getNewPageContentNode ()
 
 modifyPageContentPostXsl (string $a_output, string $a_mode, bool $a_abstract_only=false)
 Modify page content after xsl. More...
 
 getModel ()
 Get model as needed for the front-end editor. More...
 

Static Public Member Functions

static getLangVars ()
 
- Static Public Member Functions inherited from ilPageContent
static sortHierIds (array $a_array)
 Sort an array of Hier IDS in ascending order. More...
 
static isGreaterHierId (string $a, string $b)
 Check whether Hier ID $a is greater than Hier ID $b. More...
 
static getLangVars ()
 Get lang vars needed for editing. More...
 
static handleCopiedContent (DOMDocument $a_domdoc, bool $a_self_ass=true, bool $a_clone_mobs=false, int $new_parent_id=0, int $obj_copy_id=0)
 Handle copied content. More...
 
static afterPageUpdate (ilPageObject $a_page, DOMDocument $a_domdoc, string $a_xml, bool $a_creation)
 After page has been updated (or created) More...
 
static beforePageDelete (ilPageObject $a_page)
 Before page is being deleted. More...
 
static afterRepositoryCopy (ilPageObject $page, array $mapping, int $source_ref_id)
 After repository (container) copy action. More...
 
static afterPageHistoryEntry (ilPageObject $a_page, DOMDocument $a_old_domdoc, string $a_old_xml, int $a_old_nr)
 After page history entry has been created. More...
 
static deleteHistoryLowerEqualThan (string $parent_type, int $page_id, string $lang, int $delete_lower_than_nr)
 Overwrite in derived classes, if old history entries are being deleted. More...
 

Data Fields

const ACCORDION_HOR = "HorizontalAccordion"
 
const ACCORDION_VER = "VerticalAccordion"
 
const CAROUSEL = "Carousel"
 
- Data Fields inherited from ilPageContent
string $hier_id = ""
 
DOMNode $dom_node = null
 
string $page_lang = ""
 

Protected Member Functions

 setTabsAttribute (string $a_attr, string $a_value)
 
- Protected Member Functions inherited from ilPageContent
 getPageManager ()
 
 setType (string $a_type)
 Set Type. More...
 
 hasNode ()
 
 createInitialChildNode (string $hier_id, string $pc_id, string $child, array $child_attributes=[])
 

Additional Inherited Members

- Protected Attributes inherited from ilPageContent
DOMDocument $dom_doc
 
ILIAS COPage InternalDomainService $domain
 
string $pcid
 
string $type = ""
 
ilPageObject $pg_obj
 
string $file_download_link = ''
 
string $fullscreen_link = ''
 
string $sourcecode_download_script = ''
 
ilLogger $log
 
string $profile_back_url = ""
 
ILIAS COPage Dom DomUtil $dom_util
 
PageManagerInterface $page_manager = null
 
ObjectAdapterInterface $object = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Tabbed contents (see ILIAS DTD)

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Member Function Documentation

◆ addAbove()

ilPCTabs::addAbove ( string  $pc_id,
string  $caption = "" 
)

Definition at line 295 of file class.ilPCTabs.php.

References ilPageContent\$dom_util, and ilPageContent\getPage().

295  : void
296  {
297  $dom = $this->getPage()->getDomDoc();
298  $new_tab = $dom->createElement("Tab");
299  $tab = $this->getPage()->getDomNodeForPCId($pc_id);
300  if (!is_null($tab)) {
301  $new_tab = $tab->parentNode->insertBefore($new_tab, $tab);
302  if ($caption !== "") {
303  $dom_util = $this->domain->domUtil();
304  $dom_util->setFirstOptionalElement(
305  $new_tab,
306  "TabCaption",
307  array(),
308  $caption,
309  array()
310  );
311  }
312  }
313  }
ILIAS COPage Dom DomUtil $dom_util
+ Here is the call graph for this function:

◆ addBelow()

ilPCTabs::addBelow ( string  $pc_id,
string  $caption = "" 
)

Definition at line 315 of file class.ilPCTabs.php.

References ilPageContent\$dom_util, and ilPageContent\getPage().

315  : void
316  {
317  $dom = $this->getPage()->getDomDoc();
318  $new_tab = $dom->createElement("Tab");
319  $tab = $this->getPage()->getDomNodeForPCId($pc_id);
320  if (!is_null($tab)) {
321  if ($next = $tab->nextSibling) {
322  $new_tab = $next->parentNode->insertBefore($new_tab, $next);
323  } else {
324  $new_tab = $tab->parentNode->appendChild($new_tab);
325  }
326 
327  if ($caption !== "") {
328  $dom_util = $this->domain->domUtil();
329  $dom_util->setFirstOptionalElement(
330  $new_tab,
331  "TabCaption",
332  array(),
333  $caption,
334  array()
335  );
336  }
337  }
338  }
ILIAS COPage Dom DomUtil $dom_util
+ Here is the call graph for this function:

◆ addTab()

ilPCTabs::addTab ( string  $a_caption)

Definition at line 210 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

210  : void
211  {
212  $new_item = $this->dom_doc->createElement("Tab");
213  $new_item = $this->getChildNode()->appendChild($new_item);
214  $this->dom_util->setFirstOptionalElement(
215  $new_item,
216  "TabCaption",
217  array(),
218  $a_caption,
219  array()
220  );
221  }
+ Here is the call graph for this function:

◆ create()

ilPCTabs::create ( ilPageObject  $a_pg_obj,
string  $a_hier_id,
string  $a_pc_id = "" 
)

Definition at line 35 of file class.ilPCTabs.php.

References ilPageContent\createInitialChildNode().

39  : void {
40  $this->createInitialChildNode($a_hier_id, $a_pc_id, "Tabs");
41  }
createInitialChildNode(string $hier_id, string $pc_id, string $child, array $child_attributes=[])
+ Here is the call graph for this function:

◆ deletePanel()

ilPCTabs::deletePanel ( string  $pc_id)

Definition at line 402 of file class.ilPCTabs.php.

References ilPageContent\getPage().

402  : void
403  {
404  $dom = $this->getPage()->getDomDoc();
405  $new_tab = $dom->createElement("Tab");
406  $tab = $this->getPage()->getDomNodeForPCId($pc_id);
407  if (!is_null($tab)) {
408  $tab->parentNode->removeChild($tab);
409  }
410  }
+ Here is the call graph for this function:

◆ deleteTab()

ilPCTabs::deleteTab ( string  $a_hier_id,
string  $a_pc_id 
)

Definition at line 195 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

198  : void {
199  // File Item
200  foreach ($this->getChildNode()->childNodes as $child) {
201  if ($child->nodeName == "Tab") {
202  if ($a_pc_id == $child->getAttribute("PCID") &&
203  $a_hier_id == $child->getAttribute("HierId")) {
204  $child->parentNode->removeChild($child);
205  }
206  }
207  }
208  }
+ Here is the call graph for this function:

◆ getAutoTime()

ilPCTabs::getAutoTime ( )

Definition at line 243 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

243  : ?int
244  {
245  $val = $this->getChildNode()->getAttribute("AutoAnimWait");
246  if ($val) {
247  return (int) $val;
248  }
249  return null;
250  }
+ Here is the call graph for this function:

◆ getBehavior()

ilPCTabs::getBehavior ( )

Definition at line 105 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

105  : string
106  {
107  return $this->getChildNode()->getAttribute("Behavior");
108  }
+ Here is the call graph for this function:

◆ getCaption()

ilPCTabs::getCaption ( string  $a_hier_id,
string  $a_pc_id 
)

Definition at line 133 of file class.ilPCTabs.php.

References getCaptions().

136  : string {
137  foreach ($this->getCaptions() as $cap) {
138  if ($cap["pc_id"] === $a_pc_id && $cap["hier_id"] === $a_hier_id) {
139  return $cap["caption"];
140  }
141  }
142  return "";
143  }
+ Here is the call graph for this function:

◆ getCaptions()

ilPCTabs::getCaptions ( )

Definition at line 110 of file class.ilPCTabs.php.

References ilPageContent\$hier_id, and ilPageContent\getChildNode().

Referenced by getCaption().

110  : array
111  {
112  $captions = array();
113  $k = 0;
114  foreach ($this->getChildNode()->childNodes as $child) {
115  if ($child->nodeName == "Tab") {
116  $pc_id = $child->getAttribute("PCID");
117  $hier_id = $child->getAttribute("HierId");
118  $current_caption = "";
119  foreach ($child->childNodes as $tab_child) {
120  if ($tab_child->nodeName == "TabCaption") {
121  $current_caption = $this->dom_util->getContent($tab_child);
122  }
123  }
124  $captions[] = array("pos" => $k,
125  "caption" => $current_caption, "pc_id" => $pc_id, "hier_id" => $hier_id);
126  $k++;
127  }
128  }
129 
130  return $captions;
131  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getContentHeight()

ilPCTabs::getContentHeight ( )

Definition at line 85 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

85  : string
86  {
87  return $this->getChildNode()->getAttribute("ContentHeight");
88  }
+ Here is the call graph for this function:

◆ getContentWidth()

ilPCTabs::getContentWidth ( )

Definition at line 75 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

75  : string
76  {
77  return $this->getChildNode()->getAttribute("ContentWidth");
78  }
+ Here is the call graph for this function:

◆ getCssFiles()

ilPCTabs::getCssFiles ( string  $a_mode)

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

References ilAccordionGUI\getLocalCssFiles().

267  : array
268  {
270  }
+ Here is the call graph for this function:

◆ getHorizontalAlign()

ilPCTabs::getHorizontalAlign ( )

Definition at line 95 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

95  : string
96  {
97  return $this->getChildNode()->getAttribute("HorizontalAlign");
98  }
+ Here is the call graph for this function:

◆ getJavascriptFiles()

ilPCTabs::getJavascriptFiles ( string  $a_mode)

Definition at line 262 of file class.ilPCTabs.php.

References ilAccordionGUI\getLocalJavascriptFiles().

262  : array
263  {
265  }
static getLocalJavascriptFiles()
+ Here is the call graph for this function:

◆ getLangVars()

static ilPCTabs::getLangVars ( )
static

Definition at line 233 of file class.ilPCTabs.php.

233  : array
234  {
235  return array("pc_vacc", "pc_hacc", "pc_carousel");
236  }

◆ getNodeXml()

ilPCTabs::getNodeXml ( string  $pc_id)

Definition at line 412 of file class.ilPCTabs.php.

References ilPageContent\getPage().

412  : string
413  {
414  $tab = $this->getPage()->getDomNodeForPCId($pc_id);
415  if (!is_null($tab)) {
416  $xml = "";
417  foreach ($tab->childNodes as $node) {
418  if ($node->nodeName === "PageContent") {
419  $xml .= $node->ownerDocument->saveXml($node);
420  }
421  }
422  return $xml;
423  }
424  return "";
425  }
+ Here is the call graph for this function:

◆ getRandomStart()

ilPCTabs::getRandomStart ( )

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

References ilPageContent\getChildNode().

257  : bool
258  {
259  return (bool) $this->getChildNode()->getAttribute("RandomStart");
260  }
+ Here is the call graph for this function:

◆ getTabType()

ilPCTabs::getTabType ( )

Definition at line 65 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

65  : string
66  {
67  return $this->getChildNode()->getAttribute("Type");
68  }
+ Here is the call graph for this function:

◆ getTemplate()

ilPCTabs::getTemplate ( )

Definition at line 228 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

228  : string
229  {
230  return $this->getChildNode()->getAttribute("Template");
231  }
+ Here is the call graph for this function:

◆ init()

ilPCTabs::init ( )

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

References ilPageContent\setType().

30  : void
31  {
32  $this->setType("tabs");
33  }
setType(string $a_type)
Set Type.
+ Here is the call graph for this function:

◆ moveBottom()

ilPCTabs::moveBottom ( string  $pc_id)

Definition at line 388 of file class.ilPCTabs.php.

References ilPageContent\getPage().

388  : void
389  {
390  $dom = $this->getPage()->getDomDoc();
391  $new_tab = $dom->createElement("Tab");
392  $tab = $this->getPage()->getDomNodeForPCId($pc_id);
393  if (!is_null($tab)) {
394  $next = $tab->nextSibling;
395  if ($next) {
396  $tab->parentNode->removeChild($tab);
397  $tab = $next->parentNode->appendChild($tab);
398  }
399  }
400  }
+ Here is the call graph for this function:

◆ moveDown()

ilPCTabs::moveDown ( string  $pc_id)

Definition at line 354 of file class.ilPCTabs.php.

References ilPageContent\getPage().

354  : void
355  {
356  $dom = $this->getPage()->getDomDoc();
357  $new_tab = $dom->createElement("Tab");
358  $tab = $this->getPage()->getDomNodeForPCId($pc_id);
359  if (!is_null($tab)) {
360  $next = $tab->nextSibling;
361  if ($next) {
362  $next2 = $next->nextSibling;
363  $tab->parentNode->removeChild($tab);
364  if ($next2) {
365  $tab = $next2->parentNode->insertBefore($tab, $next2);
366  } else {
367  $tab = $next->parentNode->appendChild($tab);
368  }
369  }
370  }
371  }
+ Here is the call graph for this function:

◆ moveTop()

ilPCTabs::moveTop ( string  $pc_id)

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

References ilPageContent\getPage().

373  : void
374  {
375  $dom = $this->getPage()->getDomDoc();
376  $new_tab = $dom->createElement("Tab");
377  $tab = $this->getPage()->getDomNodeForPCId($pc_id);
378  if (!is_null($tab)) {
379  $prev = $tab->previousSibling;
380  if ($prev) {
381  $tab->parentNode->removeChild($tab);
382  $first = $prev->parentNode->childNodes->item(0);
383  $tab = $prev->parentNode->insertBefore($tab, $first);
384  }
385  }
386  }
+ Here is the call graph for this function:

◆ moveUp()

ilPCTabs::moveUp ( string  $pc_id)

Definition at line 340 of file class.ilPCTabs.php.

References ilPageContent\getPage().

340  : void
341  {
342  $dom = $this->getPage()->getDomDoc();
343  $new_tab = $dom->createElement("Tab");
344  $tab = $this->getPage()->getDomNodeForPCId($pc_id);
345  if (!is_null($tab)) {
346  $prev = $tab->previousSibling;
347  if ($prev) {
348  $tab->parentNode->removeChild($tab);
349  $tab = $prev->parentNode->insertBefore($tab, $prev);
350  }
351  }
352  }
+ Here is the call graph for this function:

◆ saveCaption()

ilPCTabs::saveCaption ( string  $pc_id,
string  $caption 
)

Definition at line 272 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

272  : void
273  {
274  $tab_nodes = $this->getChildNode()->childNodes;
275  foreach ($tab_nodes as $tab_node) {
276  if ($tab_node->nodeName === "Tab") {
277  $current_pc_id = $tab_node->getAttribute("PCID");
278  if ($current_pc_id === $pc_id) {
279  if ($caption !== "") {
280  $this->dom_util->setFirstOptionalElement(
281  $tab_node,
282  "TabCaption",
283  [],
284  $caption,
285  []
286  );
287  } else {
288  $this->dom_util->deleteAllChildsByName($tab_node, ["TabCaption"]);
289  }
290  }
291  }
292  }
293  }
+ Here is the call graph for this function:

◆ saveCaptions()

ilPCTabs::saveCaptions ( array  $a_captions)

Definition at line 171 of file class.ilPCTabs.php.

References ilPageContent\$hier_id, and ilPageContent\getChildNode().

171  : void
172  {
173  // iterate all tab nodes
174  foreach ($this->getChildNode()->childNodes as $child) {
175  if ($child->nodeName == "Tab") {
176  $pc_id = $child->getAttribute("PCID");
177  $hier_id = $child->getAttribute("HierId");
178  $k = $hier_id . ":" . $pc_id;
179  // if caption given, set it, otherwise delete caption subitem
180  if ($a_captions[$k] != "") {
181  $this->dom_util->setFirstOptionalElement(
182  $child,
183  "TabCaption",
184  array(),
185  $a_captions[$k],
186  array()
187  );
188  } else {
189  $this->dom_util->deleteAllChildsByName($child, array("TabCaption"));
190  }
191  }
192  }
193  }
+ Here is the call graph for this function:

◆ savePositions()

ilPCTabs::savePositions ( array  $a_pos)

Save positions of tabs.

Definition at line 148 of file class.ilPCTabs.php.

References ilPageContent\$hier_id, and ilPageContent\getChildNode().

150  : void {
151  asort($a_pos);
152 
153  // File Item
154  $nodes = array();
155  foreach ($this->getChildNode()->childNodes as $child) {
156  if ($child->nodeName == "Tab") {
157  $pc_id = $child->getAttribute("PCID");
158  $hier_id = $child->getAttribute("HierId");
159  $nodes[$hier_id . ":" . $pc_id] = $child;
160  }
161  }
162  $this->dom_util->deleteAllChildsByName($this->getChildNode(), ["Tab"]);
163 
164  foreach ($a_pos as $k => $v) {
165  if (is_object($nodes[$k])) {
166  $nodes[$k] = $this->getChildNode()->appendChild($nodes[$k]);
167  }
168  }
169  }
+ Here is the call graph for this function:

◆ setAutoTime()

ilPCTabs::setAutoTime ( ?int  $a_val)

Definition at line 238 of file class.ilPCTabs.php.

References setTabsAttribute().

238  : void
239  {
240  $this->setTabsAttribute("AutoAnimWait", (string) $a_val);
241  }
setTabsAttribute(string $a_attr, string $a_value)
+ Here is the call graph for this function:

◆ setBehavior()

ilPCTabs::setBehavior ( string  $a_val)

Definition at line 100 of file class.ilPCTabs.php.

References setTabsAttribute().

100  : void
101  {
102  $this->setTabsAttribute("Behavior", $a_val);
103  }
setTabsAttribute(string $a_attr, string $a_value)
+ Here is the call graph for this function:

◆ setContentHeight()

ilPCTabs::setContentHeight ( string  $a_val)

Definition at line 80 of file class.ilPCTabs.php.

References setTabsAttribute().

80  : void
81  {
82  $this->setTabsAttribute("ContentHeight", $a_val);
83  }
setTabsAttribute(string $a_attr, string $a_value)
+ Here is the call graph for this function:

◆ setContentWidth()

ilPCTabs::setContentWidth ( string  $a_val)

Definition at line 70 of file class.ilPCTabs.php.

References setTabsAttribute().

70  : void
71  {
72  $this->setTabsAttribute("ContentWidth", $a_val);
73  }
setTabsAttribute(string $a_attr, string $a_value)
+ Here is the call graph for this function:

◆ setHorizontalAlign()

ilPCTabs::setHorizontalAlign ( string  $a_val)

Definition at line 90 of file class.ilPCTabs.php.

References setTabsAttribute().

90  : void
91  {
92  $this->setTabsAttribute("HorizontalAlign", $a_val);
93  }
setTabsAttribute(string $a_attr, string $a_value)
+ Here is the call graph for this function:

◆ setRandomStart()

ilPCTabs::setRandomStart ( bool  $a_val)

Definition at line 252 of file class.ilPCTabs.php.

References setTabsAttribute().

252  : void
253  {
254  $this->setTabsAttribute("RandomStart", $a_val);
255  }
setTabsAttribute(string $a_attr, string $a_value)
+ Here is the call graph for this function:

◆ setTabsAttribute()

ilPCTabs::setTabsAttribute ( string  $a_attr,
string  $a_value 
)
protected

Definition at line 43 of file class.ilPCTabs.php.

References ilPageContent\getChildNode().

Referenced by setAutoTime(), setBehavior(), setContentHeight(), setContentWidth(), setHorizontalAlign(), setRandomStart(), setTabType(), and setTemplate().

46  : void {
47  $this->dom_util->setAttribute($this->getChildNode(), $a_attr, $a_value);
48  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTabType()

ilPCTabs::setTabType ( string  $a_type = "HorizontalTabs")
Parameters
string$a_type("HorizontalTabs" | "Accordion")

Definition at line 53 of file class.ilPCTabs.php.

References ACCORDION_HOR, ACCORDION_VER, CAROUSEL, and setTabsAttribute().

55  : void {
56  switch ($a_type) {
59  case ilPCTabs::CAROUSEL:
60  $this->setTabsAttribute("Type", $a_type);
61  break;
62  }
63  }
const ACCORDION_HOR
setTabsAttribute(string $a_attr, string $a_value)
const ACCORDION_VER
const CAROUSEL
+ Here is the call graph for this function:

◆ setTemplate()

ilPCTabs::setTemplate ( string  $a_template)

Definition at line 223 of file class.ilPCTabs.php.

References setTabsAttribute().

223  : void
224  {
225  $this->setTabsAttribute("Template", $a_template);
226  }
setTabsAttribute(string $a_attr, string $a_value)
+ Here is the call graph for this function:

Field Documentation

◆ ACCORDION_HOR

const ilPCTabs::ACCORDION_HOR = "HorizontalAccordion"

◆ ACCORDION_VER

const ilPCTabs::ACCORDION_VER = "VerticalAccordion"

◆ CAROUSEL

const ilPCTabs::CAROUSEL = "Carousel"

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