24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
56 $this->res_node =& $a_node->first_child();
65 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
69 $this->res_node =& $this->dom->create_element(
"Resources");
70 $this->res_node =& $this->node->append_child($this->res_node);
82 $children = $this->res_node->child_nodes();
83 for ($i=0; $i<count($children); $i++)
85 $this->res_node->remove_child($children[$i]);
87 $list_node =& $this->dom->create_element(
"ResourceList");
88 $list_node =& $this->res_node->append_child($list_node);
89 $list_node->set_attribute(
"Type", $a_type);
100 if (is_object($this->res_node))
102 $children = $this->res_node->child_nodes();
103 if (is_object($children[0]))
105 return $children[0]->get_attribute(
"Type");