4 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
34 return array(
"ed_insert_consultation_hours",
"pc_cach");
43 $this->cach_node =& $a_node->first_child();
52 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
56 $this->cach_node = $this->dom->create_element(
"ConsultationHours");
57 $this->cach_node = $this->node->append_child($this->cach_node);
66 function setData($a_mode, array $a_grp_ids)
70 $this->cach_node->set_attribute(
"Mode", $a_mode);
71 $this->cach_node->set_attribute(
"User", $ilUser->getId());
74 $children = $this->cach_node->child_nodes();
77 foreach($children as $child)
79 $this->cach_node->remove_child($child);
83 if($a_mode ==
"manual")
85 foreach($a_grp_ids as $grp_id)
87 $field_node = $this->dom->create_element(
"ConsultationHoursGroup");
88 $field_node = $this->cach_node->append_child($field_node);
89 $field_node->set_attribute(
"Id", $grp_id);
102 if (is_object($this->cach_node))
104 $children = $this->cach_node->child_nodes();
107 foreach($children as $child)
109 $res[] = $child->get_attribute(
"Id");