27 $this->
user = $DIC->user();
37 return array(
"ed_insert_consultation_hours",
"pc_cach");
45 parent::setNode($a_node);
46 $this->cach_node = &$a_node->first_child();
55 public function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
59 $this->cach_node = $this->dom->create_element(
"ConsultationHours");
60 $this->cach_node = $this->node->append_child($this->cach_node);
69 public function setData($a_mode, array $a_grp_ids)
73 $this->cach_node->set_attribute(
"Mode", $a_mode);
74 $this->cach_node->set_attribute(
"User",
$ilUser->getId());
77 $children = $this->cach_node->child_nodes();
79 foreach ($children as $child) {
80 $this->cach_node->remove_child($child);
84 if ($a_mode ==
"manual") {
85 foreach ($a_grp_ids as $grp_id) {
86 $field_node = $this->dom->create_element(
"ConsultationHoursGroup");
87 $field_node = $this->cach_node->append_child($field_node);
88 $field_node->set_attribute(
"Id", $grp_id);
101 if (is_object($this->cach_node)) {
102 $children = $this->cach_node->child_nodes();
104 foreach ($children as $child) {
105 $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.
foreach($_POST as $key=> $value) $res
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.