24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
 
   54                 $this->prof_node =& $a_node->first_child();             
 
   63         function create(&$a_pg_obj, $a_hier_id, $a_pc_id = 
"")
 
   67                 $this->prof_node = $this->dom->create_element(
"Profile");
 
   68                 $this->prof_node = $this->node->append_child($this->prof_node);
 
   81                 $this->prof_node->set_attribute(
"Mode", $a_mode);
 
   82                 $this->prof_node->set_attribute(
"User", $ilUser->getId());
 
   85                 $children = $this->prof_node->child_nodes();
 
   88                         foreach($children as $child)
 
   90                                 $this->prof_node->remove_child($child);
 
   94                 if($a_mode == 
"manual")
 
   96                         foreach($a_fields as $field)
 
   98                                 $field_node = $this->dom->create_element(
"ProfileField");
 
   99                                 $field_node = $this->prof_node->append_child($field_node);
 
  100                                 $field_node->set_attribute(
"Name", $field);
 
  112                 if (is_object($this->prof_node))
 
  114                         return $this->prof_node->get_attribute(
"Mode");
 
  126                 if (is_object($this->prof_node))
 
  128                         $children = $this->prof_node->child_nodes();
 
  131                                 foreach($children as $child)
 
  133                                         $res[] = $child->get_attribute(
"Name");