4 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
36 $this->res_node =& $a_node->first_child();
45 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
49 $this->res_node =& $this->dom->create_element(
"Resources");
50 $this->res_node =& $this->node->append_child($this->res_node);
62 $children = $this->res_node->child_nodes();
63 for ($i=0; $i<count($children); $i++)
65 $this->res_node->remove_child($children[$i]);
67 $list_node =& $this->dom->create_element(
"ResourceList");
68 $list_node =& $this->res_node->append_child($list_node);
69 $list_node->set_attribute(
"Type", $a_type);
80 if (is_object($this->res_node))
82 $children = $this->res_node->child_nodes();
83 if (is_object($children[0]))
85 return $children[0]->get_attribute(
"Type");