ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ($a_mode)
 Get Javascript files. More...
 
 getCssFiles ($a_mode)
 Get css files. More...
 
 getOnloadCode ($a_mode)
 Get on load code. 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...
 
 setFileDownloadLink ($a_download_link)
 Set file download link. More...
 
 getFileDownloadLink ()
 Get file download link. More...
 
 setFullscreenLink ($a_fullscreen_link)
 Set fullscreen link. More...
 
 getFullscreenLink ()
 Get fullscreen link. More...
 
 setSourcecodeDownloadScript ($script_name)
 Set sourcecode download script. More...
 
 getSourcecodeDownloadScript ()
 Get sourcecode download script. More...
 
 readPCId ()
 Read PC Id. More...
 
 writePCId ($a_pc_id)
 Write pc id. 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
 
 $page_lang
 

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 isGreaterHierId ($a, $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, $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...
 
- Protected Attributes inherited from ilPageContent
 $file_download_link
 
 $fullscreen_link
 
 $sourcecode_download_script
 
 $log
 

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 59 of file class.ilPCTab.php.

References $tab, and ilPageContent\getNode().

60  {
61  $tab = $this->getNode();
62  $tab->unlink($tab);
63  }
& 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 68 of file class.ilPCTab.php.

References $tab, and ilPageContent\getNode().

69  {
70  $tab = $this->getNode();
71  $next = $tab->next_sibling();
72  $next_copy = $next->clone_node(true);
73  $next_copy = $tab->insert_before($next_copy, $tab);
74  $next->unlink($next);
75  }
& 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 80 of file class.ilPCTab.php.

References $tab, and ilPageContent\getNode().

81  {
82  $tab = $this->getNode();
83  $prev = $tab->previous_sibling();
84  $tab_copy = $tab->clone_node(true);
85  $tab_copy = $prev->insert_before($tab_copy, $prev);
86  $tab->unlink($tab);
87  }
& 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  $new_tab = $next_tab->insert_before($new_tab, $next_tab);
38  } else {
39  $parent_tabs = $tab->parent_node();
40  $new_tab = $parent_tabs->append_child($new_tab);
41  }
42  }
& 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 48 of file class.ilPCTab.php.

References $tab, and ilPageContent\getNode().

49  {
50  $tab = $this->getNode();
51  $new_tab = $this->dom->create_element("Tab");
52  $new_tab = $tab->insert_before($new_tab, $tab);
53  }
& 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: