ILIAS  release_4-4 Revision
ilPCTab Class Reference

Class ilPCTab. More...

+ Inheritance diagram for ilPCTab:
+ Collaboration diagram for ilPCTab:

Public Member Functions

 init ()
 Init page content component. More...
 
 newItemAfter ()
 insert new tab item after current one More...
 
 newItemBefore ()
 insert new tab item before current one More...
 
 deleteItem ()
 delete tab More...
 
 moveItemDown ()
 move tab item down More...
 
 moveItemUp ()
 move tab item up More...
 
- Public Member Functions inherited from ilPageContent
 __construct ($a_pg_obj)
 Constructor. More...
 
 setPage ($a_val)
 Set page. More...
 
 getPage ()
 Get page. More...
 
 init ()
 Init object. More...
 
 getType ()
 Get type of page content. More...
 
 setNode (&$a_node)
 Set xml node of page content. More...
 
getNode ()
 Get xml node of page content. More...
 
 getJavascriptFiles ()
 Get Javascript files. More...
 
 getCssFiles ()
 Get css files. More...
 
 setHierId ($a_hier_id)
 Set hierarchical ID in xml structure. More...
 
 getHierId ()
 Get hierarchical id. More...
 
 lookupHierId ()
 Get hierarchical id from dom. More...
 
 readHierId ()
 Read PC Id. More...
 
 setPcId ($a_pcid)
 Set PC Id. More...
 
 getPCId ()
 Get PC Id. More...
 
 readPCId ()
 Read PC Id. More...
 
 writePCId ($a_pc_id)
 Write pc id. More...
 
 isGreaterHierId ($a, $b)
 Check whether Hier ID $a is greater than Hier ID $b. More...
 
 setEnabled ($value)
 Set Enabled value for page content component. More...
 
 enable ()
 Enable page content. More...
 
 disable ()
 Disable page content. More...
 
 isEnabled ()
 Check whether page content is enabled. More...
 
 createPageContentNode ($a_set_this_node=true)
 Create page content node (always use this method first when adding a new element) More...
 
 modifyPageContentPostXsl ($a_output, $a_mode)
 Modify page content after xsl. More...
 

Data Fields

 $dom
 
- Data Fields inherited from ilPageContent
 $hier_id
 
 $node
 
 $dom
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPageContent
static incEdId ($ed_id)
 Increases an hierarchical editing id at lowest level (last number) More...
 
static decEdId ($ed_id)
 Decreases an hierarchical editing id at lowest level (last number) More...
 
static haveSameContainer ($ed_id1, $ed_id2)
 Check, if two ids are in same container. More...
 
static sortHierIds ($a_array)
 Sort an array of Hier IDS in ascending order. More...
 
static getLangVars ()
 Get lang vars needed for editing. More...
 
static handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false)
 Handle copied content. More...
 
static afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation)
 After page has been updated (or created) More...
 
static beforePageDelete ($a_page)
 Before page is being deleted. More...
 
static afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr)
 After page history entry has been created. More...
 
- Protected Member Functions inherited from ilPageContent
 setType ($a_type)
 Set Type. More...
 

Detailed Description

Class ilPCTab.

Tab content object (see ILIAS DTD)

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

Definition at line 17 of file class.ilPCTab.php.

Member Function Documentation

◆ deleteItem()

ilPCTab::deleteItem ( )

delete tab

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

References $tab, and ilPageContent\getNode().

63  {
64  $tab =& $this->getNode();
65  $tab->unlink($tab);
66  }
& getNode()
Get xml node of page content.
+ Here is the call graph for this function:

◆ init()

ilPCTab::init ( )

Init page content component.

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

References ilPageContent\setType().

25  {
26  $this->setType("tabstab");
27  }
setType($a_type)
Set Type.
+ Here is the call graph for this function:

◆ moveItemDown()

ilPCTab::moveItemDown ( )

move tab item down

Definition at line 71 of file class.ilPCTab.php.

References $tab, and ilPageContent\getNode().

72  {
73  $tab = $this->getNode();
74  $next = $tab->next_sibling();
75  $next_copy = $next->clone_node(true);
76  $next_copy = $tab->insert_before($next_copy, $tab);
77  $next->unlink($next);
78  }
& getNode()
Get xml node of page content.
+ Here is the call graph for this function:

◆ moveItemUp()

ilPCTab::moveItemUp ( )

move tab item up

Definition at line 83 of file class.ilPCTab.php.

References $tab, and ilPageContent\getNode().

84  {
85  $tab = $this->getNode();
86  $prev = $tab->previous_sibling();
87  $tab_copy = $tab->clone_node(true);
88  $tab_copy =& $prev->insert_before($tab_copy, $prev);
89  $tab->unlink($tab);
90  }
& getNode()
Get xml node of page content.
+ Here is the call graph for this function:

◆ newItemAfter()

ilPCTab::newItemAfter ( )

insert new tab item after current one

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

References $tab, and ilPageContent\getNode().

33  {
34  $tab = $this->getNode();
35  $new_tab =& $this->dom->create_element("Tab");
36  if ($next_tab =& $tab->next_sibling())
37  {
38  $new_tab =& $next_tab->insert_before($new_tab, $next_tab);
39  }
40  else
41  {
42  $parent_tabs = $tab->parent_node();
43  $new_tab =& $parent_tabs->append_child($new_tab);
44  }
45  }
& getNode()
Get xml node of page content.
+ Here is the call graph for this function:

◆ newItemBefore()

ilPCTab::newItemBefore ( )

insert new tab item before current one

Definition at line 51 of file class.ilPCTab.php.

References $tab, and ilPageContent\getNode().

52  {
53  $tab = $this->getNode();
54  $new_tab = $this->dom->create_element("Tab");
55  $new_tab = $tab->insert_before($new_tab, $tab);
56  }
& getNode()
Get xml node of page content.
+ Here is the call graph for this function:

Field Documentation

◆ $dom

ilPCTab::$dom

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


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