6 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
36 $this->skill_node =& $a_node->first_child();
45 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
49 $this->skill_node = $this->dom->create_element(
"Skills");
50 $this->skill_node = $this->node->append_child($this->skill_node);
62 $this->skill_node->set_attribute(
"Id", $a_skill_id);
63 $this->skill_node->set_attribute(
"User", $ilUser->getId());
73 if (is_object($this->skill_node))
75 return $this->skill_node->get_attribute(
"Id");
87 static function afterPageUpdate($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation)
101 $a_page->getLanguage());
122 include_once(
"./Services/COPage/classes/class.ilPageContentUsage.php");
125 $a_page->getLanguage());
126 foreach($skl_ids as $skl_id)
128 if ((
int) $skl_id[
"inst_id"] <= 0)
131 $a_page->getLanguage());
141 $xpath =
new DOMXPath($a_domdoc);
142 $nodes = $xpath->query(
'//Skills');
145 foreach($nodes as
$node)
147 $user = $node->getAttribute(
"User");
148 $id = $node->getAttribute(
"Id");
149 $inst_id = $node->getAttribute(
"InstId");
150 $skl_ids[$user.
":".$id.
":".$inst_id] = array(
151 "user" => $user,
"id" => $id,
"inst_id" => $inst_id);