ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPCTab Class Reference

Class ilPCTab. More...

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

Public Member Functions

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

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)
static decEdId ($ed_id)
 Decreases an hierarchical editing id at lowest level (last number)
static haveSameContainer ($ed_id1, $ed_id2)
 Check, if two ids are in same container.
static sortHierIds ($a_array)
 Sort an array of Hier IDS in ascending order.
- Protected Member Functions inherited from ilPageContent
 setType ($a_type)
 Set Type.

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

Member Function Documentation

ilPCTab::deleteItem ( )

delete tab

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

References $tab, and ilPageContent\getNode().

{
$tab =& $this->getNode();
$tab->unlink($tab);
}

+ Here is the call graph for this function:

ilPCTab::init ( )

Init page content component.

Reimplemented from ilPageContent.

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

References ilPageContent\setType().

{
$this->setType("tabstab");
}

+ Here is the call graph for this function:

ilPCTab::moveItemDown ( )

move tab item down

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

References $tab, and ilPageContent\getNode().

{
$tab = $this->getNode();
$next = $tab->next_sibling();
$next_copy = $next->clone_node(true);
$next_copy = $tab->insert_before($next_copy, $tab);
$next->unlink($next);
}

+ Here is the call graph for this function:

ilPCTab::moveItemUp ( )

move tab item up

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

References $tab, and ilPageContent\getNode().

{
$tab = $this->getNode();
$prev = $tab->previous_sibling();
$tab_copy = $tab->clone_node(true);
$tab_copy =& $prev->insert_before($tab_copy, $prev);
$tab->unlink($tab);
}

+ Here is the call graph for this function:

ilPCTab::newItemAfter ( )

insert new tab item after current one

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

References $tab, and ilPageContent\getNode().

{
$tab = $this->getNode();
$new_tab =& $this->dom->create_element("Tab");
if ($next_tab =& $tab->next_sibling())
{
$new_tab =& $next_tab->insert_before($new_tab, $next_tab);
}
else
{
$parent_tabs = $tab->parent_node();
$new_tab =& $parent_tabs->append_child($new_tab);
}
}

+ Here is the call graph for this function:

ilPCTab::newItemBefore ( )

insert new tab item before current one

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

References $tab, and ilPageContent\getNode().

{
$tab = $this->getNode();
$new_tab = $this->dom->create_element("Tab");
$new_tab = $tab->insert_before($new_tab, $tab);
}

+ Here is the call graph for this function:

Field Documentation

ilPCTab::$dom

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


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