6 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
36 $this->prof_node =& $a_node->first_child();
45 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
49 $this->prof_node = $this->dom->create_element(
"Profile");
50 $this->prof_node = $this->node->append_child($this->prof_node);
63 $this->prof_node->set_attribute(
"Mode", $a_mode);
64 $this->prof_node->set_attribute(
"User", $ilUser->getId());
67 $children = $this->prof_node->child_nodes();
70 foreach($children as $child)
72 $this->prof_node->remove_child($child);
76 if($a_mode ==
"manual")
78 foreach($a_fields as $field)
80 $field_node = $this->dom->create_element(
"ProfileField");
81 $field_node = $this->prof_node->append_child($field_node);
82 $field_node->set_attribute(
"Name", $field);
94 if (is_object($this->prof_node))
96 return $this->prof_node->get_attribute(
"Mode");
108 if (is_object($this->prof_node))
110 $children = $this->prof_node->child_nodes();
113 foreach($children as $child)
115 $res[] = $child->get_attribute(
"Name");
128 return array(
"pc_prof",
"ed_insert_profile");