4 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
34 return array(
"ed_insert_consultation_hours",
"pc_cach");
42 parent::setNode($a_node);
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);
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");
getGroupIds()
Get consultation hours group ids.
setData($a_mode, array $a_grp_ids)
Set consultation hours settings.
Class ilPCConsultationHours.
setType($a_type)
Set Type.
setNode($a_node)
Set node.
Create styles array
The data for the language used.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
static getLangVars()
Get lang vars needed for editing.
init()
Init page content component.
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create consultation hours node in xml.