24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
54 $this->tabs_node =& $a_node->first_child();
60 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
64 $this->tabs_node =& $this->dom->create_element(
"Tabs");
65 $this->tabs_node =& $this->node->append_child($this->tabs_node);
73 for ($i=1; $i<=$a_nr; $i++)
75 $new_item =& $this->dom->create_element(
"Tab");
76 $new_item =& $this->tabs_node->append_child($new_item);
89 case "HorizontalTabs":
91 $this->tabs_node->set_attribute(
"Type", $a_type);
101 return $this->tabs_node->get_attribute(
"Type");
111 $tab_nodes = $this->tabs_node->child_nodes();
112 for($i = 0; $i < count($tab_nodes); $i++)
114 if ($tab_nodes[$i]->node_name() ==
"Tab")
117 if ($a_captions[$j] !=
"")
120 array(
"PageContent"), $a_captions[$j], array());
137 $tab_nodes = $this->tabs_node->child_nodes();
138 for($i = 0; $i < count($tab_nodes); $i++)
140 if ($tab_nodes[$i]->node_name() ==
"Tab")
142 $tab_node_childs = $tab_nodes[$i]->child_nodes();
143 $current_caption =
"";
144 for($j = 0; $j < count($tab_node_childs); $j++)
146 if ($tab_node_childs[$j]->node_name() ==
"TabCaption")
148 $current_caption = $tab_node_childs[$j]->get_content();
151 $captions[] = $current_caption;